From 070d2756b945eccb0f4e4645ef7f7f3be34f6100 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Thu, 25 Jun 2026 19:12:05 -0400 Subject: [PATCH 1/9] Migrate state to typed objects --- tests/common.py | 22 +- tests/test_alarm_control_panel.py | 42 +-- tests/test_climate.py | 276 +++++++------- tests/test_cover.py | 230 ++++++----- tests/test_device.py | 7 +- tests/test_device_tracker.py | 10 +- tests/test_discover.py | 6 +- tests/test_fan.py | 124 +++--- tests/test_gateway.py | 2 +- tests/test_light.py | 356 +++++++++--------- tests/test_lock.py | 24 +- tests/test_number.py | 50 +-- tests/test_select.py | 32 +- tests/test_sensor.py | 167 ++++---- tests/test_siren.py | 22 +- tests/test_switch.py | 86 ++--- tests/test_update.py | 120 +++--- zha/application/gateway.py | 2 +- zha/application/platforms/__init__.py | 81 ++-- .../platforms/alarm_control_panel/__init__.py | 37 +- .../platforms/binary_sensor/__init__.py | 37 +- zha/application/platforms/button/__init__.py | 44 +-- zha/application/platforms/climate/__init__.py | 144 ++++--- zha/application/platforms/cover/__init__.py | 59 +-- zha/application/platforms/device_tracker.py | 25 +- zha/application/platforms/fan/__init__.py | 62 ++- zha/application/platforms/helpers.py | 8 +- zha/application/platforms/light/__init__.py | 75 ++-- zha/application/platforms/lock/__init__.py | 20 +- zha/application/platforms/number/__init__.py | 32 +- zha/application/platforms/select.py | 43 ++- zha/application/platforms/sensor/__init__.py | 208 +++++----- zha/application/platforms/siren.py | 28 +- zha/application/platforms/switch.py | 58 +-- zha/application/platforms/update.py | 50 +-- zha/event.py | 20 +- zha/zigbee/device.py | 45 +-- zha/zigbee/group.py | 17 +- 38 files changed, 1312 insertions(+), 1359 deletions(-) diff --git a/tests/common.py b/tests/common.py index cf8f499cd..5cbac97e1 100644 --- a/tests/common.py +++ b/tests/common.py @@ -254,7 +254,7 @@ def get_group_entity( if not isinstance(entity, entity_type): continue - if qualifier is not None and qualifier not in entity.info_object.unique_id: + if qualifier is not None and qualifier not in entity.state.unique_id: continue return entity @@ -285,7 +285,7 @@ def get_entity( if exact_entity_type is not None and type(entity) is not exact_entity_type: continue - if qualifier is not None and qualifier not in entity.info_object.unique_id: + if qualifier is not None and qualifier not in entity.state.unique_id: continue if not qualifier_func(entity): @@ -311,51 +311,51 @@ async def group_entity_availability_test( ): """Test group entity availability handling.""" - assert entity.state["available"] is True + assert entity.state.available is True device_1.on_network = False await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert entity.state["available"] is True + assert entity.state.available is True device_2.on_network = False await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert entity.state["available"] is False + assert entity.state.available is False device_1.on_network = True await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert entity.state["available"] is True + assert entity.state.available is True device_2.on_network = True await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert entity.state["available"] is True + assert entity.state.available is True device_1.available = False await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert entity.state["available"] is True + assert entity.state.available is True device_2.available = False await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert entity.state["available"] is False + assert entity.state.available is False device_1.available = True await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert entity.state["available"] is True + assert entity.state.available is True device_2.available = True await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert entity.state["available"] is True + assert entity.state.available is True def zigpy_device_from_device_data( # noqa: C901 diff --git a/tests/test_alarm_control_panel.py b/tests/test_alarm_control_panel.py index 5192d4460..6aa32f0da 100644 --- a/tests/test_alarm_control_panel.py +++ b/tests/test_alarm_control_panel.py @@ -45,7 +45,7 @@ async def test_alarm_control_panel( assert isinstance(alarm_entity, AlarmControlPanel) # test that the state is STATE_ALARM_DISARMED - assert alarm_entity.state["state"] == AlarmState.DISARMED + assert alarm_entity.state.state == AlarmState.DISARMED # arm_away cluster.client_command.reset_mock() @@ -60,7 +60,7 @@ async def test_alarm_control_panel( security.IasAce.AudibleNotification.Default_Sound, security.IasAce.AlarmStatus.No_Alarm, ) - assert alarm_entity.state["state"] == AlarmState.ARMED_AWAY + assert alarm_entity.state.state == AlarmState.ARMED_AWAY # type: ignore[comparison-overlap] # disarm await reset_alarm_panel(zha_gateway, cluster, alarm_entity) @@ -69,7 +69,7 @@ async def test_alarm_control_panel( cluster.client_command.reset_mock() await alarm_entity.async_alarm_arm_away("4321") await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.ARMED_AWAY + assert alarm_entity.state.state == AlarmState.ARMED_AWAY cluster.client_command.reset_mock() # now simulate a faulty code entry sequence @@ -78,7 +78,7 @@ async def test_alarm_control_panel( await alarm_entity.async_alarm_disarm("0000") await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.TRIGGERED + assert alarm_entity.state.state == AlarmState.TRIGGERED assert cluster.client_command.call_count == 6 assert cluster.client_command.await_count == 6 assert cluster.client_command.call_args == call( @@ -95,7 +95,7 @@ async def test_alarm_control_panel( # arm_home await alarm_entity.async_alarm_arm_home("4321") await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.ARMED_HOME + assert alarm_entity.state.state == AlarmState.ARMED_HOME assert cluster.client_command.call_count == 2 assert cluster.client_command.await_count == 2 assert cluster.client_command.call_args == call( @@ -112,7 +112,7 @@ async def test_alarm_control_panel( # arm_night await alarm_entity.async_alarm_arm_night("4321") await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.ARMED_NIGHT + assert alarm_entity.state.state == AlarmState.ARMED_NIGHT assert cluster.client_command.call_count == 2 assert cluster.client_command.await_count == 2 assert cluster.client_command.call_args == call( @@ -131,7 +131,7 @@ async def test_alarm_control_panel( "cluster_command", 1, 0, [security.IasAce.ArmMode.Arm_All_Zones, "", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.ARMED_AWAY + assert alarm_entity.state.state == AlarmState.ARMED_AWAY # reset the panel await reset_alarm_panel(zha_gateway, cluster, alarm_entity) @@ -141,7 +141,7 @@ async def test_alarm_control_panel( "cluster_command", 1, 0, [security.IasAce.ArmMode.Arm_Day_Home_Only, "", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.ARMED_HOME + assert alarm_entity.state.state == AlarmState.ARMED_HOME # reset the panel await reset_alarm_panel(zha_gateway, cluster, alarm_entity) @@ -151,41 +151,41 @@ async def test_alarm_control_panel( "cluster_command", 1, 0, [security.IasAce.ArmMode.Arm_Night_Sleep_Only, "", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.ARMED_NIGHT + assert alarm_entity.state.state == AlarmState.ARMED_NIGHT # disarm from panel with bad code cluster.listener_event( "cluster_command", 1, 0, [security.IasAce.ArmMode.Disarm, "", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.ARMED_NIGHT + assert alarm_entity.state.state == AlarmState.ARMED_NIGHT # disarm from panel with bad code for 2nd time still armed cluster.listener_event( "cluster_command", 1, 0, [security.IasAce.ArmMode.Disarm, "", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.TRIGGERED + assert alarm_entity.state.state == AlarmState.TRIGGERED # disarm from panel with good code cluster.listener_event( "cluster_command", 1, 0, [security.IasAce.ArmMode.Disarm, "4321", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.DISARMED + assert alarm_entity.state.state == AlarmState.DISARMED # disarm when already disarmed cluster.listener_event( "cluster_command", 1, 0, [security.IasAce.ArmMode.Disarm, "4321", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.DISARMED + assert alarm_entity.state.state == AlarmState.DISARMED assert "IAS ACE already disarmed" in caplog.text # panic from panel cluster.listener_event("cluster_command", 1, 4, []) await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.TRIGGERED + assert alarm_entity.state.state == AlarmState.TRIGGERED # reset the panel await reset_alarm_panel(zha_gateway, cluster, alarm_entity) @@ -193,7 +193,7 @@ async def test_alarm_control_panel( # fire from panel cluster.listener_event("cluster_command", 1, 3, []) await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.TRIGGERED + assert alarm_entity.state.state == AlarmState.TRIGGERED # reset the panel await reset_alarm_panel(zha_gateway, cluster, alarm_entity) @@ -201,24 +201,24 @@ async def test_alarm_control_panel( # emergency from panel cluster.listener_event("cluster_command", 1, 2, []) await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.TRIGGERED + assert alarm_entity.state.state == AlarmState.TRIGGERED # reset the panel await reset_alarm_panel(zha_gateway, cluster, alarm_entity) - assert alarm_entity.state["state"] == AlarmState.DISARMED + assert alarm_entity.state.state == AlarmState.DISARMED await alarm_entity.async_alarm_trigger() await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.TRIGGERED + assert alarm_entity.state.state == AlarmState.TRIGGERED # reset the panel await reset_alarm_panel(zha_gateway, cluster, alarm_entity) - assert alarm_entity.state["state"] == AlarmState.DISARMED + assert alarm_entity.state.state == AlarmState.DISARMED alarm_entity.code_required_arm_actions = True await alarm_entity.async_alarm_arm_away() await zha_gateway.async_block_till_done() - assert alarm_entity.state["state"] == AlarmState.DISARMED + assert alarm_entity.state.state == AlarmState.DISARMED assert "Invalid code supplied to IAS ACE" in caplog.text @@ -231,7 +231,7 @@ async def reset_alarm_panel( cluster.client_command.reset_mock() await entity.async_alarm_disarm("4321") await zha_gateway.async_block_till_done() - assert entity.state["state"] == AlarmState.DISARMED + assert entity.state.state == AlarmState.DISARMED assert cluster.client_command.call_count == 2 assert cluster.client_command.await_count == 2 assert cluster.client_command.call_args == call( diff --git a/tests/test_climate.py b/tests/test_climate.py index 3109c298c..bb5f46b2e 100644 --- a/tests/test_climate.py +++ b/tests/test_climate.py @@ -271,10 +271,10 @@ async def test_climate_local_temperature( entity: ThermostatEntity = get_entity( device_climate, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["current_temperature"] is None + assert entity.state.current_temperature is None await send_attributes_report(zha_gateway, thrm_cluster, {0: 2100}) - assert entity.state["current_temperature"] == 21.0 + assert entity.state.current_temperature == 21.0 async def test_climate_outdoor_temperature( @@ -286,14 +286,14 @@ async def test_climate_outdoor_temperature( entity: ThermostatEntity = get_entity( device_climate, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["outdoor_temperature"] is None + assert entity.state.outdoor_temperature is None await send_attributes_report( zha_gateway, thrm_cluster, {Thermostat.AttributeDefs.outdoor_temperature.id: 2150}, ) - assert entity.state["outdoor_temperature"] == 21.5 + assert entity.state.outdoor_temperature == 21.5 async def test_climate_hvac_action_running_state( @@ -315,55 +315,55 @@ async def test_climate_hvac_action_running_state( entity.on_event(STATE_CHANGED, subscriber1) sensor_entity.on_event(STATE_CHANGED, subscriber2) - assert entity.state["hvac_action"] == "off" - assert sensor_entity.state["state"] == "off" + assert entity.state.hvac_action == "off" + assert sensor_entity.state.state == "off" await send_attributes_report( zha_gateway, thrm_cluster, {0x001E: Thermostat.RunningMode.Off} ) await zha_gateway.async_block_till_done(wait_background_tasks=True) - assert entity.state["hvac_action"] == "off" - assert sensor_entity.state["state"] == "off" + assert entity.state.hvac_action == "off" + assert sensor_entity.state.state == "off" assert len(subscriber1.mock_calls) == len(subscriber2.mock_calls) == 0 await send_attributes_report( zha_gateway, thrm_cluster, {0x001C: Thermostat.SystemMode.Auto} ) await zha_gateway.async_block_till_done(wait_background_tasks=True) - assert entity.state["hvac_action"] == "idle" - assert sensor_entity.state["state"] == "idle" + assert entity.state.hvac_action == "idle" + assert sensor_entity.state.state == "idle" assert len(subscriber1.mock_calls) == len(subscriber2.mock_calls) == 1 await send_attributes_report( zha_gateway, thrm_cluster, {0x001E: Thermostat.RunningMode.Cool} ) await zha_gateway.async_block_till_done(wait_background_tasks=True) - assert entity.state["hvac_action"] == "cooling" - assert sensor_entity.state["state"] == "cooling" + assert entity.state.hvac_action == "cooling" + assert sensor_entity.state.state == "cooling" assert len(subscriber1.mock_calls) == len(subscriber2.mock_calls) == 2 await send_attributes_report( zha_gateway, thrm_cluster, {0x001E: Thermostat.RunningMode.Heat} ) await zha_gateway.async_block_till_done(wait_background_tasks=True) - assert entity.state["hvac_action"] == "heating" - assert sensor_entity.state["state"] == "heating" + assert entity.state.hvac_action == "heating" + assert sensor_entity.state.state == "heating" assert len(subscriber1.mock_calls) == len(subscriber2.mock_calls) == 3 await send_attributes_report( zha_gateway, thrm_cluster, {0x001E: Thermostat.RunningMode.Off} ) await zha_gateway.async_block_till_done(wait_background_tasks=True) - assert entity.state["hvac_action"] == "idle" - assert sensor_entity.state["state"] == "idle" + assert entity.state.hvac_action == "idle" + assert sensor_entity.state.state == "idle" assert len(subscriber1.mock_calls) == len(subscriber2.mock_calls) == 4 await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Fan_State_On} ) await zha_gateway.async_block_till_done(wait_background_tasks=True) - assert entity.state["hvac_action"] == "fan" - assert sensor_entity.state["state"] == "fan" + assert entity.state.hvac_action == "fan" + assert sensor_entity.state.state == "fan" assert len(subscriber1.mock_calls) == len(subscriber2.mock_calls) == 5 @@ -451,62 +451,62 @@ async def test_climate_hvac_action_running_state_zen( ) assert isinstance(sensor_entity, ThermostatHVACAction) - assert entity.state["hvac_action"] is None - assert sensor_entity.state["state"] is None + assert entity.state.hvac_action is None + assert sensor_entity.state.state is None await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Cool_2nd_Stage_On} ) - assert entity.state["hvac_action"] == "cooling" - assert sensor_entity.state["state"] == "cooling" + assert entity.state.hvac_action == "cooling" + assert sensor_entity.state.state == "cooling" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Fan_State_On} ) - assert entity.state["hvac_action"] == "fan" - assert sensor_entity.state["state"] == "fan" + assert entity.state.hvac_action == "fan" + assert sensor_entity.state.state == "fan" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Heat_2nd_Stage_On} ) - assert entity.state["hvac_action"] == "heating" - assert sensor_entity.state["state"] == "heating" + assert entity.state.hvac_action == "heating" + assert sensor_entity.state.state == "heating" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Fan_2nd_Stage_On} ) - assert entity.state["hvac_action"] == "fan" - assert sensor_entity.state["state"] == "fan" + assert entity.state.hvac_action == "fan" + assert sensor_entity.state.state == "fan" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Cool_State_On} ) - assert entity.state["hvac_action"] == "cooling" - assert sensor_entity.state["state"] == "cooling" + assert entity.state.hvac_action == "cooling" + assert sensor_entity.state.state == "cooling" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Fan_3rd_Stage_On} ) - assert entity.state["hvac_action"] == "fan" - assert sensor_entity.state["state"] == "fan" + assert entity.state.hvac_action == "fan" + assert sensor_entity.state.state == "fan" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Heat_State_On} ) - assert entity.state["hvac_action"] == "heating" - assert sensor_entity.state["state"] == "heating" + assert entity.state.hvac_action == "heating" + assert sensor_entity.state.state == "heating" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Idle} ) - assert entity.state["hvac_action"] == "off" - assert sensor_entity.state["state"] == "off" + assert entity.state.hvac_action == "off" + assert sensor_entity.state.state == "off" await send_attributes_report( zha_gateway, thrm_cluster, {0x001C: Thermostat.SystemMode.Heat} ) - assert entity.state["hvac_action"] == "idle" - assert sensor_entity.state["state"] == "idle" + assert entity.state.hvac_action == "idle" + assert sensor_entity.state.state == "idle" async def test_climate_hvac_action_running_state_zehnder( @@ -523,52 +523,52 @@ async def test_climate_hvac_action_running_state_zehnder( device_climate_zehnder, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["hvac_action"] is None + assert entity.state.hvac_action is None await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Cool_2nd_Stage_On} ) - assert entity.state["hvac_action"] == "cooling" + assert entity.state.hvac_action == "cooling" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Fan_State_On} ) - assert entity.state["hvac_action"] == "fan" + assert entity.state.hvac_action == "fan" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Heat_2nd_Stage_On} ) - assert entity.state["hvac_action"] == "heating" + assert entity.state.hvac_action == "heating" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Fan_2nd_Stage_On} ) - assert entity.state["hvac_action"] == "fan" + assert entity.state.hvac_action == "fan" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Cool_State_On} ) - assert entity.state["hvac_action"] == "cooling" + assert entity.state.hvac_action == "cooling" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Fan_3rd_Stage_On} ) - assert entity.state["hvac_action"] == "fan" + assert entity.state.hvac_action == "fan" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Heat_State_On} ) - assert entity.state["hvac_action"] == "heating" + assert entity.state.hvac_action == "heating" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Idle} ) - assert entity.state["hvac_action"] == "off" + assert entity.state.hvac_action == "off" await send_attributes_report( zha_gateway, thrm_cluster, {0x001C: Thermostat.SystemMode.Heat} ) - assert entity.state["hvac_action"] == "idle" + assert entity.state.hvac_action == "idle" @pytest.mark.parametrize( @@ -594,27 +594,27 @@ async def test_set_hvac_mode_zehnder( device_climate_zehnder, platform=Platform.CLIMATE, entity_type=ZehnderThermostat ) - assert entity.state["hvac_mode"] == "off" + assert entity.state.hvac_mode == "off" await entity.async_set_hvac_mode(hvac_mode) await zha_gateway.async_block_till_done() if sys_mode is not None: - assert entity.state["hvac_mode"] == hvac_mode + assert entity.state.hvac_mode == hvac_mode assert thrm_cluster.write_attributes.call_count == 1 assert thrm_cluster.write_attributes.call_args[0][0] == { "system_mode": sys_mode } else: assert thrm_cluster.write_attributes.call_count == 0 - assert entity.state["hvac_mode"] == "off" + assert entity.state.hvac_mode == "off" # turn off thrm_cluster.write_attributes.reset_mock() await entity.async_set_hvac_mode("off") await zha_gateway.async_block_till_done() - assert entity.state["hvac_mode"] == "off" + assert entity.state.hvac_mode == "off" assert thrm_cluster.write_attributes.call_count == 1 assert thrm_cluster.write_attributes.call_args[0][0] == { "system_mode": Thermostat.SystemMode.Off @@ -631,28 +631,28 @@ async def test_climate_hvac_action_pi_demand( device_climate, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["hvac_action"] is None + assert entity.state.hvac_action is None await send_attributes_report(zha_gateway, thrm_cluster, {0x0007: 10}) - assert entity.state["hvac_action"] == "cooling" + assert entity.state.hvac_action == "cooling" await send_attributes_report(zha_gateway, thrm_cluster, {0x0008: 20}) - assert entity.state["hvac_action"] == "heating" + assert entity.state.hvac_action == "heating" await send_attributes_report(zha_gateway, thrm_cluster, {0x0007: 0}) await send_attributes_report(zha_gateway, thrm_cluster, {0x0008: 0}) - assert entity.state["hvac_action"] == "off" + assert entity.state.hvac_action == "off" await send_attributes_report( zha_gateway, thrm_cluster, {0x001C: Thermostat.SystemMode.Heat} ) - assert entity.state["hvac_action"] == "idle" + assert entity.state.hvac_action == "idle" await send_attributes_report( zha_gateway, thrm_cluster, {0x001C: Thermostat.SystemMode.Cool} ) - assert entity.state["hvac_action"] == "idle" + assert entity.state.hvac_action == "idle" @pytest.mark.parametrize( @@ -678,18 +678,18 @@ async def test_hvac_mode( device_climate, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["hvac_mode"] == "off" + assert entity.state.hvac_mode == "off" await send_attributes_report(zha_gateway, thrm_cluster, {0x001C: sys_mode}) - assert entity.state["hvac_mode"] == hvac_mode + assert entity.state.hvac_mode == hvac_mode await send_attributes_report( zha_gateway, thrm_cluster, {0x001C: Thermostat.SystemMode.Off} ) - assert entity.state["hvac_mode"] == "off" + assert entity.state.hvac_mode == "off" await send_attributes_report(zha_gateway, thrm_cluster, {0x001C: 0xFF}) - assert entity.state["hvac_mode"] is None + assert entity.state.hvac_mode is None @pytest.mark.parametrize( @@ -757,7 +757,7 @@ async def test_target_temperature( await entity.async_set_preset_mode(preset) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature"] == target_temp + assert entity.state.target_temperature == target_temp @pytest.mark.parametrize( @@ -794,7 +794,7 @@ async def test_target_temperature_high( await entity.async_set_preset_mode(preset) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature_high"] == target_temp + assert entity.state.target_temperature_high == target_temp @pytest.mark.parametrize( @@ -831,7 +831,7 @@ async def test_target_temperature_low( await entity.async_set_preset_mode(preset) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature_low"] == target_temp + assert entity.state.target_temperature_low == target_temp @pytest.mark.parametrize( @@ -858,27 +858,27 @@ async def test_set_hvac_mode( device_climate, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["hvac_mode"] == "off" + assert entity.state.hvac_mode == "off" await entity.async_set_hvac_mode(hvac_mode) await zha_gateway.async_block_till_done() if sys_mode is not None: - assert entity.state["hvac_mode"] == hvac_mode + assert entity.state.hvac_mode == hvac_mode assert thrm_cluster.write_attributes.call_count == 1 assert thrm_cluster.write_attributes.call_args[0][0] == { "system_mode": sys_mode } else: assert thrm_cluster.write_attributes.call_count == 0 - assert entity.state["hvac_mode"] == "off" + assert entity.state.hvac_mode == "off" # turn off thrm_cluster.write_attributes.reset_mock() await entity.async_set_hvac_mode("off") await zha_gateway.async_block_till_done() - assert entity.state["hvac_mode"] == "off" + assert entity.state.hvac_mode == "off" assert thrm_cluster.write_attributes.call_count == 1 assert thrm_cluster.write_attributes.call_args[0][0] == { "system_mode": Thermostat.SystemMode.Off @@ -895,7 +895,7 @@ async def test_preset_setting( dev_climate_sinope, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["preset_mode"] == "none" + assert entity.state.preset_mode == "none" # unsuccessful occupancy change thrm_cluster.write_attributes.return_value = [ @@ -913,7 +913,7 @@ async def test_preset_setting( await entity.async_set_preset_mode("away") await zha_gateway.async_block_till_done() - assert entity.state["preset_mode"] == "none" + assert entity.state.preset_mode == "none" assert thrm_cluster.write_attributes.call_count == 1 assert thrm_cluster.write_attributes.call_args[0][0] == {"set_occupancy": 0} @@ -925,7 +925,7 @@ async def test_preset_setting( await entity.async_set_preset_mode("away") await zha_gateway.async_block_till_done() - assert entity.state["preset_mode"] == "away" + assert entity.state.preset_mode == "away" assert thrm_cluster.write_attributes.call_count == 1 assert thrm_cluster.write_attributes.call_args[0][0] == {"set_occupancy": 0} @@ -947,7 +947,7 @@ async def test_preset_setting( await entity.async_set_preset_mode("none") await zha_gateway.async_block_till_done() - assert entity.state["preset_mode"] == "away" + assert entity.state.preset_mode == "away" assert thrm_cluster.write_attributes.call_count == 1 assert thrm_cluster.write_attributes.call_args[0][0] == {"set_occupancy": 1} @@ -960,7 +960,7 @@ async def test_preset_setting( await entity.async_set_preset_mode("none") await zha_gateway.async_block_till_done() - assert entity.state["preset_mode"] == "none" + assert entity.state.preset_mode == "none" assert thrm_cluster.write_attributes.call_count == 1 assert thrm_cluster.write_attributes.call_args[0][0] == {"set_occupancy": 1} @@ -975,11 +975,11 @@ async def test_preset_setting_invalid( dev_climate_sinope, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["preset_mode"] == "none" + assert entity.state.preset_mode == "none" await entity.async_set_preset_mode("invalid_preset") await zha_gateway.async_block_till_done() - assert entity.state["preset_mode"] == "none" + assert entity.state.preset_mode == "none" assert thrm_cluster.write_attributes.call_count == 0 @@ -994,11 +994,11 @@ async def test_set_temperature_hvac_mode( device_climate, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["hvac_mode"] == "off" + assert entity.state.hvac_mode == "off" await entity.async_set_temperature(hvac_mode="heat_cool", temperature=20) await zha_gateway.async_block_till_done() - assert entity.state["hvac_mode"] == "heat_cool" + assert entity.state.hvac_mode == "heat_cool" assert thrm_cluster.write_attributes.await_count == 1 assert thrm_cluster.write_attributes.call_args[0][0] == { "system_mode": Thermostat.SystemMode.Auto @@ -1028,20 +1028,20 @@ async def test_set_temperature_heat_cool( device_climate, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["hvac_mode"] == "heat_cool" + assert entity.state.hvac_mode == "heat_cool" await entity.async_set_temperature(temperature=20) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature_low"] == 20.0 - assert entity.state["target_temperature_high"] == 25.0 + assert entity.state.target_temperature_low == 20.0 + assert entity.state.target_temperature_high == 25.0 assert thrm_cluster.write_attributes.await_count == 0 await entity.async_set_temperature(target_temp_high=26, target_temp_low=19) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature_low"] == 19.0 - assert entity.state["target_temperature_high"] == 26.0 + assert entity.state.target_temperature_low == 19.0 + assert entity.state.target_temperature_high == 26.0 assert thrm_cluster.write_attributes.await_count == 2 assert thrm_cluster.write_attributes.call_args_list[0][0][0] == { "occupied_heating_setpoint": 1900 @@ -1057,8 +1057,8 @@ async def test_set_temperature_heat_cool( await entity.async_set_temperature(target_temp_high=30, target_temp_low=15) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature_low"] == 15.0 - assert entity.state["target_temperature_high"] == 30.0 + assert entity.state.target_temperature_low == 15.0 + assert entity.state.target_temperature_high == 30.0 assert thrm_cluster.write_attributes.await_count == 2 assert thrm_cluster.write_attributes.call_args_list[0][0][0] == { "unoccupied_heating_setpoint": 1500 @@ -1091,22 +1091,22 @@ async def test_set_temperature_heat( device_climate, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["hvac_mode"] == "heat" + assert entity.state.hvac_mode == "heat" await entity.async_set_temperature(target_temp_high=30, target_temp_low=15) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature_low"] is None - assert entity.state["target_temperature_high"] is None - assert entity.state["target_temperature"] == 20.0 + assert entity.state.target_temperature_low is None + assert entity.state.target_temperature_high is None + assert entity.state.target_temperature == 20.0 assert thrm_cluster.write_attributes.await_count == 0 await entity.async_set_temperature(temperature=21) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature_low"] is None - assert entity.state["target_temperature_high"] is None - assert entity.state["target_temperature"] == 21.0 + assert entity.state.target_temperature_low is None + assert entity.state.target_temperature_high is None + assert entity.state.target_temperature == 21.0 assert thrm_cluster.write_attributes.await_count == 1 assert thrm_cluster.write_attributes.call_args_list[0][0][0] == { "occupied_heating_setpoint": 2100 @@ -1119,9 +1119,9 @@ async def test_set_temperature_heat( await entity.async_set_temperature(temperature=22) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature_low"] is None - assert entity.state["target_temperature_high"] is None - assert entity.state["target_temperature"] == 22.0 + assert entity.state.target_temperature_low is None + assert entity.state.target_temperature_high is None + assert entity.state.target_temperature == 22.0 assert thrm_cluster.write_attributes.await_count == 1 assert thrm_cluster.write_attributes.call_args_list[0][0][0] == { "unoccupied_heating_setpoint": 2200 @@ -1151,22 +1151,22 @@ async def test_set_temperature_cool( device_climate, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["hvac_mode"] == "cool" + assert entity.state.hvac_mode == "cool" await entity.async_set_temperature(target_temp_high=30, target_temp_low=15) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature_low"] is None - assert entity.state["target_temperature_high"] is None - assert entity.state["target_temperature"] == 25.0 + assert entity.state.target_temperature_low is None + assert entity.state.target_temperature_high is None + assert entity.state.target_temperature == 25.0 assert thrm_cluster.write_attributes.await_count == 0 await entity.async_set_temperature(temperature=21) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature_low"] is None - assert entity.state["target_temperature_high"] is None - assert entity.state["target_temperature"] == 21.0 + assert entity.state.target_temperature_low is None + assert entity.state.target_temperature_high is None + assert entity.state.target_temperature == 21.0 assert thrm_cluster.write_attributes.await_count == 1 assert thrm_cluster.write_attributes.call_args_list[0][0][0] == { "occupied_cooling_setpoint": 2100 @@ -1179,9 +1179,9 @@ async def test_set_temperature_cool( await entity.async_set_temperature(temperature=22) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature_low"] is None - assert entity.state["target_temperature_high"] is None - assert entity.state["target_temperature"] == 22.0 + assert entity.state.target_temperature_low is None + assert entity.state.target_temperature_high is None + assert entity.state.target_temperature == 22.0 assert thrm_cluster.write_attributes.await_count == 1 assert thrm_cluster.write_attributes.call_args_list[0][0][0] == { "unoccupied_cooling_setpoint": 2200 @@ -1215,14 +1215,14 @@ async def test_set_temperature_wrong_mode( device_climate, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["hvac_mode"] == "dry" + assert entity.state.hvac_mode == "dry" await entity.async_set_temperature(temperature=24) await zha_gateway.async_block_till_done() - assert entity.state["target_temperature_low"] is None - assert entity.state["target_temperature_high"] is None - assert entity.state["target_temperature"] is None + assert entity.state.target_temperature_low is None + assert entity.state.target_temperature_high is None + assert entity.state.target_temperature is None assert thrm_cluster.write_attributes.await_count == 0 @@ -1236,20 +1236,20 @@ async def test_occupancy_reset( dev_climate_sinope, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["preset_mode"] == "none" + assert entity.state.preset_mode == "none" await entity.async_set_preset_mode("away") await zha_gateway.async_block_till_done() thrm_cluster.write_attributes.reset_mock() - assert entity.state["preset_mode"] == "away" + assert entity.state.preset_mode == "away" await send_attributes_report( zha_gateway, thrm_cluster, {"occupied_heating_setpoint": zigpy.types.uint16_t(1950)}, ) - assert entity.state["preset_mode"] == "none" + assert entity.state.preset_mode == "none" async def test_fan_mode( @@ -1263,26 +1263,26 @@ async def test_fan_mode( ) assert set(entity.fan_modes) == {FanState.AUTO, FanState.ON} - assert entity.state["fan_mode"] == FanState.AUTO + assert entity.state.fan_mode == FanState.AUTO await send_attributes_report( zha_gateway, thrm_cluster, {"running_state": Thermostat.RunningState.Fan_State_On}, ) - assert entity.state["fan_mode"] == FanState.ON + assert entity.state.fan_mode == FanState.ON await send_attributes_report( zha_gateway, thrm_cluster, {"running_state": Thermostat.RunningState.Idle} ) - assert entity.state["fan_mode"] == FanState.AUTO + assert entity.state.fan_mode == FanState.AUTO await send_attributes_report( zha_gateway, thrm_cluster, {"running_state": Thermostat.RunningState.Fan_2nd_Stage_On}, ) - assert entity.state["fan_mode"] == FanState.ON + assert entity.state.fan_mode == FanState.ON async def test_set_fan_mode_not_supported( @@ -1310,7 +1310,7 @@ async def test_set_fan_mode( device_climate_fan, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["fan_mode"] == FanState.AUTO + assert entity.state.fan_mode == FanState.AUTO await entity.async_set_fan_mode(FanState.ON) await zha_gateway.async_block_till_done() @@ -1339,7 +1339,7 @@ async def test_set_moes_preset(zha_gateway: Gateway): device_climate_moes, platform=Platform.CLIMATE, entity_type=ThermostatEntity ) - assert entity.state["preset_mode"] == "none" + assert entity.state.preset_mode == "none" await entity.async_set_preset_mode("away") await zha_gateway.async_block_till_done() @@ -1434,31 +1434,31 @@ async def test_set_moes_operation_mode(zha_gateway: Gateway): await send_attributes_report(zha_gateway, thrm_cluster, {"operation_preset": 0}) - assert entity.state["preset_mode"] == "away" + assert entity.state.preset_mode == "away" await send_attributes_report(zha_gateway, thrm_cluster, {"operation_preset": 1}) - assert entity.state["preset_mode"] == "Schedule" + assert entity.state.preset_mode == "Schedule" await send_attributes_report(zha_gateway, thrm_cluster, {"operation_preset": 2}) - assert entity.state["preset_mode"] == "none" + assert entity.state.preset_mode == "none" await send_attributes_report(zha_gateway, thrm_cluster, {"operation_preset": 3}) - assert entity.state["preset_mode"] == "comfort" + assert entity.state.preset_mode == "comfort" await send_attributes_report(zha_gateway, thrm_cluster, {"operation_preset": 4}) - assert entity.state["preset_mode"] == "eco" + assert entity.state.preset_mode == "eco" await send_attributes_report(zha_gateway, thrm_cluster, {"operation_preset": 5}) - assert entity.state["preset_mode"] == "boost" + assert entity.state.preset_mode == "boost" await send_attributes_report(zha_gateway, thrm_cluster, {"operation_preset": 6}) - assert entity.state["preset_mode"] == "Complex" + assert entity.state.preset_mode == "Complex" # Device is running an energy-saving mode @@ -1498,7 +1498,7 @@ async def test_beca_operation_mode_update( zha_gateway, thrm_cluster, {"operation_preset": preset_attr} ) - assert entity.state[ATTR_PRESET_MODE] == preset_mode + assert entity.state.preset_mode == preset_mode await entity.async_set_preset_mode(preset_mode) await zha_gateway.async_block_till_done() @@ -1526,7 +1526,7 @@ async def test_set_zonnsmart_preset(zha_gateway: Gateway) -> None: entity_type=ThermostatEntity, ) - assert entity.state[ATTR_PRESET_MODE] == PRESET_NONE + assert entity.state.preset_mode == PRESET_NONE await entity.async_set_preset_mode(PRESET_SCHEDULE) await zha_gateway.async_block_till_done() @@ -1588,23 +1588,23 @@ async def test_set_zonnsmart_operation_mode(zha_gateway: Gateway) -> None: await send_attributes_report(zha_gateway, thrm_cluster, {"operation_preset": 0}) - assert entity.state[ATTR_PRESET_MODE] == PRESET_SCHEDULE + assert entity.state.preset_mode == PRESET_SCHEDULE await send_attributes_report(zha_gateway, thrm_cluster, {"operation_preset": 1}) - assert entity.state[ATTR_PRESET_MODE] == PRESET_NONE + assert entity.state.preset_mode == PRESET_NONE await send_attributes_report(zha_gateway, thrm_cluster, {"operation_preset": 2}) - assert entity.state[ATTR_PRESET_MODE] == "holiday" + assert entity.state.preset_mode == "holiday" await send_attributes_report(zha_gateway, thrm_cluster, {"operation_preset": 3}) - assert entity.state[ATTR_PRESET_MODE] == "holiday" + assert entity.state.preset_mode == "holiday" await send_attributes_report(zha_gateway, thrm_cluster, {"operation_preset": 4}) - assert entity.state[ATTR_PRESET_MODE] == "frost protect" + assert entity.state.preset_mode == "frost protect" async def test_thermostat_default_local_temperature_calibration_config( @@ -1625,9 +1625,9 @@ async def test_thermostat_default_local_temperature_calibration_config( ] assert local_temperature_calibration_entity assert isinstance(local_temperature_calibration_entity, NumberConfigurationEntity) - assert local_temperature_calibration_entity.info_object.native_min_value == -2.5 - assert local_temperature_calibration_entity.info_object.native_max_value == 2.5 - assert local_temperature_calibration_entity.info_object.native_step == 0.1 + assert local_temperature_calibration_entity.state.native_min_value == -2.5 + assert local_temperature_calibration_entity.state.native_max_value == 2.5 + assert local_temperature_calibration_entity.state.native_step == 0.1 assert local_temperature_calibration_entity._multiplier == 0.1 @@ -1686,7 +1686,7 @@ def discover_entities(self) -> Iterator[BaseEntity]: ] assert local_temperature_calibration_entity assert isinstance(local_temperature_calibration_entity, NumberConfigurationEntity) - assert local_temperature_calibration_entity.info_object.native_min_value == -5.0 - assert local_temperature_calibration_entity.info_object.native_max_value == 5.0 - assert local_temperature_calibration_entity.info_object.native_step == 0.1 + assert local_temperature_calibration_entity.state.native_min_value == -5.0 + assert local_temperature_calibration_entity.state.native_max_value == 5.0 + assert local_temperature_calibration_entity.state.native_step == 0.1 assert local_temperature_calibration_entity._multiplier == 0.1 diff --git a/tests/test_cover.py b/tests/test_cover.py index a9a70f597..f22021e8b 100644 --- a/tests/test_cover.py +++ b/tests/test_cover.py @@ -31,13 +31,7 @@ LIFT_MOVEMENT_TIMEOUT_RANGE, TILT_MOVEMENT_TIMEOUT_RANGE, ) -from zha.application.platforms.cover.const import ( - ATTR_CURRENT_POSITION, - ATTR_CURRENT_TILT_POSITION, - WCT, - CoverEntityFeature, - CoverState, -) +from zha.application.platforms.cover.const import WCT, CoverEntityFeature, CoverState from zha.const import STATE_CHANGED from zha.exceptions import ZHAException from zha.zigbee.device import Device @@ -147,9 +141,9 @@ async def test_cover_non_tilt_initial_state( # pylint: disable=unused-argument ) entity = get_entity(zha_device, platform=Platform.COVER) - assert entity.state["state"] == CoverState.OPEN - assert entity.state[ATTR_CURRENT_POSITION] == 100 - assert entity.state[ATTR_CURRENT_TILT_POSITION] is None + assert entity.state.state == CoverState.OPEN + assert entity.state.current_position == 100 + assert entity.state.current_tilt_position is None assert entity.supported_features == ( CoverEntityFeature.OPEN | CoverEntityFeature.CLOSE @@ -161,8 +155,8 @@ async def test_cover_non_tilt_initial_state( # pylint: disable=unused-argument await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 100} ) - assert entity.state["state"] == CoverState.CLOSED - assert entity.state[ATTR_CURRENT_POSITION] == 0 + assert entity.state.state == CoverState.CLOSED + assert entity.state.current_position == 0 async def test_cover_non_lift_initial_state( # pylint: disable=unused-argument @@ -190,9 +184,9 @@ async def test_cover_non_lift_initial_state( # pylint: disable=unused-argument ) entity = get_entity(zha_device, platform=Platform.COVER) - assert entity.state["state"] == CoverState.OPEN - assert entity.state[ATTR_CURRENT_POSITION] is None - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 100 + assert entity.state.state == CoverState.OPEN + assert entity.state.current_position is None + assert entity.state.current_tilt_position == 100 assert entity.supported_features == ( CoverEntityFeature.OPEN_TILT | CoverEntityFeature.CLOSE_TILT @@ -204,8 +198,8 @@ async def test_cover_non_lift_initial_state( # pylint: disable=unused-argument await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 100} ) - assert entity.state["state"] == CoverState.CLOSED - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 0 + assert entity.state.state == CoverState.CLOSED + assert entity.state.current_tilt_position == 0 async def test_cover( @@ -248,31 +242,31 @@ async def test_cover( await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 100} ) - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED # test that the state remains after tilting to 100% (closed) await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 100} ) - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED # set lift to 0% (open) and test to see if state changes to open await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 0} ) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # test that the state remains after tilting to 0% (open) await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 0} ) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # test to see the state remains after tilting to 100% (closed) await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 100} ) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # test entity async_update read of positions from the cluster cluster.PLUGGED_ATTR_READS[WCAttrs.current_position_lift_percentage.name] = 0 @@ -280,7 +274,7 @@ async def test_cover( update_attribute_cache(cluster) await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # close from client with patch("zigpy.zcl.Cluster.request", return_value=[0x1, zcl_f.Status.SUCCESS]): @@ -292,17 +286,17 @@ async def test_cover( assert cluster.request.call_args[0][2].command.name == WCCmds.down_close.name assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.state == CoverState.CLOSING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 100} ) - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED # verify that a subsequent close command does not change the state to closing await entity.async_close_cover() - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED # tilt close from client with patch("zigpy.zcl.Cluster.request", return_value=[0x1, zcl_f.Status.SUCCESS]): @@ -310,7 +304,7 @@ async def test_cover( await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 0} ) - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED await entity.async_close_cover_tilt() await zha_gateway.async_block_till_done() @@ -324,17 +318,17 @@ async def test_cover( assert cluster.request.call_args[0][3] == 100 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.state == CoverState.CLOSING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 100} ) - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED # verify that a subsequent close command does not change the state to closing await entity.async_close_cover_tilt() - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED # open from client with patch("zigpy.zcl.Cluster.request", return_value=[0x0, zcl_f.Status.SUCCESS]): @@ -346,17 +340,17 @@ async def test_cover( assert cluster.request.call_args[0][2].command.name == WCCmds.up_open.name assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state["state"] == CoverState.OPENING + assert entity.state.state == CoverState.OPENING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 0} ) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # verify that a subsequent open command does not change the state to opening await entity.async_open_cover() - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # open tilt from client with patch("zigpy.zcl.Cluster.request", return_value=[0x0, zcl_f.Status.SUCCESS]): @@ -372,21 +366,21 @@ async def test_cover( assert cluster.request.call_args[0][3] == 0 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state["state"] == CoverState.OPENING + assert entity.state.state == CoverState.OPENING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 0} ) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # verify that a subsequent open command does not change the state to opening await entity.async_open_cover_tilt() - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # test set position command, starting at 100 % / 0 ZCL (open) from previous lift test with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): - assert entity.state[ATTR_CURRENT_POSITION] == 100 + assert entity.state.current_position == 100 await entity.async_set_cover_position(position=47) # 53 when inverted for ZCL await zha_gateway.async_block_till_done() assert cluster.request.call_count == 1 @@ -396,33 +390,33 @@ async def test_cover( assert cluster.request.call_args[0][3] == 53 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.state == CoverState.CLOSING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 35} ) - assert entity.state[ATTR_CURRENT_POSITION] == 65 - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.current_position == 65 + assert entity.state.state == CoverState.CLOSING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 53} ) - assert entity.state[ATTR_CURRENT_POSITION] == 47 - assert entity.state["state"] == CoverState.OPEN + assert entity.state.current_position == 47 + assert entity.state.state == CoverState.OPEN # verify that a subsequent go_to command does not change the state to closing/opening await entity.async_set_cover_position(position=47) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # wait for transition timeout to clear the target await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # test set tilt position command, starting at 100 % / 0 ZCL (open) from previous tilt test with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 100 + assert entity.state.current_tilt_position == 100 await entity.async_set_cover_tilt_position( tilt_position=47 ) # 53 when inverted for ZCL @@ -437,29 +431,29 @@ async def test_cover( assert cluster.request.call_args[0][3] == 53 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.state == CoverState.CLOSING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 35} ) - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 65 - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.current_tilt_position == 65 + assert entity.state.state == CoverState.CLOSING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 53} ) - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 47 - assert entity.state["state"] == CoverState.OPEN + assert entity.state.current_tilt_position == 47 + assert entity.state.state == CoverState.OPEN # verify that a subsequent go_to command does not change the state to closing/opening await entity.async_set_cover_tilt_position(tilt_position=47) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # wait for transition timeout to clear the target await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # test interrupted movement (e.g. device button press), starting from 47 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): @@ -472,20 +466,20 @@ async def test_cover( assert cluster.request.call_args[0][3] == 100 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state[ATTR_CURRENT_POSITION] == 47 - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.current_position == 47 + assert entity.state.state == CoverState.CLOSING # simulate a device position update to set timer to the default duration rather than dynamic await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 70} ) - assert entity.state[ATTR_CURRENT_POSITION] == 30 - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.current_position == 30 + assert entity.state.state == CoverState.CLOSING # wait the timer duration await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # test interrupted tilt movement (e.g. device button press), starting from 47 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): @@ -500,57 +494,57 @@ async def test_cover( assert cluster.request.call_args[0][3] == 100 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 47 - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.current_tilt_position == 47 + assert entity.state.state == CoverState.CLOSING # simulate a device position update to set timer to the default duration rather than dynamic await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 70} ) - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 30 - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.current_tilt_position == 30 + assert entity.state.state == CoverState.CLOSING # wait the timer duration await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # test device instigated movement (e.g. device button press), starting from 30 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): - assert entity.state[ATTR_CURRENT_POSITION] == 30 - assert entity.state["state"] == CoverState.OPEN + assert entity.state.current_position == 30 + assert entity.state.state == CoverState.OPEN await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 60} ) - assert entity.state[ATTR_CURRENT_POSITION] == 40 - assert entity.state["state"] == CoverState.OPENING + assert entity.state.current_position == 40 + assert entity.state.state == CoverState.OPENING # wait the default timer duration await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # test device instigated tilt movement (e.g. device button press), starting from 30 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 30 - assert entity.state["state"] == CoverState.OPEN + assert entity.state.current_tilt_position == 30 + assert entity.state.state == CoverState.OPEN await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 60} ) - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 40 - assert entity.state["state"] == CoverState.OPENING + assert entity.state.current_tilt_position == 40 + assert entity.state.state == CoverState.OPENING # wait the default timer duration await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # test dynamic movement timeout, starting from 40 % and moving to 90 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): - assert entity.state[ATTR_CURRENT_POSITION] == 40 - assert entity.state["state"] == CoverState.OPEN + assert entity.state.current_position == 40 + assert entity.state.state == CoverState.OPEN await entity.async_set_cover_position(position=90) # 10 when inverted for ZCL await zha_gateway.async_block_till_done() @@ -561,23 +555,23 @@ async def test_cover( assert cluster.request.call_args[0][3] == 10 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state["state"] == CoverState.OPENING + assert entity.state.state == CoverState.OPENING # wait the default timer duration and verify status is still opening await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state["state"] == CoverState.OPENING + assert entity.state.state == CoverState.OPENING # wait the remainder of the dynamic timeout and check if the movement timed out: (50% * 300 seconds) - default await asyncio.sleep( (50 * 0.01 * LIFT_MOVEMENT_TIMEOUT_RANGE) - DEFAULT_MOVEMENT_TIMEOUT ) - assert entity.state[ATTR_CURRENT_POSITION] == 40 - assert entity.state["state"] == CoverState.OPEN + assert entity.state.current_position == 40 + assert entity.state.state == CoverState.OPEN # test dynamic tilt movement timeout, starting from 40 % and moving to 90 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 40 - assert entity.state["state"] == CoverState.OPEN + assert entity.state.current_tilt_position == 40 + assert entity.state.state == CoverState.OPEN await entity.async_set_cover_tilt_position( tilt_position=90 @@ -590,23 +584,23 @@ async def test_cover( assert cluster.request.call_args[0][3] == 10 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state["state"] == CoverState.OPENING + assert entity.state.state == CoverState.OPENING # wait the default timer duration and verify status is still opening await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state["state"] == CoverState.OPENING + assert entity.state.state == CoverState.OPENING # wait the remainder of the dynamic timeout and check if the movement timed out: (50% * 30 seconds) - default await asyncio.sleep( (50 * 0.01 * TILT_MOVEMENT_TIMEOUT_RANGE) - DEFAULT_MOVEMENT_TIMEOUT ) - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 40 - assert entity.state["state"] == CoverState.OPEN + assert entity.state.current_tilt_position == 40 + assert entity.state.state == CoverState.OPEN # test concurrent movement of both axis, lift and tilt starting at 40 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): - assert entity.state[ATTR_CURRENT_POSITION] == 40 - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 40 + assert entity.state.current_position == 40 + assert entity.state.current_tilt_position == 40 await entity.async_set_cover_position(position=90) # 10 when inverted for ZCL await zha_gateway.async_block_till_done() @@ -618,7 +612,7 @@ async def test_cover( assert cluster.request.call_args[1]["expect_reply"] is True # verify the cover is opening due to the lift direction - assert entity.state["state"] == CoverState.OPENING + assert entity.state.state == CoverState.OPENING await entity.async_set_cover_tilt_position( tilt_position=1 @@ -632,25 +626,25 @@ async def test_cover( assert cluster.request.call_args[1]["expect_reply"] is True # the last action's direction takes state precedence (tilt) - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.state == CoverState.CLOSING # report that tilt has reached its target await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 99} ) - assert entity.state[ATTR_CURRENT_TILT_POSITION] == 1 + assert entity.state.current_tilt_position == 1 # state should have reverted to opening because there is still an active lift target transition - assert entity.state["state"] == CoverState.OPENING + assert entity.state.state == CoverState.OPENING # report that lift has reached its target await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 10} ) - assert entity.state[ATTR_CURRENT_POSITION] == 90 + assert entity.state.current_position == 90 # the state should now be open (static) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # stop from client with patch("zigpy.zcl.Cluster.request", return_value=[0x2, zcl_f.Status.SUCCESS]): @@ -729,7 +723,7 @@ async def test_cover_failures(zha_gateway: Gateway) -> None: zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 0} ) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # close from UI with patch( @@ -747,7 +741,7 @@ async def test_cover_failures(zha_gateway: Gateway) -> None: cluster.request.call_args[0][1] == closures.WindowCovering.ServerCommandDefs.down_close.id ) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN with patch( "zigpy.zcl.Cluster.request", @@ -894,18 +888,18 @@ async def test_shade( await send_attributes_report( zha_gateway, cluster_on_off, {cluster_on_off.AttributeDefs.on_off.id: 0} ) - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED # test to see if it opens await send_attributes_report( zha_gateway, cluster_on_off, {cluster_on_off.AttributeDefs.on_off.id: 1} ) - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # test entity async_update await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # close from client command fails with ( @@ -923,7 +917,7 @@ async def test_shade( assert cluster_on_off.request.call_count == 1 assert cluster_on_off.request.call_args[0][0] is False assert cluster_on_off.request.call_args[0][1] == 0x0000 - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN with patch( "zigpy.zcl.Cluster.request", AsyncMock(return_value=[0x1, zcl_f.Status.SUCCESS]) @@ -933,11 +927,11 @@ async def test_shade( assert cluster_on_off.request.call_count == 1 assert cluster_on_off.request.call_args[0][0] is False assert cluster_on_off.request.call_args[0][1] == 0x0000 - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED # open from client command fails await send_attributes_report(zha_gateway, cluster_level, {0: 0}) - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED with ( patch( @@ -954,7 +948,7 @@ async def test_shade( assert cluster_on_off.request.call_count == 1 assert cluster_on_off.request.call_args[0][0] is False assert cluster_on_off.request.call_args[0][1] == 0x0001 - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED # open from client succeeds with patch( @@ -965,7 +959,7 @@ async def test_shade( assert cluster_on_off.request.call_count == 1 assert cluster_on_off.request.call_args[0][0] is False assert cluster_on_off.request.call_args[0][1] == 0x0001 - assert entity.state["state"] == CoverState.OPEN + assert entity.state.state == CoverState.OPEN # set position UI command fails with ( @@ -984,7 +978,7 @@ async def test_shade( assert cluster_level.request.call_args[0][0] is False assert cluster_level.request.call_args[0][1] == 0x0004 assert int(cluster_level.request.call_args[0][3] * 100 / 255) == 47 - assert entity.state[ATTR_CURRENT_POSITION] == 0 + assert entity.state.current_position == 0 # set position UI success with patch( @@ -996,11 +990,11 @@ async def test_shade( assert cluster_level.request.call_args[0][0] is False assert cluster_level.request.call_args[0][1] == 0x0004 assert int(cluster_level.request.call_args[0][3] * 100 / 255) == 47 - assert entity.state[ATTR_CURRENT_POSITION] == 47 + assert entity.state.current_position == 47 # report position change await send_attributes_report(zha_gateway, cluster_level, {8: 0, 0: 100, 1: 1}) - assert entity.state[ATTR_CURRENT_POSITION] == int(100 * 100 / 255) + assert entity.state.current_position == int(100 * 100 / 255) # stop command fails with ( @@ -1059,12 +1053,12 @@ async def test_keen_vent( # test that the state has changed from unavailable to off await send_attributes_report(zha_gateway, cluster_on_off, {8: 0, 0: False, 1: 1}) - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED # test entity async_update await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED # open from client command fails p1 = patch.object(cluster_on_off, "request", side_effect=asyncio.TimeoutError) @@ -1078,7 +1072,7 @@ async def test_keen_vent( assert cluster_on_off.request.call_args[0][0] is False assert cluster_on_off.request.call_args[0][1] == 0x0001 assert cluster_level.request.call_count == 1 - assert entity.state["state"] == CoverState.CLOSED + assert entity.state.state == CoverState.CLOSED # open from client command success p1 = patch.object(cluster_on_off, "request", AsyncMock(return_value=[1, 0])) @@ -1091,8 +1085,8 @@ async def test_keen_vent( assert cluster_on_off.request.call_args[0][0] is False assert cluster_on_off.request.call_args[0][1] == 0x0001 assert cluster_level.request.call_count == 1 - assert entity.state["state"] == CoverState.OPEN - assert entity.state[ATTR_CURRENT_POSITION] == 100 + assert entity.state.state == CoverState.OPEN + assert entity.state.current_position == 100 async def test_cover_remote(zha_gateway: Gateway) -> None: @@ -1176,15 +1170,15 @@ async def test_cover_state_restoration( ) entity = get_entity(zha_device, platform=Platform.COVER) - assert entity.state["state"] == final_state - assert entity.state[ATTR_CURRENT_POSITION] == current_position - assert entity.state[ATTR_CURRENT_TILT_POSITION] == current_tilt_position + assert entity.state.state == final_state + assert entity.state.current_position == current_position + assert entity.state.current_tilt_position == current_tilt_position entity.restore_external_state_attributes(state=restore_state) if interim_state: - assert entity.state["state"] == interim_state + assert entity.state.state == interim_state await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state["state"] == final_state + assert entity.state.state == final_state async def test_cover_lift_timer_cancellation_on_remove(zha_gateway: Gateway) -> None: @@ -1203,7 +1197,7 @@ async def test_cover_lift_timer_cancellation_on_remove(zha_gateway: Gateway) -> with patch("zigpy.zcl.Cluster.request", return_value=[0x1, zcl_f.Status.SUCCESS]): await entity.async_close_cover() await zha_gateway.async_block_till_done() - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.state == CoverState.CLOSING # remove entity await entity.on_remove() @@ -1225,7 +1219,7 @@ async def test_cover_tilt_timer_cancellation_on_remove(zha_gateway: Gateway) -> with patch("zigpy.zcl.Cluster.request", return_value=[0x1, zcl_f.Status.SUCCESS]): await entity.async_close_cover_tilt() await zha_gateway.async_block_till_done() - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.state == CoverState.CLOSING # remove entity await entity.on_remove() @@ -1247,7 +1241,7 @@ async def test_cover_state_restore_timer_cancellation_on_remove( # start state restore timer entity = get_entity(zha_device, platform=Platform.COVER) entity.restore_external_state_attributes(state=CoverState.CLOSING) - assert entity.state["state"] == CoverState.CLOSING + assert entity.state.state == CoverState.CLOSING # remove entity await entity.on_remove() diff --git a/tests/test_device.py b/tests/test_device.py index 8c9703555..843db9a83 100644 --- a/tests/test_device.py +++ b/tests/test_device.py @@ -1135,7 +1135,7 @@ async def test_quirks_v2_translation_placeholders(zha_gateway: Gateway) -> None: assert ( entity.translation_placeholders - == entity.info_object.translation_placeholders + == entity.state.translation_placeholders == {"sensor_index": "1"} ) @@ -1800,9 +1800,12 @@ async def fake_reinterview(): assert len(zha_device.platform_entities) > 0 # Verify the group is subscribed to the NEW entity, not the old one. - # Emit a state change on the new entity and check the group got it. + # Cause a real state change on the new entity and check the group got it. new_switch = get_entity(zha_device, platform=Platform.SWITCH) mock_group_entity.debounced_update.reset_mock() + new_switch._cluster.update_attribute( + general.OnOff.AttributeDefs.on_off.id, zigpy.types.Bool.true + ) new_switch.maybe_emit_state_changed_event() assert mock_group_entity.debounced_update.called diff --git a/tests/test_device_tracker.py b/tests/test_device_tracker.py index f21ab98ae..b75e92d1d 100644 --- a/tests/test_device_tracker.py +++ b/tests/test_device_tracker.py @@ -50,7 +50,7 @@ async def test_device_tracker( cluster = zigpy_device_dt.endpoints.get(1).power entity = get_entity(zha_device, platform=Platform.DEVICE_TRACKER) - assert entity.state["connected"] is False + assert entity.state.connected is False # turn state flip await send_attributes_report( @@ -63,7 +63,7 @@ async def test_device_tracker( await zha_gateway.async_block_till_done() assert entity.async_update.await_count == 1 - assert entity.state["connected"] is True + assert entity.state.connected is True assert entity.is_connected is True assert entity.source_type == SourceType.ROUTER assert entity.battery_level == 100 @@ -72,19 +72,19 @@ async def test_device_tracker( zigpy_device_dt.last_seen = time.time() - 90 await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state["connected"] is False + assert entity.state.connected is False assert entity.is_connected is False # bring it back zigpy_device_dt.last_seen = time.time() await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state["connected"] is True + assert entity.state.connected is True assert entity.is_connected is True # knock it offline by setting last seen None zigpy_device_dt.last_seen = None await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state["connected"] is False + assert entity.state.connected is False assert entity.is_connected is False diff --git a/tests/test_discover.py b/tests/test_discover.py index edd36fb19..94cc481c6 100644 --- a/tests/test_discover.py +++ b/tests/test_discover.py @@ -387,7 +387,7 @@ class FakeXiaomiAqaraDriverE1(XiaomiAqaraDriverE1): qualifier_func=lambda e: e._enum == BasicCluster.PowerSource, ) assert ( - power_source_entity.state["state"] + power_source_entity.state.state == BasicCluster.PowerSource.Mains_single_phase.name ) @@ -397,7 +397,7 @@ class FakeXiaomiAqaraDriverE1(XiaomiAqaraDriverE1): exact_entity_type=sensor.EnumSensor, qualifier_func=lambda e: e._enum == AqaraE1HookState, ) - assert hook_state_entity.state["state"] == AqaraE1HookState.Unlocked.name + assert hook_state_entity.state.state == AqaraE1HookState.Unlocked.name error_detected_entity = get_entity( zha_device, @@ -405,7 +405,7 @@ class FakeXiaomiAqaraDriverE1(XiaomiAqaraDriverE1): exact_entity_type=binary_sensor.BinarySensor, qualifier_func=lambda e: e._attribute_name == "error_detected", ) - assert error_detected_entity.state["state"] is False + assert error_detected_entity.state.state is False def _get_test_device( diff --git a/tests/test_fan.py b/tests/test_fan.py index 5b13540a8..c02bedc4c 100644 --- a/tests/test_fan.py +++ b/tests/test_fan.py @@ -32,8 +32,6 @@ from zha.application.gateway import Gateway from zha.application.platforms import GroupEntity, PlatformEntity from zha.application.platforms.fan.const import ( - ATTR_PERCENTAGE, - ATTR_PRESET_MODE, PRESET_MODE_AUTO, PRESET_MODE_ON, PRESET_MODE_SMART, @@ -144,15 +142,15 @@ async def test_fan( cluster = zigpy_device.endpoints.get(1).fan entity = get_entity(zha_device, platform=Platform.FAN) - assert entity.state["is_on"] is False + assert entity.state.is_on is False # turn on at fan await send_attributes_report(zha_gateway, cluster, {1: 2, 0: 1, 2: 3}) - assert entity.state["is_on"] is True + assert entity.state.is_on is True # turn off at fan await send_attributes_report(zha_gateway, cluster, {1: 1, 0: 0, 2: 2}) - assert entity.state["is_on"] is False + assert entity.state.is_on is False # turn on from client cluster.write_attributes.reset_mock() @@ -161,7 +159,7 @@ async def test_fan( assert cluster.write_attributes.call_args == call( {"fan_mode": 2}, manufacturer=UNDEFINED ) - assert entity.state["is_on"] is True + assert entity.state.is_on is True # turn off from client cluster.write_attributes.reset_mock() @@ -170,7 +168,7 @@ async def test_fan( assert cluster.write_attributes.call_args == call( {"fan_mode": 0}, manufacturer=UNDEFINED ) - assert entity.state["is_on"] is False + assert entity.state.is_on is False # change speed from client cluster.write_attributes.reset_mock() @@ -179,8 +177,8 @@ async def test_fan( assert cluster.write_attributes.call_args == call( {"fan_mode": 3}, manufacturer=UNDEFINED ) - assert entity.state["is_on"] is True - assert entity.state["speed"] == SPEED_HIGH + assert entity.state.is_on is True + assert entity.state.speed == SPEED_HIGH # change preset_mode from client cluster.write_attributes.reset_mock() @@ -189,8 +187,8 @@ async def test_fan( assert cluster.write_attributes.call_args == call( {"fan_mode": 4}, manufacturer=UNDEFINED ) - assert entity.state["is_on"] is True - assert entity.state["preset_mode"] == PRESET_MODE_ON + assert entity.state.is_on is True + assert entity.state.preset_mode == PRESET_MODE_ON # test set percentage from client cluster.write_attributes.reset_mock() @@ -201,8 +199,8 @@ async def test_fan( {"fan_mode": 2}, manufacturer=UNDEFINED ) # this is converted to a ranged value - assert entity.state["percentage"] == 66 - assert entity.state["is_on"] is True + assert entity.state.percentage == 66 + assert entity.state.is_on is True # set invalid preset_mode from client cluster.write_attributes.reset_mock() @@ -214,14 +212,14 @@ async def test_fan( # test percentage in turn on command await entity.async_turn_on(percentage=25) await zha_gateway.async_block_till_done() - assert entity.state["percentage"] == 33 # this is converted to a ranged value - assert entity.state["speed"] == SPEED_LOW + assert entity.state.percentage == 33 # this is converted to a ranged value + assert entity.state.speed == SPEED_LOW # test speed in turn on command await entity.async_turn_on(speed=SPEED_HIGH) await zha_gateway.async_block_till_done() - assert entity.state["percentage"] == 100 - assert entity.state["speed"] == SPEED_HIGH + assert entity.state.percentage == 100 + assert entity.state.speed == SPEED_HIGH async def async_turn_on( @@ -300,7 +298,7 @@ async def test_zha_group_fan_entity( assert entity.group_id == zha_group.group_id assert isinstance(entity, GroupEntity) - assert entity.info_object.fallback_name == zha_group.name + assert entity.state.fallback_name == zha_group.name group_fan_cluster = zha_group.zigpy_group.endpoint[hvac.Fan.cluster_id] @@ -308,7 +306,7 @@ async def test_zha_group_fan_entity( dev2_fan_cluster = device_fan_2.device.endpoints[1].fan # test that the fan group entity was created and is off - assert entity.state["is_on"] is False + assert entity.state.is_on is False # turn on from client group_fan_cluster.write_attributes.reset_mock() @@ -352,32 +350,32 @@ async def test_zha_group_fan_entity( await send_attributes_report(zha_gateway, dev2_fan_cluster, {0: 0}) # test that group fan is off - assert entity.state["is_on"] is False + assert entity.state.is_on is False await send_attributes_report(zha_gateway, dev2_fan_cluster, {0: 2}) await zha_gateway.async_block_till_done() # no update yet because of debouncing - assert entity.state["is_on"] is False + assert entity.state.is_on is False # member updates are debounced for .5s await asyncio.sleep(1) await zha_gateway.async_block_till_done() - assert entity.state["is_on"] is True + assert entity.state.is_on is True await send_attributes_report(zha_gateway, dev2_fan_cluster, {0: 0}) await zha_gateway.async_block_till_done() # no update yet because of debouncing - assert entity.state["is_on"] is True + assert entity.state.is_on is True # member updates are debounced for .5s await asyncio.sleep(1) await zha_gateway.async_block_till_done() # test that group fan is now off - assert entity.state["is_on"] is False + assert entity.state.is_on is False await group_entity_availability_test( zha_gateway, device_fan_1, device_fan_2, entity @@ -419,7 +417,7 @@ async def test_zha_group_fan_entity_failure_state( group_fan_cluster = zha_group.zigpy_group.endpoint[hvac.Fan.cluster_id] # test that the fan group entity was created and is off - assert entity.state["is_on"] is False + assert entity.state.is_on is False # turn on from client group_fan_cluster.write_attributes.reset_mock() @@ -457,10 +455,10 @@ async def test_fan_init( entity = get_entity(zha_device, platform=Platform.FAN) - assert entity.state["is_on"] == expected_state - assert entity.state["speed"] == expected_speed - assert entity.state["percentage"] == expected_percentage - assert entity.state["preset_mode"] is None + assert entity.state.is_on == expected_state + assert entity.state.speed == expected_speed + assert entity.state.percentage == expected_percentage + assert entity.state.preset_mode is None async def test_fan_update_entity( @@ -475,26 +473,26 @@ async def test_fan_update_entity( entity = get_entity(zha_device, platform=Platform.FAN) - assert entity.state["is_on"] is False - assert entity.state["speed"] == SPEED_OFF - assert entity.state["percentage"] == 0 - assert entity.state["preset_mode"] is None + assert entity.state.is_on is False + assert entity.state.speed == SPEED_OFF + assert entity.state.percentage == 0 + assert entity.state.preset_mode is None assert entity.percentage_step == 100 / 3 assert cluster.read_attributes.await_count == 2 await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state["is_on"] is False - assert entity.state["speed"] == SPEED_OFF + assert entity.state.is_on is False + assert entity.state.speed == SPEED_OFF assert cluster.read_attributes.await_count == 3 cluster.PLUGGED_ATTR_READS = {"fan_mode": 1} await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state["is_on"] is True - assert entity.state["percentage"] == 33 - assert entity.state["speed"] == SPEED_LOW - assert entity.state["preset_mode"] is None + assert entity.state.is_on is True + assert entity.state.percentage == 33 + assert entity.state.speed == SPEED_LOW + assert entity.state.preset_mode is None assert entity.percentage_step == 100 / 3 assert cluster.read_attributes.await_count == 4 @@ -552,15 +550,15 @@ async def test_fan_ikea( cluster = zigpy_device_ikea.endpoints.get(1).ikea_airpurifier entity = get_entity(zha_device, platform=Platform.FAN) - assert entity.state["is_on"] is False + assert entity.state.is_on is False # turn on at fan await send_attributes_report(zha_gateway, cluster, {"fan_mode": 1}) - assert entity.state["is_on"] is True + assert entity.state.is_on is True # turn off at fan await send_attributes_report(zha_gateway, cluster, {"fan_mode": 0}) - assert entity.state["is_on"] is False + assert entity.state.is_on is False # turn on from HA cluster.write_attributes.reset_mock() @@ -651,9 +649,9 @@ async def test_fan_ikea_init( zha_device = await join_zigpy_device(zha_gateway, zigpy_device_ikea) entity = get_entity(zha_device, platform=Platform.FAN) - assert entity.state["is_on"] == ikea_expected_state - assert entity.state["percentage"] == ikea_expected_percentage - assert entity.state["preset_mode"] == ikea_preset_mode + assert entity.state.is_on == ikea_expected_state + assert entity.state.percentage == ikea_expected_percentage + assert entity.state.preset_mode == ikea_preset_mode async def test_fan_ikea_update_entity( @@ -667,9 +665,9 @@ async def test_fan_ikea_update_entity( zha_device = await join_zigpy_device(zha_gateway, zigpy_device_ikea) entity = get_entity(zha_device, platform=Platform.FAN) - assert entity.state["is_on"] is False - assert entity.state[ATTR_PERCENTAGE] == 0 - assert entity.state[ATTR_PRESET_MODE] is None + assert entity.state.is_on is False + assert entity.state.percentage == 0 + assert entity.state.preset_mode is None assert entity.percentage_step == 100 / 10 cluster.PLUGGED_ATTR_READS = {"fan_mode": 1, "fan_speed": 6} @@ -677,9 +675,9 @@ async def test_fan_ikea_update_entity( await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state["is_on"] is True - assert entity.state[ATTR_PERCENTAGE] == 60 - assert entity.state[ATTR_PRESET_MODE] is PRESET_MODE_AUTO + assert entity.state.is_on is True + assert entity.state.percentage == 60 + assert entity.state.preset_mode is PRESET_MODE_AUTO assert entity.percentage_step == 100 / 10 @@ -736,15 +734,15 @@ async def test_fan_kof( cluster = zigpy_device_kof.endpoints.get(1).fan entity = get_entity(zha_device, platform=Platform.FAN) - assert entity.state["is_on"] is False + assert entity.state.is_on is False # turn on at fan await send_attributes_report(zha_gateway, cluster, {1: 2, 0: 1, 2: 3}) - assert entity.state["is_on"] is True + assert entity.state.is_on is True # turn off at fan await send_attributes_report(zha_gateway, cluster, {1: 1, 0: 0, 2: 2}) - assert entity.state["is_on"] is False + assert entity.state.is_on is False # turn on from HA cluster.write_attributes.reset_mock() @@ -809,9 +807,9 @@ async def test_fan_kof_init( zha_device = await join_zigpy_device(zha_gateway, zigpy_device_kof) entity = get_entity(zha_device, platform=Platform.FAN) - assert entity.state["is_on"] is expected_state - assert entity.state[ATTR_PERCENTAGE] == expected_percentage - assert entity.state[ATTR_PRESET_MODE] == expected_preset + assert entity.state.is_on is expected_state + assert entity.state.percentage == expected_percentage + assert entity.state.preset_mode == expected_preset async def test_fan_kof_update_entity( @@ -826,9 +824,9 @@ async def test_fan_kof_update_entity( zha_device = await join_zigpy_device(zha_gateway, zigpy_device_kof) entity = get_entity(zha_device, platform=Platform.FAN) - assert entity.state["is_on"] is False - assert entity.state[ATTR_PERCENTAGE] == 0 - assert entity.state[ATTR_PRESET_MODE] is None + assert entity.state.is_on is False + assert entity.state.percentage == 0 + assert entity.state.preset_mode is None assert entity.percentage_step == 100 / 4 cluster.PLUGGED_ATTR_READS = {"fan_mode": 1} @@ -836,7 +834,7 @@ async def test_fan_kof_update_entity( await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state["is_on"] is True - assert entity.state[ATTR_PERCENTAGE] == 25 - assert entity.state[ATTR_PRESET_MODE] is None + assert entity.state.is_on is True + assert entity.state.percentage == 25 + assert entity.state.preset_mode is None assert entity.percentage_step == 100 / 4 diff --git a/tests/test_gateway.py b/tests/test_gateway.py index 17792ba40..a7db0e67c 100644 --- a/tests/test_gateway.py +++ b/tests/test_gateway.py @@ -280,7 +280,7 @@ async def test_gateway_group_methods( entity: GroupEntity | None = get_group_entity(zha_group, platform=Platform.LIGHT) assert entity is not None - info = entity.info_object + info = entity.state assert info.class_name == "LightGroup" assert info.platform == Platform.LIGHT assert info.unique_id == "light_zha_group_0x0002" diff --git a/tests/test_light.py b/tests/test_light.py index a7dcc4419..4ffa44c0a 100644 --- a/tests/test_light.py +++ b/tests/test_light.py @@ -284,7 +284,7 @@ async def test_light_refresh( zha_device = await join_zigpy_device(zha_gateway, zigpy_device) entity = get_entity(zha_device, platform=Platform.LIGHT) - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False on_off_cluster.read_attributes.reset_mock() @@ -293,7 +293,7 @@ async def test_light_refresh( await zha_gateway.async_block_till_done() assert on_off_cluster.read_attributes.call_count == 0 assert on_off_cluster.read_attributes.await_count == 0 - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False # 1 interval - at least 1 call on_off_cluster.PLUGGED_ATTR_READS = {"on_off": 1} @@ -301,7 +301,7 @@ async def test_light_refresh( await zha_gateway.async_block_till_done() assert on_off_cluster.read_attributes.call_count >= 1 assert on_off_cluster.read_attributes.await_count >= 1 - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True # 2 intervals - at least 2 calls on_off_cluster.PLUGGED_ATTR_READS = {"on_off": 0} @@ -309,7 +309,7 @@ async def test_light_refresh( await zha_gateway.async_block_till_done() assert on_off_cluster.read_attributes.call_count >= 2 assert on_off_cluster.read_attributes.await_count >= 2 - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False read_call_count = on_off_cluster.read_attributes.call_count read_await_count = on_off_cluster.read_attributes.await_count @@ -323,7 +323,7 @@ async def test_light_refresh( await zha_gateway.async_block_till_done() assert on_off_cluster.read_attributes.call_count == read_call_count assert on_off_cluster.read_attributes.await_count == read_await_count - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False entity.enable() @@ -333,7 +333,7 @@ async def test_light_refresh( await zha_gateway.async_block_till_done() assert on_off_cluster.read_attributes.call_count > read_call_count assert on_off_cluster.read_attributes.await_count > read_await_count - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True # TODO reporting is not checked @@ -392,7 +392,7 @@ async def test_light( ) entity = get_entity(zha_device, platform=Platform.LIGHT) - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False # test turning the lights on and off from the light await async_test_on_off_from_light(zha_gateway, cluster_on_off, entity) @@ -437,14 +437,14 @@ async def test_light( if cluster_color: # test color temperature from the client with transition - assert entity.state["brightness"] != 50 - assert entity.state["color_temp"] != 200 + assert entity.state.brightness != 50 + assert entity.state.color_temp != 200 await entity.async_turn_on(brightness=50, transition=10, color_temp=200) await zha_gateway.async_block_till_done() - assert entity.state["color_mode"] == ColorMode.COLOR_TEMP - assert entity.state["brightness"] == 50 - assert entity.state["color_temp"] == 200 - assert bool(entity.state["on"]) is True + assert entity.state.color_mode == ColorMode.COLOR_TEMP + assert entity.state.brightness == 50 + assert entity.state.color_temp == 200 + assert bool(entity.state.on) is True assert cluster_color.request.call_count == 1 assert cluster_color.request.await_count == 1 assert cluster_color.request.call_args == call( @@ -459,12 +459,12 @@ async def test_light( cluster_color.request.reset_mock() # test color xy from the client - assert entity.state["xy_color"] != [13369, 18087] + assert entity.state.xy_color != [13369, 18087] await entity.async_turn_on(brightness=50, xy_color=[13369, 18087]) await zha_gateway.async_block_till_done() - assert entity.state["color_mode"] == ColorMode.XY - assert entity.state["brightness"] == 50 - assert entity.state["xy_color"] == [13369, 18087] + assert entity.state.color_mode == ColorMode.XY + assert entity.state.brightness == 50 + assert entity.state.xy_color == [13369, 18087] assert cluster_color.request.call_count == 1 assert cluster_color.request.await_count == 1 assert cluster_color.request.call_args == call( @@ -493,11 +493,11 @@ async def async_test_on_off_from_light( # group member updates are debounced if isinstance(entity, GroupEntity): - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True # turn off at light await send_attributes_report(zha_gateway, cluster, {1: 1, 0: 0, 2: 3}) @@ -505,11 +505,11 @@ async def async_test_on_off_from_light( # group member updates are debounced if isinstance(entity, GroupEntity): - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False async def async_test_on_from_light( @@ -526,11 +526,11 @@ async def async_test_on_from_light( # group member updates are debounced if isinstance(entity, GroupEntity): - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True async def async_test_on_off_from_client( @@ -543,7 +543,7 @@ async def async_test_on_off_from_client( cluster.request.reset_mock() await entity.async_turn_on() await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True assert cluster.request.call_count == 1 assert cluster.request.await_count == 1 assert cluster.request.call_args == call( @@ -568,7 +568,7 @@ async def async_test_off_from_client( cluster.request.reset_mock() await entity.async_turn_off() await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False assert cluster.request.call_count == 1 assert cluster.request.await_count == 1 assert cluster.request.call_args == call( @@ -601,7 +601,7 @@ async def _reset_light(): await zha_gateway.async_block_till_done() on_off_cluster.request.reset_mock() level_cluster.request.reset_mock() - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False await _reset_light() await _async_shift_time(zha_gateway) @@ -609,7 +609,7 @@ async def _reset_light(): # turn on via UI await entity.async_turn_on() await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True assert on_off_cluster.request.call_count == 1 assert on_off_cluster.request.await_count == 1 assert level_cluster.request.call_count == 0 @@ -627,7 +627,7 @@ async def _reset_light(): await entity.async_turn_on(transition=10) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True assert on_off_cluster.request.call_count == 0 assert on_off_cluster.request.await_count == 0 assert level_cluster.request.call_count == 1 @@ -646,7 +646,7 @@ async def _reset_light(): await entity.async_turn_on(brightness=10) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True # the onoff cluster is now not used when brightness is present by default assert on_off_cluster.request.call_count == 0 assert on_off_cluster.request.await_count == 0 @@ -680,16 +680,16 @@ async def async_test_dimmer_from_light( zha_gateway, cluster, {1: level + 10, 0: level, 2: level - 10 or 22} ) await zha_gateway.async_block_till_done() - assert entity.state["on"] == expected_state + assert entity.state.on == expected_state # hass uses None for brightness of 0 in state attributes if level == 0: - assert entity.state["brightness"] is None + assert entity.state.brightness is None else: # group member updates are debounced if isinstance(entity, GroupEntity): await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert entity.state["brightness"] == level + assert entity.state.brightness == level async def async_test_flash_from_client( @@ -703,7 +703,7 @@ async def async_test_flash_from_client( cluster.request.reset_mock() await entity.async_turn_on(flash=flash) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True assert cluster.request.call_count == 1 assert cluster.request.await_count == 1 assert cluster.request.call_args == call( @@ -762,7 +762,7 @@ async def test_zha_group_light_entity( entity: GroupEntity = get_group_entity(zha_group, platform=Platform.LIGHT) assert entity.group_id == zha_group.group_id - assert entity.info_object.fallback_name == zha_group.name + assert entity.state.fallback_name == zha_group.name device_1_light_entity = get_entity(device_light_1, platform=Platform.LIGHT) device_2_light_entity = get_entity(device_light_2, platform=Platform.LIGHT) @@ -789,7 +789,7 @@ async def test_zha_group_light_entity( dev1_cluster_level = device_light_1.device.endpoints[1].level # test that the lights were created and are off - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False # Group entities do not support state restoration, # except for off_brightness and off_with_transition @@ -804,9 +804,9 @@ async def test_zha_group_light_entity( effect="colorloop", ) - assert bool(entity.state["on"]) is False - assert bool(entity.state["off_with_transition"]) is False - assert entity.state["off_brightness"] == 12 + assert bool(entity.state.on) is False + assert bool(entity.state.off_with_transition) is False + assert entity.state.off_brightness == 12 # test turning the lights on and off from the client await async_test_on_off_from_client(zha_gateway, group_cluster_on_off, entity) @@ -850,42 +850,42 @@ async def test_zha_group_light_entity( await zha_gateway.async_block_till_done() # test that group light is on - assert device_1_light_entity.state["on"] is True - assert device_2_light_entity.state["on"] is True - assert bool(entity.state["on"]) is True + assert device_1_light_entity.state.on is True + assert device_2_light_entity.state.on is True + assert bool(entity.state.on) is True await send_attributes_report(zha_gateway, dev1_cluster_on_off, {0: 0}) await zha_gateway.async_block_till_done() # test that group light is still on - assert device_1_light_entity.state["on"] is False - assert device_2_light_entity.state["on"] is True - assert bool(entity.state["on"]) is True + assert device_1_light_entity.state.on is False + assert device_2_light_entity.state.on is True + assert bool(entity.state.on) is True await send_attributes_report(zha_gateway, dev2_cluster_on_off, {0: 0}) await zha_gateway.async_block_till_done() # test that group light is now off - assert device_1_light_entity.state["on"] is False - assert device_2_light_entity.state["on"] is False + assert device_1_light_entity.state.on is False + assert device_2_light_entity.state.on is False # group member updates are debounced - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False await send_attributes_report(zha_gateway, dev1_cluster_on_off, {0: 1}) await zha_gateway.async_block_till_done() # test that group light is now back on - assert device_1_light_entity.state["on"] is True - assert device_2_light_entity.state["on"] is False + assert device_1_light_entity.state.on is True + assert device_2_light_entity.state.on is False # group member updates are debounced - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True await group_entity_availability_test( zha_gateway, device_light_1, device_light_2, entity @@ -894,13 +894,13 @@ async def test_zha_group_light_entity( # turn it off to test a new member add being tracked await send_attributes_report(zha_gateway, dev1_cluster_on_off, {0: 0}) await zha_gateway.async_block_till_done() - assert device_1_light_entity.state["on"] is False - assert device_2_light_entity.state["on"] is False + assert device_1_light_entity.state.on is False + assert device_2_light_entity.state.on is False # group member updates are debounced - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False # add a new member and test that his state is also tracked await zha_group.async_add_members( @@ -914,14 +914,14 @@ async def test_zha_group_light_entity( await send_attributes_report(zha_gateway, dev3_cluster_on_off, {0: 1}) await zha_gateway.async_block_till_done() - assert device_1_light_entity.state["on"] is False - assert device_2_light_entity.state["on"] is False - assert device_3_light_entity.state["on"] is True + assert device_1_light_entity.state.on is False + assert device_2_light_entity.state.on is False + assert device_3_light_entity.state.on is True # group member updates are debounced - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True # make the group have only 1 member and now there should be no entity await zha_group.async_remove_members( @@ -950,7 +950,7 @@ async def test_zha_group_light_entity( assert entity is not None await send_attributes_report(zha_gateway, dev3_cluster_on_off, {0: 1}) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True # add a 3rd member and ensure we still have an entity and we track the new member # First we turn the lights currently in the group off @@ -958,10 +958,10 @@ async def test_zha_group_light_entity( await send_attributes_report(zha_gateway, dev3_cluster_on_off, {0: 0}) await zha_gateway.async_block_till_done() # group member updates are debounced - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False # this will test that _reprobe_group is used correctly await zha_group.async_add_members( @@ -977,10 +977,10 @@ async def test_zha_group_light_entity( await send_attributes_report(zha_gateway, dev2_cluster_on_off, {0: 1}) await zha_gateway.async_block_till_done() # group member updates are debounced - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False await asyncio.sleep(0.1) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True await zha_group.async_remove_members( [GroupMemberReference(ieee=coordinator.ieee, endpoint_id=1)] @@ -988,7 +988,7 @@ async def test_zha_group_light_entity( await zha_gateway.async_block_till_done() entity = get_group_entity(zha_group, platform=Platform.LIGHT) assert entity is not None - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True assert len(zha_group.members) == 3 # remove the group and ensure that there is no entity and that the entity registry is cleaned up @@ -1142,9 +1142,9 @@ async def test_transitions( eWeLink_cluster_color = eWeLink_light.device.endpoints[1].light_color # test that the lights were created and are off - assert bool(entity.state["on"]) is False - assert bool(device_1_light_entity.state["on"]) is False - assert bool(device_2_light_entity.state["on"]) is False + assert bool(entity.state.on) is False + assert bool(device_1_light_entity.state.on) is False + assert bool(device_2_light_entity.state.on) is False # first test 0 length transition with no color and no brightness provided dev1_cluster_on_off.request.reset_mock() @@ -1167,8 +1167,8 @@ async def test_transitions( manufacturer=None, ) - assert bool(device_1_light_entity.state["on"]) is True - assert device_1_light_entity.state["brightness"] == 254 + assert bool(device_1_light_entity.state.on) is True + assert device_1_light_entity.state.brightness == 254 # test 0 length transition with no color and no brightness provided again, but for "force on" lights eWeLink_cluster_on_off.request.reset_mock() @@ -1199,8 +1199,8 @@ async def test_transitions( manufacturer=None, ) - assert bool(eWeLink_light_entity.state["on"]) is True - assert eWeLink_light_entity.state["brightness"] == 254 + assert bool(eWeLink_light_entity.state.on) is True + assert eWeLink_light_entity.state.brightness == 254 eWeLink_cluster_on_off.request.reset_mock() eWeLink_cluster_level.request.reset_mock() @@ -1226,8 +1226,8 @@ async def test_transitions( manufacturer=None, ) - assert bool(device_1_light_entity.state["on"]) is True - assert device_1_light_entity.state["brightness"] == 50 + assert bool(device_1_light_entity.state.on) is True + assert device_1_light_entity.state.brightness == 50 dev1_cluster_level.request.reset_mock() @@ -1261,10 +1261,10 @@ async def test_transitions( manufacturer=None, ) - assert bool(device_1_light_entity.state["on"]) is True - assert device_1_light_entity.state["brightness"] == 18 - assert device_1_light_entity.state["color_temp"] == 432 - assert device_1_light_entity.state["color_mode"] == ColorMode.COLOR_TEMP + assert bool(device_1_light_entity.state.on) is True + assert device_1_light_entity.state.brightness == 18 + assert device_1_light_entity.state.color_temp == 432 + assert device_1_light_entity.state.color_mode == ColorMode.COLOR_TEMP dev1_cluster_level.request.reset_mock() dev1_cluster_color.request.reset_mock() @@ -1288,7 +1288,7 @@ async def test_transitions( manufacturer=None, ) - assert bool(device_1_light_entity.state["on"]) is False + assert bool(device_1_light_entity.state.on) is False dev1_cluster_level.request.reset_mock() @@ -1333,10 +1333,10 @@ async def test_transitions( manufacturer=None, ) - assert bool(device_1_light_entity.state["on"]) is True - assert device_1_light_entity.state["brightness"] == 25 - assert device_1_light_entity.state["color_temp"] == 235 - assert device_1_light_entity.state["color_mode"] == ColorMode.COLOR_TEMP + assert bool(device_1_light_entity.state.on) is True + assert device_1_light_entity.state.brightness == 25 + assert device_1_light_entity.state.color_temp == 235 + assert device_1_light_entity.state.color_mode == ColorMode.COLOR_TEMP dev1_cluster_level.request.reset_mock() dev1_cluster_color.request.reset_mock() @@ -1351,7 +1351,7 @@ async def test_transitions( assert dev1_cluster_level.request.call_count == 0 assert dev1_cluster_level.request.await_count == 0 - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False dev1_cluster_on_off.request.reset_mock() dev1_cluster_color.request.reset_mock() @@ -1396,10 +1396,10 @@ async def test_transitions( manufacturer=None, ) - assert bool(device_1_light_entity.state["on"]) is True - assert device_1_light_entity.state["brightness"] == 25 - assert device_1_light_entity.state["color_temp"] == 236 - assert device_1_light_entity.state["color_mode"] == ColorMode.COLOR_TEMP + assert bool(device_1_light_entity.state.on) is True + assert device_1_light_entity.state.brightness == 25 + assert device_1_light_entity.state.color_temp == 236 + assert device_1_light_entity.state.color_mode == ColorMode.COLOR_TEMP dev1_cluster_level.request.reset_mock() dev1_cluster_color.request.reset_mock() @@ -1413,7 +1413,7 @@ async def test_transitions( assert dev1_cluster_color.request.await_count == 0 assert dev1_cluster_level.request.call_count == 0 assert dev1_cluster_level.request.await_count == 0 - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False dev1_cluster_on_off.request.reset_mock() dev1_cluster_color.request.reset_mock() @@ -1447,10 +1447,10 @@ async def test_transitions( manufacturer=None, ) - assert bool(device_1_light_entity.state["on"]) is True - assert device_1_light_entity.state["brightness"] == 25 - assert device_1_light_entity.state["color_temp"] == 236 - assert device_1_light_entity.state["color_mode"] == ColorMode.COLOR_TEMP + assert bool(device_1_light_entity.state.on) is True + assert device_1_light_entity.state.brightness == 25 + assert device_1_light_entity.state.color_temp == 236 + assert device_1_light_entity.state.color_mode == ColorMode.COLOR_TEMP dev1_cluster_on_off.request.reset_mock() dev1_cluster_color.request.reset_mock() @@ -1464,7 +1464,7 @@ async def test_transitions( assert dev1_cluster_color.request.await_count == 0 assert dev1_cluster_level.request.call_count == 0 assert dev1_cluster_level.request.await_count == 0 - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False dev1_cluster_on_off.request.reset_mock() dev1_cluster_color.request.reset_mock() @@ -1493,8 +1493,8 @@ async def test_transitions( manufacturer=None, ) - assert bool(device_2_light_entity.state["on"]) is True - assert device_2_light_entity.state["brightness"] == 100 + assert bool(device_2_light_entity.state.on) is True + assert device_2_light_entity.state.brightness == 100 dev2_cluster_level.request.reset_mock() @@ -1507,7 +1507,7 @@ async def test_transitions( assert dev2_cluster_color.request.await_count == 0 assert dev2_cluster_level.request.call_count == 0 assert dev2_cluster_level.request.await_count == 0 - assert bool(device_2_light_entity.state["on"]) is False + assert bool(device_2_light_entity.state.on) is False dev2_cluster_on_off.request.reset_mock() @@ -1552,10 +1552,10 @@ async def test_transitions( manufacturer=None, ) - assert bool(device_2_light_entity.state["on"]) is True - assert device_2_light_entity.state["brightness"] == 25 - assert device_2_light_entity.state["color_temp"] == 235 - assert device_2_light_entity.state["color_mode"] == ColorMode.COLOR_TEMP + assert bool(device_2_light_entity.state.on) is True + assert device_2_light_entity.state.brightness == 25 + assert device_2_light_entity.state.color_temp == 235 + assert device_2_light_entity.state.color_mode == ColorMode.COLOR_TEMP dev2_cluster_level.request.reset_mock() dev2_cluster_color.request.reset_mock() @@ -1569,7 +1569,7 @@ async def test_transitions( assert dev2_cluster_color.request.await_count == 0 assert dev2_cluster_level.request.call_count == 0 assert dev2_cluster_level.request.await_count == 0 - assert bool(device_2_light_entity.state["on"]) is False + assert bool(device_2_light_entity.state.on) is False dev2_cluster_on_off.request.reset_mock() @@ -1607,10 +1607,10 @@ async def test_transitions( manufacturer=None, ) - assert bool(entity.state["on"]) is True - assert entity.state["brightness"] == 25 - assert entity.state["color_temp"] == 235 - assert entity.state["color_mode"] == ColorMode.COLOR_TEMP + assert bool(entity.state.on) is True + assert entity.state.brightness == 25 + assert entity.state.color_temp == 235 + assert entity.state.color_mode == ColorMode.COLOR_TEMP group_on_off_cluster.request.reset_mock() group_color_cluster.request.reset_mock() @@ -1625,7 +1625,7 @@ async def test_transitions( assert dev2_cluster_color.request.await_count == 0 assert dev2_cluster_level.request.call_count == 0 assert dev2_cluster_level.request.await_count == 0 - assert bool(device_2_light_entity.state["on"]) is True + assert bool(device_2_light_entity.state.on) is True dev2_cluster_on_off.request.reset_mock() @@ -1648,7 +1648,7 @@ async def test_transitions( manufacturer=None, ) - assert bool(device_2_light_entity.state["on"]) is False + assert bool(device_2_light_entity.state.on) is False dev2_cluster_level.request.reset_mock() @@ -1671,7 +1671,7 @@ async def test_transitions( manufacturer=None, ) - assert bool(device_2_light_entity.state["on"]) is True + assert bool(device_2_light_entity.state.on) is True dev2_cluster_level.request.reset_mock() eWeLink_cluster_on_off.request.reset_mock() @@ -1706,9 +1706,9 @@ async def test_transitions( manufacturer=None, ) - assert bool(eWeLink_light_entity.state["on"]) is True - assert eWeLink_light_entity.state["color_temp"] == 235 - assert eWeLink_light_entity.state["color_mode"] == ColorMode.COLOR_TEMP + assert bool(eWeLink_light_entity.state.on) is True + assert eWeLink_light_entity.state.color_temp == 235 + assert eWeLink_light_entity.state.color_mode == ColorMode.COLOR_TEMP assert eWeLink_light_entity.min_mireds == 153 assert eWeLink_light_entity.max_mireds == 500 @@ -1771,9 +1771,9 @@ async def test_on_with_off_color(zha_gateway: Gateway) -> None: manufacturer=None, ) - assert bool(entity.state["on"]) is True - assert entity.state["color_temp"] == 235 - assert entity.state["color_mode"] == ColorMode.COLOR_TEMP + assert bool(entity.state.on) is True + assert entity.state.color_temp == 235 + assert entity.state.color_mode == ColorMode.COLOR_TEMP assert entity.supported_color_modes == {ColorMode.COLOR_TEMP, ColorMode.XY} assert entity._internal_supported_color_modes == { ColorMode.COLOR_TEMP, @@ -1832,10 +1832,10 @@ async def test_on_with_off_color(zha_gateway: Gateway) -> None: manufacturer=None, ) - assert bool(entity.state["on"]) is True - assert entity.state["color_temp"] == 240 - assert entity.state["brightness"] == 254 - assert entity.state["color_mode"] == ColorMode.COLOR_TEMP + assert bool(entity.state.on) is True + assert entity.state.color_temp == 240 + assert entity.state.brightness == 254 + assert entity.state.color_mode == ColorMode.COLOR_TEMP @patch( @@ -1886,7 +1886,7 @@ async def test_group_member_assume_state(zha_gateway: Gateway) -> None: group_cluster_on_off = zha_group.endpoint[general.OnOff.cluster_id] # test that the lights were created and are off - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False group_cluster_on_off.request.reset_mock() await asyncio.sleep(11) @@ -1897,9 +1897,9 @@ async def test_group_member_assume_state(zha_gateway: Gateway) -> None: await asyncio.sleep(1) # wait for assume debounce # members also instantly assume STATE_ON - assert bool(device_1_light_entity.state["on"]) is True - assert bool(device_2_light_entity.state["on"]) is True - assert bool(entity.state["on"]) is True + assert bool(device_1_light_entity.state.on) is True + assert bool(device_2_light_entity.state.on) is True + assert bool(entity.state.on) is True # turn off via UI await entity.async_turn_off() @@ -1907,22 +1907,22 @@ async def test_group_member_assume_state(zha_gateway: Gateway) -> None: await asyncio.sleep(1) # members also instantly assume STATE_OFF - assert bool(device_1_light_entity.state["on"]) is False - assert bool(device_2_light_entity.state["on"]) is False - assert bool(entity.state["on"]) is False + assert bool(device_1_light_entity.state.on) is False + assert bool(device_2_light_entity.state.on) is False + assert bool(entity.state.on) is False # now test members with different state not being overridden # turn on light 1 to brightness 50 await device_1_light_entity.async_turn_on(brightness=50) await zha_gateway.async_block_till_done() - assert bool(device_1_light_entity.state["on"]) is True - assert device_1_light_entity.state["brightness"] == 50 + assert bool(device_1_light_entity.state.on) is True + assert device_1_light_entity.state.brightness == 50 # turn on light 2 to brightness 100 await device_2_light_entity.async_turn_on(brightness=100) await zha_gateway.async_block_till_done() - assert bool(device_2_light_entity.state["on"]) is True - assert device_2_light_entity.state["brightness"] == 100 + assert bool(device_2_light_entity.state.on) is True + assert device_2_light_entity.state.brightness == 100 await asyncio.sleep(1) # wait for assume debounce @@ -1931,11 +1931,11 @@ async def test_group_member_assume_state(zha_gateway: Gateway) -> None: await zha_gateway.async_block_till_done() await asyncio.sleep(1) - assert entity.state["brightness"] == 75 # average + assert entity.state.brightness == 75 # average # but members do not change unchanged state - assert device_1_light_entity.state["brightness"] == 50 - assert device_2_light_entity.state["brightness"] == 100 + assert device_1_light_entity.state.brightness == 50 + assert device_2_light_entity.state.brightness == 100 @patch( @@ -1956,15 +1956,15 @@ async def test_transition_brightness_buffering(zha_gateway: Gateway) -> None: dev1_cluster_level = device_light_1.device.endpoints[1].level entity = get_entity(device_light_1, platform=Platform.LIGHT) - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False # Turn on with a short transition and a target brightness of 200. await entity.async_turn_on(transition=0.1, brightness=200) await zha_gateway.async_block_till_done() # The state is optimistically set to the target brightness immediately. - assert bool(entity.state["on"]) is True - assert entity.state["brightness"] == 200 + assert bool(entity.state.on) is True + assert entity.state.brightness == 200 assert entity.is_transitioning # Simulate intermediate brightness reports during the transition (light slowly ramping up). @@ -1975,7 +1975,7 @@ async def test_transition_brightness_buffering(zha_gateway: Gateway) -> None: {general.LevelControl.AttributeDefs.current_level.id: 50}, ) await zha_gateway.async_block_till_done() - assert entity.state["brightness"] == 200 # still the optimistic value + assert entity.state.brightness == 200 # still the optimistic value # The light only goes to brightness 120 (for some reason), not the requested 200. await send_attributes_report( @@ -1984,7 +1984,7 @@ async def test_transition_brightness_buffering(zha_gateway: Gateway) -> None: {general.LevelControl.AttributeDefs.current_level.id: 120}, ) await zha_gateway.async_block_till_done() - assert entity.state["brightness"] == 200 # still buffered, not yet applied + assert entity.state.brightness == 200 # still buffered, not yet applied # Wait for the transition timer to fire (0.1 + 0.5s delay = 0.6s). await asyncio.sleep(0.8) @@ -1992,14 +1992,14 @@ async def test_transition_brightness_buffering(zha_gateway: Gateway) -> None: # After the transition, the last buffered report (120) is applied instead of the target (200). assert not entity.is_transitioning - assert entity.state["brightness"] == 120 + assert entity.state.brightness == 120 # Now verify that if no brightness reports arrive during a transition, the # optimistically set target brightness is preserved unchanged. await entity.async_turn_on(transition=0.1, brightness=150) await zha_gateway.async_block_till_done() - assert entity.state["brightness"] == 150 + assert entity.state.brightness == 150 assert entity.is_transitioning # No level reports during this transition. @@ -2007,7 +2007,7 @@ async def test_transition_brightness_buffering(zha_gateway: Gateway) -> None: await zha_gateway.async_block_till_done() assert not entity.is_transitioning - assert entity.state["brightness"] == 150 # target preserved + assert entity.state.brightness == 150 # target preserved @patch( @@ -2033,12 +2033,12 @@ async def test_turn_on_during_off_transition(zha_gateway: Gateway) -> None: # Start with the light on. await entity.async_turn_on(brightness=200) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True # Turn it off with a transition (timer runs for 1 + 0.5s = 1.5s). await entity.async_turn_off(transition=1) await zha_gateway.async_block_till_done() - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False assert entity.is_transitioning # Before the off-transition timer fires, turn the light back on. @@ -2046,8 +2046,8 @@ async def test_turn_on_during_off_transition(zha_gateway: Gateway) -> None: await entity.async_turn_on(brightness=150) await zha_gateway.async_block_till_done() # Optimistically, HA now thinks it's on. - assert bool(entity.state["on"]) is True - assert entity.state["brightness"] == 150 + assert bool(entity.state.on) is True + assert entity.state.brightness == 150 assert entity.is_transitioning # The device correctly reports it is still off (it refused the on command). @@ -2060,13 +2060,13 @@ async def test_turn_on_during_off_transition(zha_gateway: Gateway) -> None: await zha_gateway.async_block_till_done() # During the transition window the state is still optimistically on. - assert bool(entity.state["on"]) is True + assert bool(entity.state.on) is True # Once the transition timer fires, the buffered off report is applied. await asyncio.sleep(0.8) await zha_gateway.async_block_till_done() assert not entity.is_transitioning - assert bool(entity.state["on"]) is False + assert bool(entity.state.on) is False async def test_light_state_restoration(zha_gateway: Gateway) -> None: @@ -2084,12 +2084,12 @@ async def test_light_state_restoration(zha_gateway: Gateway) -> None: effect="colorloop", ) - assert entity.state["on"] is True - assert entity.state["brightness"] == 34 - assert entity.state["color_temp"] == 500 - assert entity.state["xy_color"] == (1, 2) - assert entity.state["color_mode"] == ColorMode.XY - assert entity.state["effect"] == "colorloop" + assert entity.state.on is True + assert entity.state.brightness == 34 + assert entity.state.color_temp == 500 + assert entity.state.xy_color == (1, 2) + assert entity.state.color_mode == ColorMode.XY + assert entity.state.effect == "colorloop" entity.restore_external_state_attributes( state=None, @@ -2102,12 +2102,12 @@ async def test_light_state_restoration(zha_gateway: Gateway) -> None: effect=None, ) - assert entity.state["on"] is True - assert entity.state["brightness"] == 34 - assert entity.state["color_temp"] == 500 - assert entity.state["xy_color"] == (1, 2) - assert entity.state["color_mode"] == ColorMode.XY - assert entity.state["effect"] == "colorloop" + assert entity.state.on is True + assert entity.state.brightness == 34 + assert entity.state.color_temp == 500 + assert entity.state.xy_color == (1, 2) + assert entity.state.color_mode == ColorMode.XY + assert entity.state.effect == "colorloop" async def test_light_state_restoration_unsupported_color_mode( @@ -2127,7 +2127,7 @@ async def test_light_state_restoration_unsupported_color_mode( entity = get_entity(zha_device, platform=Platform.LIGHT) assert entity.supported_color_modes == {ColorMode.COLOR_TEMP} - assert entity.state["color_mode"] == ColorMode.COLOR_TEMP + assert entity.state.color_mode == ColorMode.COLOR_TEMP # Attempt to restore XY color_mode on a color_temp-only light entity.restore_external_state_attributes( @@ -2142,8 +2142,8 @@ async def test_light_state_restoration_unsupported_color_mode( ) # color_mode should remain COLOR_TEMP since XY is not supported - assert entity.state["color_mode"] == ColorMode.COLOR_TEMP - assert entity.state["color_temp"] == 300 + assert entity.state.color_mode == ColorMode.COLOR_TEMP + assert entity.state.color_temp == 300 async def test_color_temp_only_light_ignores_incorrect_color_mode( @@ -2163,8 +2163,8 @@ async def test_color_temp_only_light_ignores_incorrect_color_mode( entity = get_entity(zha_device, platform=Platform.LIGHT) assert entity.supported_color_modes == {ColorMode.COLOR_TEMP} - assert entity.state["color_mode"] == ColorMode.COLOR_TEMP - assert entity.state["color_temp"] == 250 + assert entity.state.color_mode == ColorMode.COLOR_TEMP + assert entity.state.color_temp == 250 # Simulate the device incorrectly reporting XY color mode during a poll color_cluster.PLUGGED_ATTR_READS = { @@ -2180,9 +2180,9 @@ async def test_color_temp_only_light_ignores_incorrect_color_mode( await entity.async_update() # color_mode should remain COLOR_TEMP and color_temp should be updated - assert entity.state["color_mode"] == ColorMode.COLOR_TEMP - assert entity.state["color_temp"] == 300 - assert entity.state["xy_color"] is None + assert entity.state.color_mode == ColorMode.COLOR_TEMP + assert entity.state.color_temp == 300 + assert entity.state.xy_color is None # Same test with Hue_and_saturation mode color_cluster.PLUGGED_ATTR_READS = { @@ -2196,9 +2196,9 @@ async def test_color_temp_only_light_ignores_incorrect_color_mode( await entity.async_update() - assert entity.state["color_mode"] == ColorMode.COLOR_TEMP - assert entity.state["color_temp"] == 400 - assert entity.state["xy_color"] is None + assert entity.state.color_mode == ColorMode.COLOR_TEMP + assert entity.state.color_temp == 400 + assert entity.state.xy_color is None async def test_poll_updates_color_mode_on_dual_mode_light( @@ -2225,9 +2225,9 @@ async def test_poll_updates_color_mode_on_dual_mode_light( update_attribute_cache(color_cluster) await entity.async_update() - assert entity.state["color_mode"] == ColorMode.COLOR_TEMP - assert entity.state["color_temp"] == 350 - assert entity.state["xy_color"] is None + assert entity.state.color_mode == ColorMode.COLOR_TEMP + assert entity.state.color_temp == 350 + assert entity.state.xy_color is None # Poll with XY mode color_cluster.PLUGGED_ATTR_READS = { @@ -2243,9 +2243,9 @@ async def test_poll_updates_color_mode_on_dual_mode_light( update_attribute_cache(color_cluster) await entity.async_update() - assert entity.state["color_mode"] == ColorMode.XY - assert entity.state["xy_color"] == (30000 / 65535, 25000 / 65535) - assert entity.state["color_temp"] is None + assert entity.state.color_mode == ColorMode.XY + assert entity.state.xy_color == (30000 / 65535, 25000 / 65535) + assert entity.state.color_temp is None async def test_turn_on_cancellation_cleans_up_transition_flag( diff --git a/tests/test_lock.py b/tests/test_lock.py index 570e77863..a4e29f341 100644 --- a/tests/test_lock.py +++ b/tests/test_lock.py @@ -47,15 +47,15 @@ async def test_lock(zha_gateway: Gateway) -> None: cluster = zigpy_device.endpoints[1].door_lock entity = get_entity(zha_device, platform=Platform.LOCK) - assert entity.state["is_locked"] is False + assert entity.state.is_locked is False # set state to locked await send_attributes_report(zha_gateway, cluster, {1: 0, 0: 1, 2: 2}) - assert entity.state["is_locked"] is True + assert entity.state.is_locked is True # set state to unlocked await send_attributes_report(zha_gateway, cluster, {1: 0, 0: 2, 2: 3}) - assert entity.state["is_locked"] is False + assert entity.state.is_locked is False # lock from HA await async_lock(zha_gateway, cluster, entity) @@ -77,13 +77,13 @@ async def test_lock(zha_gateway: Gateway) -> None: # test updating entity state from client cluster.read_attributes.reset_mock() - assert entity.state["is_locked"] is False + assert entity.state.is_locked is False cluster.PLUGGED_ATTR_READS = {"lock_state": 1} update_attribute_cache(cluster) await entity.async_update() await zha_gateway.async_block_till_done() assert cluster.read_attributes.call_count == 1 - assert entity.state["is_locked"] is True + assert entity.state.is_locked is True async def async_lock( @@ -95,7 +95,7 @@ async def async_lock( with patch("zigpy.zcl.Cluster.request", return_value=[zcl_f.Status.SUCCESS]): await entity.async_lock() await zha_gateway.async_block_till_done() - assert entity.state["is_locked"] is True + assert entity.state.is_locked is True assert cluster.request.call_count == 1 assert cluster.request.call_args[0][0] is False assert cluster.request.call_args[0][1] == LOCK_DOOR @@ -105,7 +105,7 @@ async def async_lock( with patch("zigpy.zcl.Cluster.request", return_value=[zcl_f.Status.FAILURE]): await entity.async_unlock() await zha_gateway.async_block_till_done() - assert entity.state["is_locked"] is True + assert entity.state.is_locked is True assert cluster.request.call_count == 1 assert cluster.request.call_args[0][0] is False assert cluster.request.call_args[0][1] == UNLOCK_DOOR @@ -121,7 +121,7 @@ async def async_unlock( with patch("zigpy.zcl.Cluster.request", return_value=[zcl_f.Status.SUCCESS]): await entity.async_unlock() await zha_gateway.async_block_till_done() - assert entity.state["is_locked"] is False + assert entity.state.is_locked is False assert cluster.request.call_count == 1 assert cluster.request.call_args[0][0] is False assert cluster.request.call_args[0][1] == UNLOCK_DOOR @@ -131,7 +131,7 @@ async def async_unlock( with patch("zigpy.zcl.Cluster.request", return_value=[zcl_f.Status.FAILURE]): await entity.async_lock() await zha_gateway.async_block_till_done() - assert entity.state["is_locked"] is False + assert entity.state.is_locked is False assert cluster.request.call_count == 1 assert cluster.request.call_args[0][0] is False assert cluster.request.call_args[0][1] == LOCK_DOOR @@ -212,10 +212,10 @@ async def test_lock_state_restoration(zha_gateway: Gateway) -> None: entity = get_entity(zha_device, platform=Platform.LOCK) - assert entity.state["is_locked"] is False + assert entity.state.is_locked is False entity.restore_external_state_attributes(state=STATE_LOCKED) - assert entity.state["is_locked"] is True + assert entity.state.is_locked is True entity.restore_external_state_attributes(state=STATE_UNLOCKED) - assert entity.state["is_locked"] is False + assert entity.state.is_locked is False diff --git a/tests/test_number.py b/tests/test_number.py index e49478d27..5c9f9b058 100644 --- a/tests/test_number.py +++ b/tests/test_number.py @@ -123,13 +123,13 @@ async def test_number( assert entity.fallback_name == "PWM1" # test that the state is 15.0 - assert entity.state["state"] == 15.0 + assert entity.state.state == 15.0 # test attributes - assert entity.info_object.native_min_value == 1.0 - assert entity.info_object.native_max_value == 100.0 - assert entity.info_object.native_step == 1.1 - assert entity.info_object.mode == NumberMode.AUTO + assert entity.state.native_min_value == 1.0 + assert entity.state.native_max_value == 100.0 + assert entity.state.native_step == 1.1 + assert entity.state.mode == NumberMode.AUTO assert entity.icon == "mdi:percent" assert entity.native_unit_of_measurement == "%" @@ -141,12 +141,12 @@ async def test_number( assert cluster.read_attributes.call_count == 2 await send_attributes_report(zha_gateway, cluster, {0x0055: 15}) await zha_gateway.async_block_till_done() - assert entity.state["state"] == 15.0 + assert entity.state.state == 15.0 # update value from device await send_attributes_report(zha_gateway, cluster, {0x0055: 20}) await zha_gateway.async_block_till_done() - assert entity.state["state"] == 20.0 + assert entity.state.state == 20.0 # change value from client await entity.async_set_native_value(30.0) @@ -156,11 +156,11 @@ async def test_number( assert cluster.write_attributes.call_args == call( {"present_value": 30.0}, manufacturer=UNDEFINED ) - assert entity.state["state"] == 30.0 + assert entity.state.state == 30.0 # test updating entity state from client cluster.read_attributes.reset_mock() - assert entity.state["state"] == 30.0 + assert entity.state.state == 30.0 cluster.PLUGGED_ATTR_READS = {"present_value": 20} await entity.async_update() await zha_gateway.async_block_till_done() @@ -168,7 +168,7 @@ async def test_number( assert cluster.read_attributes.await_args == call( ["present_value"], allow_cache=False, only_cache=False, manufacturer=UNDEFINED ) - assert entity.state["state"] == 20.0 + assert entity.state.state == 20.0 await entity.async_set_native_value(30) await zha_gateway.async_block_till_done() @@ -176,7 +176,7 @@ async def test_number( assert cluster.write_attributes.call_args == call( {"present_value": 30}, manufacturer=UNDEFINED ) - assert entity.state["state"] == 30.0 + assert entity.state.state == 30.0 async def test_number_missing_description_attr( @@ -258,7 +258,7 @@ async def test_level_control_number( ), ] - assert entity.state["state"] == initial_value + assert entity.state.state == initial_value assert entity._attr_entity_category == EntityCategory.CONFIG assert entity.icon is None @@ -274,12 +274,12 @@ async def test_level_control_number( call({attr: new_value}, manufacturer=UNDEFINED) ] - assert entity.state["state"] == new_value + assert entity.state.state == new_value level_control_cluster.read_attributes.reset_mock() await entity.async_update() # the mocking doesn't update the attr cache so this flips back to initial value - assert entity.state["state"] == initial_value + assert entity.state.state == initial_value assert level_control_cluster.read_attributes.mock_calls == [ call( [attr], @@ -298,11 +298,11 @@ async def test_level_control_number( assert level_control_cluster.write_attributes.mock_calls == [ call({attr: new_value}, manufacturer=UNDEFINED), ] - assert entity.state["state"] == initial_value + assert entity.state.state == initial_value # test updating entity state from client level_control_cluster.read_attributes.reset_mock() - assert entity.state["state"] == initial_value + assert entity.state.state == initial_value level_control_cluster.PLUGGED_ATTR_READS = {attr: new_value} await entity.async_update() await zha_gateway.async_block_till_done() @@ -317,7 +317,7 @@ async def test_level_control_number( manufacturer=UNDEFINED, ), ] - assert entity.state["state"] == new_value + assert entity.state.state == new_value # update value from device await send_attributes_report( @@ -326,7 +326,7 @@ async def test_level_control_number( {level_control_cluster.attributes_by_name[attr].id: initial_value}, ) await zha_gateway.async_block_till_done() - assert entity.state["state"] == initial_value + assert entity.state.state == initial_value @pytest.mark.parametrize( @@ -366,7 +366,7 @@ async def test_color_number( in color_cluster.read_attributes.call_args_list ) - assert entity.state["state"] == initial_value + assert entity.state.state == initial_value assert entity._attr_entity_category == EntityCategory.CONFIG await entity.async_set_native_value(new_value) @@ -375,12 +375,12 @@ async def test_color_number( attr: new_value, } - assert entity.state["state"] == new_value + assert entity.state.state == new_value color_cluster.read_attributes.reset_mock() await entity.async_update() # the mocking doesn't update the attr cache so this flips back to initial value - assert entity.state["state"] == initial_value + assert entity.state.state == initial_value assert color_cluster.read_attributes.call_count == 1 assert ( call( @@ -401,11 +401,11 @@ async def test_color_number( assert color_cluster.write_attributes.mock_calls == [ call({attr: new_value}, manufacturer=UNDEFINED), ] - assert entity.state["state"] == initial_value + assert entity.state.state == initial_value # test updating entity state from client color_cluster.read_attributes.reset_mock() - assert entity.state["state"] == initial_value + assert entity.state.state == initial_value color_cluster.PLUGGED_ATTR_READS = {attr: new_value} await entity.async_update() await zha_gateway.async_block_till_done() @@ -420,7 +420,7 @@ async def test_color_number( manufacturer=UNDEFINED, ), ] - assert entity.state["state"] == new_value + assert entity.state.state == new_value # update value from device await send_attributes_report( @@ -429,4 +429,4 @@ async def test_color_number( {color_cluster.attributes_by_name[attr].id: initial_value}, ) await zha_gateway.async_block_till_done() - assert entity.state["state"] == initial_value + assert entity.state.state == initial_value diff --git a/tests/test_select.py b/tests/test_select.py index 9e732f244..7f9cbdcfa 100644 --- a/tests/test_select.py +++ b/tests/test_select.py @@ -61,8 +61,8 @@ async def test_select(zha_gateway: Gateway) -> None: select_name = security.IasWd.Warning.WarningMode.__name__ entity = get_entity(zha_device, platform=Platform.SELECT, qualifier=select_name) - assert entity.state["state"] is None # unknown in HA - assert entity.info_object.options == [ + assert entity.state.state is None # unknown in HA + assert entity.state.options == [ "Stop", "Burglar", "Fire", @@ -76,7 +76,7 @@ async def test_select(zha_gateway: Gateway) -> None: # change value from client await entity.async_select_option(security.IasWd.Warning.WarningMode.Burglar.name) await zha_gateway.async_block_till_done() - assert entity.state["state"] == security.IasWd.Warning.WarningMode.Burglar.name + assert entity.state.state == security.IasWd.Warning.WarningMode.Burglar.name class MotionSensitivityQuirk(CustomDevice): @@ -137,13 +137,13 @@ async def test_on_off_select_attribute_report(zha_gateway: Gateway) -> None: cluster = aqara_sensor.device.endpoints.get(1).opple_cluster entity = get_entity(aqara_sensor, platform=Platform.SELECT) - assert entity.state["state"] == AqaraMotionSensitivities.Medium.name + assert entity.state.state == AqaraMotionSensitivities.Medium.name # send attribute report from device await send_attributes_report( zha_gateway, cluster, {"motion_sensitivity": AqaraMotionSensitivities.Low} ) - assert entity.state["state"] == AqaraMotionSensitivities.Low.name + assert entity.state.state == AqaraMotionSensitivities.Low.name ( @@ -206,17 +206,17 @@ async def test_on_off_select_attribute_report_v2( entity = get_entity( zha_device, platform=Platform.SELECT, - qualifier_func=lambda e: e.info_object.unique_id.endswith("motion_sensitivity"), + qualifier_func=lambda e: e.state.unique_id.endswith("motion_sensitivity"), ) # test that the state is in default medium state - assert entity.state["state"] == AqaraMotionSensitivities.Medium.name + assert entity.state.state == AqaraMotionSensitivities.Medium.name # send attribute report from device await send_attributes_report( zha_gateway, cluster, {"motion_sensitivity": AqaraMotionSensitivities.Low} ) - assert entity.state["state"] == AqaraMotionSensitivities.Low.name + assert entity.state.state == AqaraMotionSensitivities.Low.name assert entity._attr_entity_category == EntityCategory.CONFIG assert entity._attr_entity_registry_enabled_default is True @@ -242,7 +242,7 @@ async def test_on_off_select_attribute_report_v2( await entity.async_select_option(AqaraMotionSensitivities.Medium.name) await zha_gateway.async_block_till_done() - assert entity.state["state"] == AqaraMotionSensitivities.Medium.name + assert entity.state.state == AqaraMotionSensitivities.Medium.name assert cluster.write_attributes.call_count == 1 assert cluster.write_attributes.call_args == call( {"motion_sensitivity": AqaraMotionSensitivities.Medium}, @@ -268,17 +268,17 @@ async def test_non_zcl_select_state_restoration(zha_gateway: Gateway) -> None: entity = get_entity(zha_device, platform=Platform.SELECT, qualifier="WarningMode") - assert entity.state["state"] is None + assert entity.state.state is None entity.restore_external_state_attributes( state=security.IasWd.Warning.WarningMode.Burglar.name ) - assert entity.state["state"] == security.IasWd.Warning.WarningMode.Burglar.name + assert entity.state.state == security.IasWd.Warning.WarningMode.Burglar.name entity.restore_external_state_attributes( state=security.IasWd.Warning.WarningMode.Fire.name ) - assert entity.state["state"] == security.IasWd.Warning.WarningMode.Fire.name + assert entity.state.state == security.IasWd.Warning.WarningMode.Fire.name async def test_bega_color_temperature_channel_select(zha_gateway: Gateway) -> None: @@ -296,8 +296,8 @@ async def test_bega_color_temperature_channel_select(zha_gateway: Gateway) -> No platform=Platform.SELECT, qualifier="switchable_white", ) - assert entity.state["state"] == "Warm white" - assert entity.info_object.options == ["Warm white", "Cool white"] + assert entity.state.state == "Warm white" + assert entity.state.options == ["Warm white", "Cool white"] # send attribute report from device await send_attributes_report( @@ -305,7 +305,7 @@ async def test_bega_color_temperature_channel_select(zha_gateway: Gateway) -> No cluster, {"switchable_white": BegaColorTemperatureChannel.Cool_white}, ) - assert entity.state["state"] == "Cool white" + assert entity.state.state == "Cool white" # test selecting an option Write_Attributes_rsp = foundation.GENERAL_COMMANDS[ @@ -327,7 +327,7 @@ async def test_bega_color_temperature_channel_select(zha_gateway: Gateway) -> No ): await entity.async_select_option("Warm white") await zha_gateway.async_block_till_done() - assert entity.state["state"] == "Warm white" + assert entity.state.state == "Warm white" assert cluster.write_attributes.call_count == 1 assert cluster.write_attributes.call_args == call( {"switchable_white": BegaColorTemperatureChannel.Warm_white}, diff --git a/tests/test_sensor.py b/tests/test_sensor.py index 1759f2edd..148c3e59a 100644 --- a/tests/test_sensor.py +++ b/tests/test_sensor.py @@ -157,7 +157,7 @@ async def async_test_temperature( zha_gateway: Gateway, cluster: Cluster, entity: PlatformEntity ) -> None: """Test temperature sensor.""" - assert entity.extra_state_attribute_names is None + assert entity.state.extra_state_attribute_names == frozenset() await send_attributes_report(zha_gateway, cluster, {1: 1, 0: 2900, 2: 100}) assert_state(entity, 29.0, "°C") @@ -188,7 +188,7 @@ async def async_test_metering( zha_gateway: Gateway, cluster: Cluster, entity: PlatformEntity ) -> None: """Test Smart Energy metering sensor.""" - assert entity.extra_state_attribute_names == { + assert entity.state.extra_state_attribute_names == { "status", "device_type", "zcl_unit_of_measurement", @@ -197,12 +197,12 @@ async def async_test_metering( zha_gateway, cluster, {1025: 1, 1024: 12345, 1026: 100} ) assert_state(entity, 12345.0, None) - assert entity.state["status"] == "NO_ALARMS" - assert entity.state["device_type"] == "Electric Metering" + assert entity.state.status == "NO_ALARMS" + assert entity.state.device_type == "Electric Metering" await send_attributes_report(zha_gateway, cluster, {1024: 12346, "status": 64 + 8}) assert_state(entity, 12346.0, None) - assert entity.state["status"] in ( + assert entity.state.status in ( "SERVICE_DISCONNECT|POWER_FAILURE", "POWER_FAILURE|SERVICE_DISCONNECT", ) @@ -210,7 +210,7 @@ async def async_test_metering( await send_attributes_report( zha_gateway, cluster, {"status": 64 + 8, "metering_device_type": 1} ) - assert entity.state["status"] in ( + assert entity.state.status in ( "SERVICE_DISCONNECT|NOT_DEFINED", "NOT_DEFINED|SERVICE_DISCONNECT", ) @@ -218,7 +218,7 @@ async def async_test_metering( await send_attributes_report( zha_gateway, cluster, {"status": 64 + 8, "metering_device_type": 2} ) - assert entity.state["status"] in ( + assert entity.state.status in ( "SERVICE_DISCONNECT|PIPE_EMPTY", "PIPE_EMPTY|SERVICE_DISCONNECT", ) @@ -226,7 +226,7 @@ async def async_test_metering( await send_attributes_report( zha_gateway, cluster, {"status": 64 + 8, "metering_device_type": 5} ) - assert entity.state["status"] in ( + assert entity.state.status in ( "SERVICE_DISCONNECT|TEMPERATURE_SENSOR", "TEMPERATURE_SENSOR|SERVICE_DISCONNECT", ) @@ -235,14 +235,14 @@ async def async_test_metering( await send_attributes_report( zha_gateway, cluster, {"status": 32, "metering_device_type": 4} ) - assert entity.state["status"] in ("", "32") + assert entity.state.status in ("", "32") async def async_test_smart_energy_summation_delivered( zha_gateway: Gateway, cluster, entity ): """Test SmartEnergy Summation delivered sensor.""" - assert entity.extra_state_attribute_names == { + assert entity.state.extra_state_attribute_names == { "status", "device_type", "zcl_unit_of_measurement", @@ -251,9 +251,9 @@ async def async_test_smart_energy_summation_delivered( zha_gateway, cluster, {1025: 1, "current_summ_delivered": 12321, 1026: 100} ) assert_state(entity, 12.321, UnitOfEnergy.KILO_WATT_HOUR) - assert entity.state["status"] == "NO_ALARMS" - assert entity.state["device_type"] == "Electric Metering" - assert entity.info_object.device_class == SensorDeviceClass.ENERGY + assert entity.state.status == "NO_ALARMS" + assert entity.state.device_type == "Electric Metering" + assert entity.state.device_class == SensorDeviceClass.ENERGY async def async_test_smart_energy_summation_received( @@ -265,9 +265,9 @@ async def async_test_smart_energy_summation_received( zha_gateway, cluster, {1025: 1, "current_summ_received": 12321, 1026: 100} ) assert_state(entity, 12.321, UnitOfEnergy.KILO_WATT_HOUR) - assert entity.state["status"] == "NO_ALARMS" - assert entity.state["device_type"] == "Electric Metering" - assert entity.info_object.device_class == SensorDeviceClass.ENERGY + assert entity.state.status == "NO_ALARMS" + assert entity.state.device_type == "Electric Metering" + assert entity.state.device_class == SensorDeviceClass.ENERGY async def async_test_smart_energy_summation( @@ -279,8 +279,8 @@ async def async_test_smart_energy_summation( zha_gateway, cluster, {1025: 1, "current_summ_delivered": 12321, 1026: 100} ) assert_state(entity, 12.32, "m³") - assert entity.state["status"] == "NO_ALARMS" - assert entity.state["device_type"] == "Electric Metering" + assert entity.state.status == "NO_ALARMS" + assert entity.state.device_type == "Electric Metering" async def async_test_electrical_measurement( @@ -311,7 +311,7 @@ async def async_test_electrical_measurement( assert_state(entity, 9.9, "W") await send_attributes_report(zha_gateway, cluster, {0: 1, 0x050D: 88}) - assert entity.state["active_power_max"] == 8.8 + assert entity.state.max_value == 8.8 async def async_test_em_apparent_power( @@ -338,7 +338,7 @@ async def async_test_em_power_factor( zha_gateway: Gateway, cluster: Cluster, entity: PlatformEntity ): """Test electrical measurement Power Factor sensor.""" - assert entity.extra_state_attribute_names == {"measurement_type"} + assert entity.state.extra_state_attribute_names == {"measurement_type"} # update divisor cached value await send_attributes_report(zha_gateway, cluster, {"ac_power_divisor": 1}) @@ -377,14 +377,17 @@ async def async_test_em_rms_current( assert_state(entity, 123.6, "A") await send_attributes_report(zha_gateway, cluster, {0: 1, current_max_attrid: 88}) - assert entity.state[current_max_attr_name] == 8.8 + assert entity.state.max_value == 8.8 async def async_test_em_rms_voltage( zha_gateway: Gateway, cluster: Cluster, entity: PlatformEntity ) -> None: """Test electrical measurement RMS Voltage sensor.""" - assert entity.extra_state_attribute_names == {"measurement_type", "rms_voltage_max"} + assert entity.state.extra_state_attribute_names == { + "measurement_type", + "rms_voltage_max", + } await send_attributes_report(zha_gateway, cluster, {0: 1, 0x0505: 1234}) assert_state(entity, 123.4, "V") @@ -397,25 +400,25 @@ async def async_test_em_rms_voltage( assert_state(entity, 22.36, "V") await send_attributes_report(zha_gateway, cluster, {0: 1, 0x0507: 888}) - assert entity.state["rms_voltage_max"] == 8.88 + assert entity.state.max_value == 8.88 async def async_test_powerconfiguration( zha_gateway: Gateway, cluster: Cluster, entity: PlatformEntity ) -> None: """Test powerconfiguration/battery sensor.""" - assert entity.extra_state_attribute_names == { + assert entity.state.extra_state_attribute_names == { "battery_voltage", "battery_quantity", "battery_size", } await send_attributes_report(zha_gateway, cluster, {33: 98}) assert_state(entity, 49, "%") - assert entity.state["battery_voltage"] == 2.9 - assert entity.state["battery_quantity"] == 3 - assert entity.state["battery_size"] == "AAA" + assert entity.state.battery_voltage == 2.9 + assert entity.state.battery_quantity == 3 + assert entity.state.battery_size == "AAA" await send_attributes_report(zha_gateway, cluster, {32: 20}) - assert entity.state["battery_voltage"] == 2.0 + assert entity.state.battery_voltage == 2.0 async def async_test_powerconfiguration2( @@ -446,7 +449,7 @@ async def async_test_setpoint_change_source( cluster, {hvac.Thermostat.AttributeDefs.setpoint_change_source.id: 0x01}, ) - assert entity.state["state"] == "Schedule" + assert entity.state.state == "Schedule" async def async_test_pi_heating_demand( @@ -468,14 +471,14 @@ async def async_test_change_source_timestamp( cluster, {hvac.Thermostat.AttributeDefs.setpoint_change_source_timestamp.id: 781355715}, ) - assert entity.state["state"] == datetime(2024, 10, 4, 11, 15, 15, tzinfo=UTC) + assert entity.state.state == datetime(2024, 10, 4, 11, 15, 15, tzinfo=UTC) async def async_test_em_dc_voltage( zha_gateway: Gateway, cluster: Cluster, entity: PlatformEntity ) -> None: """Test electrical measurement DC Voltage sensor.""" - assert entity.extra_state_attribute_names == {"measurement_type"} + assert entity.state.extra_state_attribute_names == {"measurement_type"} await send_attributes_report(zha_gateway, cluster, {0: 1, 0x0100: 1234}) assert_state(entity, 123.4, "V") @@ -799,13 +802,13 @@ async def test_analog_input_simple(zha_gateway: Gateway) -> None: zha_dev, platform=Platform.SENSOR, exact_entity_type=AnalogInputSensor ) - assert entity.state["available"] is True - assert entity.state["state"] == 2.1322579383850098 - assert entity.info_object.fallback_name == "Some description" - assert entity.info_object.translation_key is None - assert entity.info_object.unit == UnitOfElectricPotential.VOLT - assert entity.info_object.device_class is None - assert entity.info_object.suggested_display_precision is None + assert entity.state.available is True + assert entity.state.state == 2.1322579383850098 + assert entity.state.fallback_name == "Some description" + assert entity.state.translation_key is None + assert entity.state.unit == UnitOfElectricPotential.VOLT + assert entity.state.device_class is None + assert entity.state.suggested_display_precision is None async def test_analog_input_ignored(zha_gateway: Gateway) -> None: @@ -874,13 +877,13 @@ async def test_analog_input_complex(zha_gateway: Gateway) -> None: zha_dev, platform=Platform.SENSOR, exact_entity_type=AnalogInputSensor ) - assert entity.state["available"] is True - assert entity.state["state"] == 2.1322579383850098 - assert entity.info_object.fallback_name == "Some description" - assert entity.info_object.translation_key is None - assert entity.info_object.unit is PERCENTAGE # overridden! - assert entity.info_object.device_class is SensorDeviceClass.HUMIDITY # overridden! - assert entity.info_object.suggested_display_precision == 2 + assert entity.state.available is True + assert entity.state.state == 2.1322579383850098 + assert entity.state.fallback_name == "Some description" + assert entity.state.translation_key is None + assert entity.state.unit is PERCENTAGE # overridden! + assert entity.state.device_class is SensorDeviceClass.HUMIDITY # overridden! + assert entity.state.suggested_display_precision == 2 def assert_state(entity: PlatformEntity, state: Any, unit_of_measurement: str) -> None: @@ -889,8 +892,8 @@ def assert_state(entity: PlatformEntity, state: Any, unit_of_measurement: str) - This is used to ensure that the logic in each sensor class handled the attribute report it received correctly. """ - assert entity.state["state"] == state - assert entity.info_object.unit == unit_of_measurement + assert entity.state.state == state + assert entity.state.unit == unit_of_measurement async def test_electrical_measurement_init(zha_gateway: Gateway) -> None: @@ -923,21 +926,21 @@ async def test_electrical_measurement_init(zha_gateway: Gateway) -> None: cluster, {EMAttrs.active_power.id: 100}, ) - assert entity.state["state"] == 100 + assert entity.state.state == 100 await send_attributes_report( zha_gateway, cluster, {EMAttrs.active_power.id: 30, EMAttrs.ac_power_divisor.id: 10}, ) - assert entity.state["state"] == 3.0 + assert entity.state.state == 3.0 await send_attributes_report( zha_gateway, cluster, {EMAttrs.active_power.id: 30, EMAttrs.ac_power_multiplier.id: 20}, ) - assert entity.state["state"] == 60.0 + assert entity.state.state == 60.0 @pytest.mark.parametrize( @@ -1240,7 +1243,7 @@ async def test_elec_measurement_sensor_type( platform=Platform.SENSOR, entity_type=sensor.ElectricalMeasurementApparentPower, ) - assert entity.state["measurement_type"] == expected_type + assert entity.state.measurement_type == expected_type async def test_elec_measurement_sensor_polling(zha_gateway: Gateway) -> None: @@ -1259,7 +1262,7 @@ async def test_elec_measurement_sensor_polling(zha_gateway: Gateway) -> None: platform=Platform.SENSOR, exact_entity_type=sensor.ElectricalMeasurementActivePower, ) - assert entity.state["state"] == 2.0 + assert entity.state.state == 2.0 # update the value for the power reading zigpy_dev.endpoints[1].electrical_measurement.PLUGGED_ATTR_READS["active_power"] = ( @@ -1267,14 +1270,14 @@ async def test_elec_measurement_sensor_polling(zha_gateway: Gateway) -> None: ) # ensure the state is still 2.0 - assert entity.state["state"] == 2.0 + assert entity.state.state == 2.0 # let the polling happen await asyncio.sleep(90) await zha_gateway.async_block_till_done(wait_background_tasks=True) # ensure the state has been updated to 6.0 - assert entity.state["state"] == 6.0 + assert entity.state.state == 6.0 async def test_metering_sensor_polling(zha_gateway: Gateway) -> None: @@ -1293,7 +1296,7 @@ async def test_metering_sensor_polling(zha_gateway: Gateway) -> None: platform=Platform.SENSOR, exact_entity_type=sensor.SmartEnergySummation, ) - assert entity.state["state"] == 2.0 + assert entity.state.state == 2.0 # update the value for the power reading zigpy_dev.endpoints[1].smartenergy_metering.PLUGGED_ATTR_READS[ @@ -1301,14 +1304,14 @@ async def test_metering_sensor_polling(zha_gateway: Gateway) -> None: ] = 6000 # ensure the state is still 2.0 - assert entity.state["state"] == 2.0 + assert entity.state.state == 2.0 # let the polling happen await asyncio.sleep(90) await zha_gateway.async_block_till_done(wait_background_tasks=True) # ensure the state has been updated to 6.0 - assert entity.state["state"] == 6.0 + assert entity.state.state == 6.0 @pytest.mark.parametrize( @@ -1464,7 +1467,7 @@ async def test_timestamp_sensor_v2(zha_gateway: Gateway) -> None: entity = get_entity(zha_device, platform=Platform.SENSOR, qualifier="start_time") await send_attributes_report(zha_gateway, cluster, {"start_time": 781355715}) - assert entity.state["state"] == datetime(2024, 10, 4, 11, 15, 15, tzinfo=UTC) + assert entity.state.state == datetime(2024, 10, 4, 11, 15, 15, tzinfo=UTC) class OppleCluster(CustomCluster, ManufacturerSpecificCluster): @@ -1584,12 +1587,12 @@ async def test_state_class( power_entity = get_entity( zha_device, platform=Platform.SENSOR, - qualifier_func=lambda e: e.info_object.unique_id.endswith("power"), + qualifier_func=lambda e: e.state.unique_id.endswith("power"), ) energy_entity = get_entity( zha_device, platform=Platform.SENSOR, - qualifier_func=lambda e: e.info_object.unique_id.endswith("energy"), + qualifier_func=lambda e: e.state.unique_id.endswith("energy"), ) energy_delivered_entity = get_entity( zha_device, platform=Platform.SENSOR, qualifier="energy_delivered" @@ -1713,12 +1716,10 @@ async def test_device_counter_sensors(zha_gateway: Gateway) -> None: entity = get_entity( coordinator, platform=Platform.SENSOR, - qualifier_func=lambda e: e.info_object.unique_id.endswith( - "ezsp_counters_counter_1" - ), + qualifier_func=lambda e: e.state.unique_id.endswith("ezsp_counters_counter_1"), ) - assert entity.state["state"] == 1 + assert entity.state.state == 1 # simulate counter increment on application coordinator.device.application.state.counters["ezsp_counters"][ @@ -1728,7 +1729,7 @@ async def test_device_counter_sensors(zha_gateway: Gateway) -> None: await asyncio.sleep(zha_gateway.global_updater.__polling_interval + 2) await zha_gateway.async_block_till_done(wait_background_tasks=True) - assert entity.state["state"] == 2 + assert entity.state.state == 2 # test disabling the entity disables it and removes it from the updater assert len(zha_gateway.global_updater._update_listeners) == 3 @@ -1769,14 +1770,14 @@ async def test_device_unavailable_or_disabled_skips_entity_polling( exact_entity_type=sensor.RSSISensor, ) - assert entity.state["state"] is None + assert entity.state.state is None elec_measurement_zha_dev.device.rssi = 60 await asyncio.sleep(zha_gateway.global_updater.__polling_interval + 2) await zha_gateway.async_block_till_done(wait_background_tasks=True) - assert entity.state["state"] == 60 + assert entity.state.state == 60 assert entity.enabled is True assert len(zha_gateway.global_updater._update_listeners) == 5 @@ -1877,10 +1878,10 @@ async def test_danfoss_thermostat_sw_error(zha_gateway: Gateway) -> None: }, ) - assert entity.state["state"] == "something" - assert entity.extra_state_attribute_names - assert "Top_pcb_sensor_error" in entity.extra_state_attribute_names - assert entity.state["Top_pcb_sensor_error"] + assert entity.state.state == "something" + assert entity.state.extra_state_attribute_names + assert "Top_pcb_sensor_error" in entity.state.extra_state_attribute_names + assert entity.state.bit_states["Top_pcb_sensor_error"] async def test_quirks_sensor_attr_converter(zha_gateway: Gateway) -> None: @@ -1926,10 +1927,10 @@ async def test_quirks_sensor_attr_converter(zha_gateway: Gateway) -> None: # send updated value, check if the value is converted await send_attributes_report(zha_gateway, cluster, {"present_value": 100}) - assert entity.state["state"] == 200.0 + assert entity.state.state == 200.0 await send_attributes_report(zha_gateway, cluster, {"present_value": 0}) - assert entity.state["state"] == 100.0 + assert entity.state.state == 100.0 async def test_ignore_non_value(zha_gateway: Gateway) -> None: @@ -1944,7 +1945,7 @@ async def test_ignore_non_value(zha_gateway: Gateway) -> None: cluster = zha_device.device.endpoints[1].temperature entity = get_entity(zha_device, platform=Platform.SENSOR, entity_type=Temperature) - assert entity.state["state"] == 22.3 + assert entity.state.state == 22.3 # Normal attribute report await send_attributes_report( @@ -1952,7 +1953,7 @@ async def test_ignore_non_value(zha_gateway: Gateway) -> None: cluster, {measurement.TemperatureMeasurement.AttributeDefs.measured_value.id: 3000}, ) - assert entity.state["state"] == 30.0 + assert entity.state.state == 30.0 # Invalid attribute value, ignored await send_attributes_report( @@ -1960,7 +1961,7 @@ async def test_ignore_non_value(zha_gateway: Gateway) -> None: cluster, {measurement.TemperatureMeasurement.AttributeDefs.measured_value.id: -0x8000}, ) - assert entity.state["state"] is None + assert entity.state.state is None async def test_ignore_non_value_quirks_v2(zha_gateway: Gateway) -> None: @@ -1978,11 +1979,11 @@ async def test_ignore_non_value_quirks_v2(zha_gateway: Gateway) -> None: # Normal attribute report await send_attributes_report(zha_gateway, cluster, {"measured_value": 100}) - assert entity.state["state"] == 100 + assert entity.state.state == 100 # Invalid attribute value (uint16 non_value), should be ignored await send_attributes_report(zha_gateway, cluster, {"measured_value": 0xFFFF}) - assert entity.state["state"] is None + assert entity.state.state is None async def test_ignore_nan_value(zha_gateway: Gateway) -> None: @@ -2002,7 +2003,7 @@ async def test_ignore_nan_value(zha_gateway: Gateway) -> None: ) # Initial value from the diagnostics file (0.0 * 1e6 = 0.0 ppm) - assert entity.state["state"] == 0.0 + assert entity.state.state == 0.0 # Normal attribute report await send_attributes_report( @@ -2012,7 +2013,7 @@ async def test_ignore_nan_value(zha_gateway: Gateway) -> None: measurement.CarbonMonoxideConcentration.AttributeDefs.measured_value.id: 0.001 }, ) - assert entity.state["state"] == 1000.0 + assert entity.state.state == 1000.0 # NaN attribute value should result in None state await send_attributes_report( @@ -2024,7 +2025,7 @@ async def test_ignore_nan_value(zha_gateway: Gateway) -> None: ), }, ) - assert entity.state["state"] is None + assert entity.state.state is None @pytest.mark.parametrize( @@ -2102,14 +2103,14 @@ async def test_enum_sensor(zha_gateway: Gateway) -> None: zha_device = await join_zigpy_device(zha_gateway, zigpy_dev) entity = get_entity(zha_device, platform=Platform.SENSOR, qualifier="battery_size") - assert entity.state["state"] == "AAA" + assert entity.state.state == "AAA" zigpy_dev.endpoints[1].power.update_attribute( PowerConfiguration.AttributeDefs.battery_size.id, 0xAB, # unknown ) - assert entity.state["state"] == "undefined_0xab" # TODO: should this be `None`? + assert entity.state.state == "undefined_0xab" # TODO: should this be `None`? async def test_em_poller_runs_independently_of_entity_enabled_state( diff --git a/tests/test_siren.py b/tests/test_siren.py index 997f28d41..4c5135c93 100644 --- a/tests/test_siren.py +++ b/tests/test_siren.py @@ -64,7 +64,7 @@ async def test_siren(zha_gateway: Gateway) -> None: | SirenEntityFeature.DURATION ) - assert entity.state["state"] is False + assert entity.state.state is False # turn on from client with patch( @@ -84,7 +84,7 @@ async def test_siren(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to on - assert entity.state["state"] is True + assert entity.state.state is True # turn off from client with patch( @@ -104,7 +104,7 @@ async def test_siren(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to off - assert entity.state["state"] is False + assert entity.state.state is False # turn on from client with options with patch( @@ -124,7 +124,7 @@ async def test_siren(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to on - assert entity.state["state"] is True + assert entity.state.state is True async def test_basic_siren(zha_gateway: Gateway) -> None: @@ -140,7 +140,7 @@ async def test_basic_siren(zha_gateway: Gateway) -> None: | SirenEntityFeature.DURATION ) - assert entity.state["state"] is False + assert entity.state.state is False # turn on from client with patch( @@ -160,7 +160,7 @@ async def test_basic_siren(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to on - assert entity.state["state"] is True + assert entity.state.state is True # turn off from client with patch( @@ -180,7 +180,7 @@ async def test_basic_siren(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to off - assert entity.state["state"] is False + assert entity.state.state is False # turn on from client with duration option with patch( @@ -200,7 +200,7 @@ async def test_basic_siren(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to on - assert entity.state["state"] is True + assert entity.state.state is True async def test_siren_timed_off(zha_gateway: Gateway) -> None: @@ -210,7 +210,7 @@ async def test_siren_timed_off(zha_gateway: Gateway) -> None: entity = get_entity(zha_device, platform=Platform.SIREN) - assert entity.state["state"] is False + assert entity.state.state is False # turn on from client with patch( @@ -230,9 +230,9 @@ async def test_siren_timed_off(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to on - assert entity.state["state"] is True + assert entity.state.state is True await asyncio.sleep(6) # test that the state has changed to off from the timer - assert entity.state["state"] is False + assert entity.state.state is False diff --git a/tests/test_switch.py b/tests/test_switch.py index a468c2015..bb21118f5 100644 --- a/tests/test_switch.py +++ b/tests/test_switch.py @@ -124,15 +124,15 @@ async def test_switch(zha_gateway: Gateway) -> None: cluster = zigpy_device.endpoints.get(1).on_off entity: PlatformEntity = get_entity(zha_device, Platform.SWITCH) - assert bool(bool(entity.state["state"])) is False + assert bool(bool(entity.state.state)) is False # turn on at switch await send_attributes_report(zha_gateway, cluster, {1: 0, 0: 1, 2: 2}) - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True # turn off at switch await send_attributes_report(zha_gateway, cluster, {1: 1, 0: 0, 2: 2}) - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False # turn on from client with patch( @@ -141,7 +141,7 @@ async def test_switch(zha_gateway: Gateway) -> None: ): await entity.async_turn_on() await zha_gateway.async_block_till_done() - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True assert len(cluster.request.mock_calls) == 1 assert cluster.request.call_args == call( False, @@ -161,7 +161,7 @@ async def test_switch(zha_gateway: Gateway) -> None: ): await entity.async_turn_off() await zha_gateway.async_block_till_done() - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True assert len(cluster.request.mock_calls) == 1 assert cluster.request.call_args == call( False, @@ -178,7 +178,7 @@ async def test_switch(zha_gateway: Gateway) -> None: ): await entity.async_turn_off() await zha_gateway.async_block_till_done() - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False assert len(cluster.request.mock_calls) == 1 assert cluster.request.call_args == call( False, @@ -198,7 +198,7 @@ async def test_switch(zha_gateway: Gateway) -> None: ): await entity.async_turn_on() await zha_gateway.async_block_till_done() - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False assert len(cluster.request.mock_calls) == 1 assert cluster.request.call_args == call( False, @@ -210,7 +210,7 @@ async def test_switch(zha_gateway: Gateway) -> None: # test updating entity state from client cluster.read_attributes.reset_mock() - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False cluster.PLUGGED_ATTR_READS = {"on_off": True} await entity.async_update() await zha_gateway.async_block_till_done() @@ -218,7 +218,7 @@ async def test_switch(zha_gateway: Gateway) -> None: assert cluster.read_attributes.await_args == call( ["on_off"], allow_cache=False, only_cache=False, manufacturer=UNDEFINED ) - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True async def test_zha_group_switch_entity(zha_gateway: Gateway) -> None: @@ -244,14 +244,14 @@ async def test_zha_group_switch_entity(zha_gateway: Gateway) -> None: entity: GroupEntity = get_group_entity(zha_group, platform=Platform.SWITCH) assert entity.group_id == zha_group.group_id - assert entity.info_object.fallback_name == zha_group.name + assert entity.state.fallback_name == zha_group.name group_cluster_on_off = zha_group.zigpy_group.endpoint[general.OnOff.cluster_id] dev1_cluster_on_off = device_switch_1.device.endpoints[1].on_off dev2_cluster_on_off = device_switch_2.device.endpoints[1].on_off # test that the lights were created and are off - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False # turn on from HA with patch( @@ -269,7 +269,7 @@ async def test_zha_group_switch_entity(zha_gateway: Gateway) -> None: expect_reply=True, manufacturer=None, ) - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True # turn off from HA with patch( @@ -287,7 +287,7 @@ async def test_zha_group_switch_entity(zha_gateway: Gateway) -> None: expect_reply=True, manufacturer=None, ) - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False # test some of the group logic to make sure we key off states correctly await send_attributes_report(zha_gateway, dev1_cluster_on_off, {0: 1}) @@ -295,40 +295,40 @@ async def test_zha_group_switch_entity(zha_gateway: Gateway) -> None: await zha_gateway.async_block_till_done() # group member updates are debounced - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False await asyncio.sleep(1) await zha_gateway.async_block_till_done() # test that group light is on - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True await send_attributes_report(zha_gateway, dev1_cluster_on_off, {0: 0}) await zha_gateway.async_block_till_done() # test that group light is still on - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True await send_attributes_report(zha_gateway, dev2_cluster_on_off, {0: 0}) await zha_gateway.async_block_till_done() # group member updates are debounced - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True await asyncio.sleep(1) await zha_gateway.async_block_till_done() # test that group light is now off - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False await send_attributes_report(zha_gateway, dev1_cluster_on_off, {0: 1}) await zha_gateway.async_block_till_done() # group member updates are debounced - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False await asyncio.sleep(1) await zha_gateway.async_block_till_done() # test that group light is now back on - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True await group_entity_availability_test( zha_gateway, device_switch_1, device_switch_2, entity @@ -392,19 +392,19 @@ async def test_switch_configurable( entity = get_entity(zha_device, platform=Platform.SWITCH) # test that the state has changed from unavailable to off - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False # turn on at switch await send_attributes_report( zha_gateway, cluster, {"window_detection_function": True} ) - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True # turn off at switch await send_attributes_report( zha_gateway, cluster, {"window_detection_function": False} ) - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False # turn on from HA with patch( @@ -523,15 +523,15 @@ async def test_switch_configurable_custom_on_off_values(zha_gateway: Gateway) -> entity = get_entity(zha_device, platform=Platform.SWITCH) - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False # turn on at switch await send_attributes_report(zha_gateway, cluster, {"window_detection_function": 3}) - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True # turn off at switch await send_attributes_report(zha_gateway, cluster, {"window_detection_function": 5}) - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False # turn on from HA with patch( @@ -605,15 +605,15 @@ async def test_switch_configurable_custom_on_off_values_force_inverted( entity = get_entity(zha_device, platform=Platform.SWITCH) - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True # turn on at switch await send_attributes_report(zha_gateway, cluster, {"window_detection_function": 3}) - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False # turn off at switch await send_attributes_report(zha_gateway, cluster, {"window_detection_function": 5}) - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True # turn on from HA with patch( @@ -690,15 +690,15 @@ async def test_switch_configurable_custom_on_off_values_inverter_attribute( entity = get_entity(zha_device, platform=Platform.SWITCH) - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True # turn on at switch await send_attributes_report(zha_gateway, cluster, {"window_detection_function": 3}) - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False # turn off at switch await send_attributes_report(zha_gateway, cluster, {"window_detection_function": 5}) - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True # turn on from HA with patch( @@ -764,13 +764,13 @@ async def test_cover_inversion_switch(zha_gateway: Gateway) -> None: await entity.async_update() await zha_gateway.async_block_till_done() assert cluster.read_attributes.call_count == prev_call_count + 1 - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False # test to see the state remains after tilting to 0% await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 0} ) - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False with patch( "zigpy.zcl.Cluster.write_attributes", return_value=[0x1, zcl_f.Status.SUCCESS] @@ -791,7 +791,7 @@ async def test_cover_inversion_switch(zha_gateway: Gateway) -> None: manufacturer=UNDEFINED, ) - assert bool(entity.state["state"]) is True + assert bool(entity.state.state) is True cluster.write_attributes.reset_mock() @@ -807,7 +807,7 @@ async def test_cover_inversion_switch(zha_gateway: Gateway) -> None: manufacturer=UNDEFINED, ) - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False cluster.write_attributes.reset_mock() @@ -816,7 +816,7 @@ async def test_cover_inversion_switch(zha_gateway: Gateway) -> None: await zha_gateway.async_block_till_done() assert cluster.write_attributes.call_count == 0 - assert bool(entity.state["state"]) is False + assert bool(entity.state.state) is False async def test_cover_inversion_switch_not_created(zha_gateway: Gateway) -> None: @@ -862,8 +862,8 @@ async def test_binary_output_cluster(zha_gateway: Gateway) -> None: # Clear out the attribute first, to test handling of the missing state cluster.update_attribute(BinaryOutput.AttributeDefs.present_value.id, None) - assert switch_entity.info_object.fallback_name == "Entity Description" - assert switch_entity.state["state"] is False + assert switch_entity.state.fallback_name == "Entity Description" + assert switch_entity.state.state is False # Turn it on cluster.write_attributes.reset_mock() @@ -871,7 +871,7 @@ async def test_binary_output_cluster(zha_gateway: Gateway) -> None: assert cluster.write_attributes.mock_calls == [ call({"present_value": True}, manufacturer=UNDEFINED) ] - assert switch_entity.state["state"] is True + assert switch_entity.state.state is True # Turn it off cluster.write_attributes.reset_mock() @@ -879,7 +879,7 @@ async def test_binary_output_cluster(zha_gateway: Gateway) -> None: assert cluster.write_attributes.mock_calls == [ call({"present_value": False}, manufacturer=UNDEFINED) ] - assert switch_entity.state["state"] is False + assert switch_entity.state.state is False # Report an attribute change await send_attributes_report( @@ -887,14 +887,14 @@ async def test_binary_output_cluster(zha_gateway: Gateway) -> None: cluster, {BinaryOutput.AttributeDefs.present_value.id: t.Bool(False)}, ) - assert switch_entity.state["state"] is False + assert switch_entity.state.state is False # Force an update cluster.read_attributes.reset_mock() cluster.PLUGGED_ATTR_READS = {BinaryOutput.AttributeDefs.present_value.name: True} await switch_entity.async_update() - assert switch_entity.state["state"] is True + assert switch_entity.state.state is True assert cluster.read_attributes.mock_calls == [ call( diff --git a/tests/test_update.py b/tests/test_update.py index 987bd535c..7cc06625b 100644 --- a/tests/test_update.py +++ b/tests/test_update.py @@ -26,15 +26,6 @@ ) from zha.application import Platform from zha.application.gateway import Gateway -from zha.application.platforms.update import ( - ATTR_IN_PROGRESS, - ATTR_INSTALLED_VERSION, - ATTR_LATEST_VERSION, - ATTR_RELEASE_NOTES, - ATTR_RELEASE_SUMMARY, - ATTR_RELEASE_URL, - ATTR_UPDATE_PERCENTAGE, -) from zha.exceptions import ZHAException @@ -178,8 +169,8 @@ async def test_firmware_update_notification_from_zigpy(zha_gateway: Gateway) -> ) entity = get_entity(zha_device, platform=Platform.UPDATE) - assert entity.state["installed_version"] == f"0x{installed_fw_version:08x}" - assert entity.state["latest_version"] is None + assert entity.state.installed_version == f"0x{installed_fw_version:08x}" + assert entity.state.latest_version is None # simulate an image available notification await ota_cluster._handle_query_next_image( @@ -196,11 +187,10 @@ async def test_firmware_update_notification_from_zigpy(zha_gateway: Gateway) -> ) await zha_gateway.async_block_till_done() - assert entity.state[ATTR_INSTALLED_VERSION] == f"0x{installed_fw_version:08x}" - assert entity.state[ATTR_IN_PROGRESS] is False + assert entity.state.installed_version == f"0x{installed_fw_version:08x}" + assert entity.state.in_progress is False assert ( - entity.state[ATTR_LATEST_VERSION] - == f"0x{fw_image.firmware.header.file_version:08x}" + entity.state.latest_version == f"0x{fw_image.firmware.header.file_version:08x}" ) @@ -255,11 +245,10 @@ async def fake_reinterview(): ) await zha_gateway.async_block_till_done() - assert entity.state[ATTR_INSTALLED_VERSION] == f"0x{installed_fw_version:08x}" - assert entity.state[ATTR_IN_PROGRESS] is False + assert entity.state.installed_version == f"0x{installed_fw_version:08x}" + assert entity.state.in_progress is False assert ( - entity.state[ATTR_LATEST_VERSION] - == f"0x{fw_image.firmware.header.file_version:08x}" + entity.state.latest_version == f"0x{fw_image.firmware.header.file_version:08x}" ) ota_completed = False @@ -353,15 +342,15 @@ async def endpoint_reply(cluster, sequence, data, **kwargs): # make sure the state machine gets progress reports assert ( - entity.state[ATTR_INSTALLED_VERSION] + entity.state.installed_version == f"0x{installed_fw_version:08x}" ) - assert entity.state[ATTR_IN_PROGRESS] is True - assert entity.state[ATTR_UPDATE_PERCENTAGE] == pytest.approx( + assert entity.state.in_progress is True + assert entity.state.update_percentage == pytest.approx( 100 * (40 / 70) ) assert ( - entity.state[ATTR_LATEST_VERSION] + entity.state.latest_version == f"0x{fw_image.firmware.header.file_version:08x}" ) @@ -409,16 +398,16 @@ def read_new_fw_version(*args, **kwargs): await zha_gateway.async_block_till_done() assert ( - entity.state[ATTR_INSTALLED_VERSION] + entity.state.installed_version == f"0x{fw_image.firmware.header.file_version:08x}" ) - assert not entity.state[ATTR_IN_PROGRESS] - assert entity.state[ATTR_LATEST_VERSION] == entity.state[ATTR_INSTALLED_VERSION] + assert not entity.state.in_progress + assert entity.state.latest_version == entity.state.installed_version # If we send a progress notification incorrectly, it won't be handled entity._update_progress(50, 100, 0.50) - assert not entity.state[ATTR_IN_PROGRESS] + assert not entity.state.in_progress # Post-OTA reinterview should have swapped the zigpy device and rebuilt ZHA assert zha_device.device is not old_zigpy_device @@ -450,11 +439,10 @@ async def test_firmware_update_raises(zha_gateway: Gateway) -> None: ) await zha_gateway.async_block_till_done() - assert entity.state[ATTR_INSTALLED_VERSION] == f"0x{installed_fw_version:08x}" - assert not entity.state[ATTR_IN_PROGRESS] + assert entity.state.installed_version == f"0x{installed_fw_version:08x}" + assert not entity.state.in_progress assert ( - entity.state[ATTR_LATEST_VERSION] - == f"0x{fw_image.firmware.header.file_version:08x}" + entity.state.latest_version == f"0x{fw_image.firmware.header.file_version:08x}" ) async def endpoint_reply(cluster, sequence, data, **kwargs): @@ -546,7 +534,7 @@ async def test_firmware_update_empty_exception_message(zha_gateway: Gateway) -> assert str(exc_info.value) == "Update was not successful: TimeoutError()" assert exc_info.value.__cause__ is raised - assert not entity.state[ATTR_IN_PROGRESS] + assert not entity.state.in_progress async def test_firmware_update_downgrade(zha_gateway: Gateway) -> None: @@ -582,11 +570,10 @@ async def test_firmware_update_downgrade(zha_gateway: Gateway) -> None: ) await zha_gateway.async_block_till_done() - assert entity.state[ATTR_INSTALLED_VERSION] == f"0x{installed_fw_version:08x}" - assert not entity.state[ATTR_IN_PROGRESS] + assert entity.state.installed_version == f"0x{installed_fw_version:08x}" + assert not entity.state.in_progress assert ( - entity.state[ATTR_LATEST_VERSION] - == f"0x{fw_image.firmware.header.file_version:08x}" + entity.state.latest_version == f"0x{fw_image.firmware.header.file_version:08x}" ) with patch.object( @@ -614,13 +601,12 @@ async def test_firmware_update_downgrade(zha_gateway: Gateway) -> None: ] assert ( - entity.state[ATTR_INSTALLED_VERSION] + entity.state.installed_version == f"0x{fw_image_downgrade.firmware.header.file_version:08x}" ) - assert not entity.state[ATTR_IN_PROGRESS] + assert not entity.state.in_progress assert ( - entity.state[ATTR_LATEST_VERSION] - == f"0x{fw_image.firmware.header.file_version:08x}" + entity.state.latest_version == f"0x{fw_image.firmware.header.file_version:08x}" ) @@ -655,16 +641,16 @@ async def test_firmware_update_no_image(zha_gateway: Gateway) -> None: ) await zha_gateway.async_block_till_done() - assert entity.state[ATTR_INSTALLED_VERSION] == f"0x{installed_fw_version:08x}" - assert not entity.state[ATTR_IN_PROGRESS] - assert entity.state[ATTR_LATEST_VERSION] is None + assert entity.state.installed_version == f"0x{installed_fw_version:08x}" + assert not entity.state.in_progress + assert entity.state.latest_version is None with pytest.raises(ZHAException): await entity.async_install(version=None) - assert entity.state[ATTR_INSTALLED_VERSION] == f"0x{installed_fw_version:08x}" - assert not entity.state[ATTR_IN_PROGRESS] - assert entity.state[ATTR_LATEST_VERSION] is None + assert entity.state.installed_version == f"0x{installed_fw_version:08x}" + assert not entity.state.in_progress + assert entity.state.latest_version is None async def test_firmware_update_latest_version_even_if_downgrade( @@ -704,13 +690,13 @@ async def test_firmware_update_latest_version_even_if_downgrade( ) await zha_gateway.async_block_till_done() - assert entity.state[ATTR_INSTALLED_VERSION] == f"0x{installed_fw_version:08x}" - assert not entity.state[ATTR_IN_PROGRESS] + assert entity.state.installed_version == f"0x{installed_fw_version:08x}" + assert not entity.state.in_progress assert ( - entity.state[ATTR_LATEST_VERSION] + entity.state.latest_version == f"0x{fw_image_downgrade.firmware.header.file_version:08x}" ) - assert entity.state[ATTR_RELEASE_URL] == "https://example.com/releases/v0.1" + assert entity.state.release_url == "https://example.com/releases/v0.1" async def test_firmware_update_metadata(zha_gateway: Gateway) -> None: @@ -738,9 +724,9 @@ async def test_firmware_update_metadata(zha_gateway: Gateway) -> None: entity = get_entity(zha_device, platform=Platform.UPDATE) # metadata should be None before notification - assert entity.state[ATTR_RELEASE_SUMMARY] is None - assert entity.state[ATTR_RELEASE_NOTES] is None - assert entity.state[ATTR_RELEASE_URL] is None + assert entity.state.release_summary is None + assert entity.state.release_notes is None + assert entity.state.release_url is None # simulate an image available notification await ota_cluster._handle_query_next_image( @@ -759,16 +745,15 @@ async def test_firmware_update_metadata(zha_gateway: Gateway) -> None: await zha_gateway.async_block_till_done() # verify metadata is exposed in entity state now - assert entity.state[ATTR_INSTALLED_VERSION] == f"0x{installed_fw_version:08x}" + assert entity.state.installed_version == f"0x{installed_fw_version:08x}" assert ( - entity.state[ATTR_LATEST_VERSION] - == f"0x{fw_image.firmware.header.file_version:08x}" + entity.state.latest_version == f"0x{fw_image.firmware.header.file_version:08x}" ) - assert entity.state[ATTR_RELEASE_URL] == "https://example.com/releases/v1.0" - assert entity.state[ATTR_RELEASE_SUMMARY] == "This is a test changelog!" + assert entity.state.release_url == "https://example.com/releases/v1.0" + assert entity.state.release_summary == "This is a test changelog!" # release notes include version header - assert entity.state[ATTR_RELEASE_NOTES] == ( + assert entity.state.release_notes == ( f"## 0x{fw_image.firmware.header.file_version:08x}\n" "These are the full release notes." ) @@ -827,12 +812,12 @@ async def test_firmware_update_multiple_upgrades_combined_release_notes( # Verify latest version is the newest firmware assert ( - entity.state[ATTR_LATEST_VERSION] + entity.state.latest_version == f"0x{fw_image_v3.firmware.header.file_version:08x}" ) # Only latest firmware provides URL and release summary - assert entity.state[ATTR_RELEASE_URL] == "https://example.com/releases/v3" - assert entity.state[ATTR_RELEASE_SUMMARY] == "Latest changelog" + assert entity.state.release_url == "https://example.com/releases/v3" + assert entity.state.release_summary == "Latest changelog" # Release notes should be combined with version headers # fw_image_v2 is skipped because it has no release notes @@ -842,7 +827,7 @@ async def test_firmware_update_multiple_upgrades_combined_release_notes( f"## 0x{fw_image_v1.firmware.header.file_version:08x}\n" "Release notes for v1." ) - assert entity.state[ATTR_RELEASE_NOTES] == expected_release_notes + assert entity.state.release_notes == expected_release_notes async def test_firmware_update_cached_on_startup(zha_gateway: Gateway) -> None: @@ -879,10 +864,9 @@ async def test_firmware_update_cached_on_startup(zha_gateway: Gateway) -> None: await zha_gateway.async_block_till_done() entity = get_entity(zha_device, platform=Platform.UPDATE) - assert entity.state[ATTR_INSTALLED_VERSION] == f"0x{installed_fw_version:08x}" + assert entity.state.installed_version == f"0x{installed_fw_version:08x}" assert ( - entity.state[ATTR_LATEST_VERSION] - == f"0x{fw_image.firmware.header.file_version:08x}" + entity.state.latest_version == f"0x{fw_image.firmware.header.file_version:08x}" ) @@ -910,7 +894,7 @@ async def test_firmware_update_no_cached_query_on_startup( await zha_gateway.async_block_till_done() entity = get_entity(zha_device, platform=Platform.UPDATE) - assert entity.state[ATTR_INSTALLED_VERSION] == f"0x{installed_fw_version:08x}" - assert entity.state[ATTR_LATEST_VERSION] is None + assert entity.state.installed_version == f"0x{installed_fw_version:08x}" + assert entity.state.latest_version is None # get_ota_images should not have been called since there's no cached query zigpy_device.application.ota.get_ota_images.assert_not_called() diff --git a/zha/application/gateway.py b/zha/application/gateway.py index ecff916d1..d53a1f520 100644 --- a/zha/application/gateway.py +++ b/zha/application/gateway.py @@ -661,7 +661,7 @@ def _emit_group_gateway_message( # pylint: disable=unused-argument gateway_message_type, GroupEvent( event=gateway_message_type, - group_info=zha_group.info_object, + group_info=zha_group.state, ), ) diff --git a/zha/application/platforms/__init__.py b/zha/application/platforms/__init__.py index 675918e88..fa2998c9f 100644 --- a/zha/application/platforms/__init__.py +++ b/zha/application/platforms/__init__.py @@ -172,8 +172,8 @@ class EntityCategory(StrEnum): @dataclasses.dataclass(frozen=True, kw_only=True) -class BaseEntityInfo: - """Information about a base entity.""" +class BaseEntityState: + """State for the base entity.""" fallback_name: str unique_id: str @@ -189,6 +189,8 @@ class BaseEntityInfo: enabled: bool = True primary: bool + extra_state_attribute_names: frozenset[str] + # For platform entities device_ieee: EUI64 | None endpoint_id: int | None @@ -254,6 +256,7 @@ async def async_initialize_cluster(self, cluster: Any) -> None: _attr_device_class: str | None = None _attr_state_class: str | None = None _attr_enabled: bool = True + _attr_extra_state_attribute_names: set[str] | None = None _attr_always_supported: bool = False _attr_primary: bool | None = None @@ -384,11 +387,10 @@ def identifiers(self) -> BaseIdentifiers: platform=self.PLATFORM, ) - @cached_property - def info_object(self) -> BaseEntityInfo: - """Return a representation of the platform entity.""" - - return BaseEntityInfo( + @property + def state(self) -> BaseEntityState: + """Return the state of this entity.""" + return BaseEntityState( unique_id=self.unique_id, migrate_unique_ids=self.migrate_unique_ids, platform=self.PLATFORM, @@ -402,6 +404,9 @@ def info_object(self) -> BaseEntityInfo: entity_registry_enabled_default=self.entity_registry_enabled_default, enabled=self.enabled, primary=self.primary, + extra_state_attribute_names=frozenset( + self._attr_extra_state_attribute_names or () + ), # Set by platform entities device_ieee=None, endpoint_id=None, @@ -410,24 +415,6 @@ def info_object(self) -> BaseEntityInfo: group_id=None, ) - @property - def state(self) -> dict[str, Any]: - """Return the arguments to use in the command.""" - return { - "class_name": self.__class__.__name__, - } - - @cached_property - def extra_state_attribute_names(self) -> set[str] | None: - """Return entity specific state attribute names. - - Implemented by platform classes. Convention for attribute names - is lowercase snake_case. - """ - if hasattr(self, "_attr_extra_state_attribute_names"): - return self._attr_extra_state_attribute_names - return None - def enable(self) -> None: """Enable the entity.""" self.enabled = True @@ -488,6 +475,7 @@ class PlatformEntity(BaseEntity): # Per-cluster configuration (keyed by cluster ID) _server_cluster_config: Mapping[int, ClusterConfig] = MappingProxyType({}) + _client_cluster_config: Mapping[int, ClusterConfig] = MappingProxyType({}) def __init__( @@ -594,16 +582,6 @@ def identifiers(self) -> PlatformEntityIdentifiers: endpoint_id=self.endpoint.id, ) - @cached_property - def info_object(self) -> BaseEntityInfo: - """Return a representation of the platform entity.""" - return dataclasses.replace( - super().info_object, - device_ieee=self._device.ieee, - endpoint_id=self._endpoint.id, - available=self.available, - ) - @property def device(self) -> Device: """Return the device.""" @@ -664,13 +642,6 @@ def available(self) -> bool: """Return true if the device this entity belongs to is available.""" return self.device.available - @property - def state(self) -> dict[str, Any]: - """Return the arguments to use in the command.""" - state = super().state - state["available"] = self.available - return state - async def async_update(self) -> None: """Retrieve latest state. @@ -678,6 +649,16 @@ async def async_update(self) -> None: own attributes directly from the relevant cluster(s). """ + @property + def state(self) -> BaseEntityState: + """Return the state of this entity.""" + return dataclasses.replace( + super().state, + device_ieee=self._device.ieee, + endpoint_id=self._endpoint.id, + available=self.available, + ) + class GroupEntity(BaseEntity): """A base class for group entities.""" @@ -708,21 +689,15 @@ def identifiers(self) -> GroupEntityIdentifiers: group_id=self.group_id, ) - @cached_property - def info_object(self) -> BaseEntityInfo: - """Return a representation of the group.""" + @property + def state(self) -> BaseEntityState: + """Return the state of this entity.""" return dataclasses.replace( - super().info_object, + super().state, + available=self.available, group_id=self.group_id, ) - @property - def state(self) -> dict[str, Any]: - """Return the arguments to use in the command.""" - state = super().state - state["available"] = self.available - return state - @property def available(self) -> bool: """Return true if all member entities are available.""" diff --git a/zha/application/platforms/alarm_control_panel/__init__.py b/zha/application/platforms/alarm_control_panel/__init__.py index 2c6b82927..70baa12dc 100644 --- a/zha/application/platforms/alarm_control_panel/__init__.py +++ b/zha/application/platforms/alarm_control_panel/__init__.py @@ -4,10 +4,9 @@ from abc import ABC, abstractmethod from collections.abc import Callable -from dataclasses import dataclass -import functools +import dataclasses import logging -from typing import TYPE_CHECKING, Any +from typing import TYPE_CHECKING from zigpy.zcl.clusters.security import ( AlarmStatus, @@ -19,7 +18,7 @@ from zha.application import Platform from zha.application.platforms import ( - BaseEntityInfo, + BaseEntityState, ClusterConfig, ClusterMatch, PlatformEntity, @@ -46,14 +45,14 @@ SIGNAL_ALARM_TRIGGERED = "zha_armed_triggered" -@dataclass(frozen=True, kw_only=True) -class AlarmControlPanelEntityInfo(BaseEntityInfo): - """Alarm control panel entity info.""" +@dataclasses.dataclass(frozen=True, kw_only=True) +class AlarmControlPanelState(BaseEntityState): + """State for alarm control panel entities.""" + state: AlarmState code_arm_required: bool code_format: CodeFormat supported_features: int - translation_key: str class BaseAlarmControlPanel(PlatformEntity, ABC): @@ -62,11 +61,15 @@ class BaseAlarmControlPanel(PlatformEntity, ABC): PLATFORM = Platform.ALARM_CONTROL_PANEL @property - def state(self) -> dict[str, Any]: + def state(self) -> AlarmControlPanelState: """Get the state of the alarm control panel.""" - response = super().state - response["state"] = self.alarm_state - return response + return AlarmControlPanelState( + **super().state.__dict__, + state=self.alarm_state, + code_arm_required=self.code_arm_required, + code_format=self.code_format, + supported_features=self.supported_features, + ) @property @abstractmethod @@ -91,16 +94,6 @@ def supported_features(self) -> int: """Return the list of supported features.""" return self._attr_supported_features - @functools.cached_property - def info_object(self) -> AlarmControlPanelEntityInfo: - """Return a representation of the alarm control panel.""" - return AlarmControlPanelEntityInfo( - **super().info_object.__dict__, - code_arm_required=self.code_arm_required, - code_format=self.code_format, - supported_features=self.supported_features, - ) - @abstractmethod async def async_alarm_disarm(self, code: str | None = None) -> None: """Send disarm command.""" diff --git a/zha/application/platforms/binary_sensor/__init__.py b/zha/application/platforms/binary_sensor/__init__.py index 688cb706c..99fa69fa2 100644 --- a/zha/application/platforms/binary_sensor/__init__.py +++ b/zha/application/platforms/binary_sensor/__init__.py @@ -4,8 +4,7 @@ from abc import ABC, abstractmethod from collections.abc import Callable -from dataclasses import dataclass -import functools +import dataclasses import logging from typing import TYPE_CHECKING, Any @@ -26,7 +25,7 @@ from zha.application.helpers import safe_read from zha.application.platforms import ( AttrConfig, - BaseEntityInfo, + BaseEntityState, ClusterConfig, ClusterMatch, EntityCategory, @@ -54,12 +53,12 @@ _LOGGER = logging.getLogger(__name__) -@dataclass(frozen=True, kw_only=True) -class BinarySensorEntityInfo(BaseEntityInfo): - """Binary sensor entity info.""" +@dataclasses.dataclass(frozen=True, kw_only=True) +class BinarySensorState(BaseEntityState): + """State for binary sensor entities.""" + state: bool attribute_name: str - device_class: BinarySensorDeviceClass | None class BaseBinarySensor(PlatformEntity, ABC): @@ -67,13 +66,6 @@ class BaseBinarySensor(PlatformEntity, ABC): PLATFORM: Platform = Platform.BINARY_SENSOR - @property - def state(self) -> dict: - """Return the state of the binary sensor.""" - response = super().state - response["state"] = self.is_on - return response - @property @abstractmethod def is_on(self) -> bool: @@ -87,6 +79,15 @@ class BinarySensor(BaseBinarySensor): _attribute_name: str _attribute_converter: Callable[[Any], Any] | None = None + @property + def state(self) -> BinarySensorState: + """Return the state of the binary sensor.""" + return BinarySensorState( + **super().state.__dict__, + state=self.is_on, + attribute_name=self._attribute_name, + ) + def __init__( self, endpoint: Endpoint, @@ -134,14 +135,6 @@ def on_add(self) -> None: ) ) - @functools.cached_property - def info_object(self) -> BinarySensorEntityInfo: - """Return a representation of the binary sensor.""" - return BinarySensorEntityInfo( - **super().info_object.__dict__, - attribute_name=self._attribute_name, - ) - @property def is_on(self) -> bool: """Return True if the switch is on based on the state machine.""" diff --git a/zha/application/platforms/button/__init__.py b/zha/application/platforms/button/__init__.py index ec664037c..10209717b 100644 --- a/zha/application/platforms/button/__init__.py +++ b/zha/application/platforms/button/__init__.py @@ -14,7 +14,7 @@ from zha.application.helpers import write_attributes_safe from zha.application.platforms import ( BaseEntity, - BaseEntityInfo, + BaseEntityState, ClusterMatch, EntityCategory, PlatformEntity, @@ -32,13 +32,15 @@ @dataclass(frozen=True, kw_only=True) -class ButtonEntityInfo(BaseEntityInfo): - """Button entity info.""" +class ButtonState(BaseEntityState): + """State for button entities.""" + + pass @dataclass(frozen=True, kw_only=True) -class CommandButtonEntityInfo(ButtonEntityInfo): - """Command button entity info.""" +class CommandButtonState(ButtonState): + """State for command button entities.""" command: str args: list[Any] @@ -46,8 +48,8 @@ class CommandButtonEntityInfo(ButtonEntityInfo): @dataclass(frozen=True, kw_only=True) -class WriteAttributeButtonEntityInfo(ButtonEntityInfo): - """Write attribute button entity info.""" +class WriteAttributeButtonState(ButtonState): + """State for write attribute button entities.""" attribute_name: str attribute_value: Any @@ -58,10 +60,10 @@ class BaseButton(PlatformEntity, ABC): PLATFORM = Platform.BUTTON - @functools.cached_property - def info_object(self) -> ButtonEntityInfo: - """Return a representation of the button.""" - return ButtonEntityInfo(**super().info_object.__dict__) + @property + def state(self) -> ButtonState: + """Return the state of the button.""" + return ButtonState(**super().state.__dict__) @abstractmethod async def async_press(self) -> None: @@ -95,11 +97,11 @@ def __init__( super().__init__(endpoint=endpoint, device=device, **kwargs) - @functools.cached_property - def info_object(self) -> CommandButtonEntityInfo: - """Return a representation of the button.""" - return CommandButtonEntityInfo( - **super().info_object.__dict__, + @property + def state(self) -> CommandButtonState: + """Return the state of the button.""" + return CommandButtonState( + **super().state.__dict__, command=self._command_name, args=self._args, kwargs=self._kwargs, @@ -168,11 +170,11 @@ def __init__( super().__init__(endpoint=endpoint, device=device, **kwargs) self.recompute_capabilities() - @functools.cached_property - def info_object(self) -> WriteAttributeButtonEntityInfo: - """Return a representation of the button.""" - return WriteAttributeButtonEntityInfo( - **super().info_object.__dict__, + @property + def state(self) -> WriteAttributeButtonState: + """Return the state of the button.""" + return WriteAttributeButtonState( + **super().state.__dict__, attribute_name=self._attribute_name, attribute_value=self._attribute_value, ) diff --git a/zha/application/platforms/climate/__init__.py b/zha/application/platforms/climate/__init__.py index 6e5d9a27a..31acebd1b 100644 --- a/zha/application/platforms/climate/__init__.py +++ b/zha/application/platforms/climate/__init__.py @@ -7,7 +7,7 @@ from dataclasses import dataclass import datetime as dt import functools -from typing import TYPE_CHECKING, Any +from typing import TYPE_CHECKING from zigpy.profiles import zha from zigpy.zcl import ( @@ -29,7 +29,7 @@ from zha.application.helpers import write_attributes_safe from zha.application.platforms import ( AttrConfig, - BaseEntityInfo, + BaseEntityState, ClusterConfig, ClusterMatch, PlatformEntity, @@ -39,12 +39,6 @@ from zha.application.platforms.climate.const import ( ATTR_OCCP_COOL_SETPT, ATTR_OCCP_HEAT_SETPT, - ATTR_OCCUPANCY, - ATTR_PI_COOLING_DEMAND, - ATTR_PI_HEATING_DEMAND, - ATTR_SYS_MODE, - ATTR_UNOCCP_COOL_SETPT, - ATTR_UNOCCP_HEAT_SETPT, FAN_AUTO, FAN_ON, HVAC_MODE_2_SYSTEM, @@ -66,9 +60,18 @@ @dataclass(frozen=True, kw_only=True) -class ThermostatEntityInfo(BaseEntityInfo): - """Thermostat entity info.""" - +class ClimateState(BaseEntityState): + """State for climate entities.""" + + current_temperature: float | None + outdoor_temperature: float | None + target_temperature: float | None + target_temperature_high: float | None + target_temperature_low: float | None + hvac_action: HVACAction | None + hvac_mode: HVACMode | None + preset_mode: str | None + fan_mode: str | None max_temp: float min_temp: float supported_features: ClimateEntityFeature @@ -77,25 +80,46 @@ class ThermostatEntityInfo(BaseEntityInfo): hvac_modes: list[HVACMode] +@dataclass(frozen=True, kw_only=True) +class ThermostatState(ClimateState): + """State for thermostat entities with extra attributes.""" + + sys_mode: str | None = None + occupancy: int | None = None + occupied_cooling_setpoint: int | None = None + occupied_heating_setpoint: int | None = None + pi_heating_demand: int | None = None + pi_cooling_demand: int | None = None + unoccupied_cooling_setpoint: int | None = None + unoccupied_heating_setpoint: int | None = None + + class BaseThermostat(PlatformEntity, ABC): """Abstract base class for climate entities.""" PLATFORM = Platform.CLIMATE @property - def state(self) -> dict[str, Any]: + def state(self) -> ClimateState: """Get the state of the climate entity.""" - response = super().state - response["current_temperature"] = self.current_temperature - response["outdoor_temperature"] = self.outdoor_temperature - response["target_temperature"] = self.target_temperature - response["target_temperature_high"] = self.target_temperature_high - response["target_temperature_low"] = self.target_temperature_low - response["hvac_action"] = self.hvac_action - response["hvac_mode"] = self.hvac_mode - response["preset_mode"] = self.preset_mode - response["fan_mode"] = self.fan_mode - return response + return ClimateState( + **super().state.__dict__, + current_temperature=self.current_temperature, + outdoor_temperature=self.outdoor_temperature, + target_temperature=self.target_temperature, + target_temperature_high=self.target_temperature_high, + target_temperature_low=self.target_temperature_low, + hvac_action=self.hvac_action, + hvac_mode=self.hvac_mode, + preset_mode=self.preset_mode, + fan_mode=self.fan_mode, + max_temp=self.max_temp, + min_temp=self.min_temp, + supported_features=self.supported_features, + fan_modes=self.fan_modes, + preset_modes=self.preset_modes, + hvac_modes=self.hvac_modes, + ) @property @abstractmethod @@ -207,16 +231,6 @@ class Thermostat(BaseThermostat): _attr_temperature_unit = UnitOfTemperature.CELSIUS _attr_translation_key: str = "thermostat" _enable_turn_on_off_backwards_compatibility = False - _attr_extra_state_attribute_names: set[str] = { - ATTR_SYS_MODE, - ATTR_OCCUPANCY, - ATTR_OCCP_COOL_SETPT, - ATTR_OCCP_HEAT_SETPT, - ATTR_PI_HEATING_DEMAND, - ATTR_PI_COOLING_DEMAND, - ATTR_UNOCCP_COOL_SETPT, - ATTR_UNOCCP_HEAT_SETPT, - } _cluster_match = ClusterMatch( server_clusters=frozenset({ThermostatCluster.cluster_id}), @@ -544,39 +558,28 @@ def on_add(self) -> None: ) ) - @functools.cached_property - def info_object(self) -> ThermostatEntityInfo: - """Return a representation of the thermostat.""" - return ThermostatEntityInfo( - **super().info_object.__dict__, - max_temp=self.max_temp, - min_temp=self.min_temp, - supported_features=self.supported_features, - fan_modes=self.fan_modes, - preset_modes=self.preset_modes, - hvac_modes=self.hvac_modes, + @property + def state(self) -> ThermostatState: + """Get the state of the thermostat.""" + return ThermostatState( + **super().state.__dict__, + sys_mode=self.system_mode_string, + occupancy=self._occupancy, + occupied_cooling_setpoint=self._occupied_cooling_setpoint, + occupied_heating_setpoint=self._occupied_heating_setpoint, + pi_heating_demand=self._pi_heating_demand, + pi_cooling_demand=self._pi_cooling_demand, + unoccupied_cooling_setpoint=self._unoccupied_cooling_setpoint, + unoccupied_heating_setpoint=self._unoccupied_heating_setpoint, ) @property - def state(self) -> dict[str, Any]: - """Get the state of the thermostat.""" + def system_mode_string(self) -> str | None: + """Return a formatted system mode string.""" + if self.hvac_mode is None: + return None system_mode = SYSTEM_MODE_2_HVAC.get(self._system_mode, "unknown") - - response = super().state - - response[ATTR_SYS_MODE] = ( - f"[{self._system_mode}]/{system_mode}" - if self.hvac_mode is not None - else None - ) - response[ATTR_OCCUPANCY] = self._occupancy - response[ATTR_OCCP_COOL_SETPT] = self._occupied_cooling_setpoint - response[ATTR_OCCP_HEAT_SETPT] = self._occupied_heating_setpoint - response[ATTR_PI_HEATING_DEMAND] = self._pi_heating_demand - response[ATTR_PI_COOLING_DEMAND] = self._pi_cooling_demand - response[ATTR_UNOCCP_COOL_SETPT] = self._unoccupied_cooling_setpoint - response[ATTR_UNOCCP_HEAT_SETPT] = self._unoccupied_heating_setpoint - return response + return f"[{self._system_mode}]/{system_mode}" @property def current_temperature(self): @@ -1096,21 +1099,14 @@ def current_temperature(self): return None @property - def state(self) -> dict[str, Any]: - """Get the state of the lock.""" + def system_mode_string(self) -> str | None: + """Return a formatted system mode string.""" + if self.hvac_mode is None: + return None system_mode = ZehnderThermostat.ZEHNDER_SYSTEM_MODE_2_HVAC.get( self._system_mode, "unknown" ) - - response = super().state - - response[ATTR_SYS_MODE] = ( - f"[{self._system_mode}]/{system_mode}" - if self.hvac_mode is not None - else None - ) - - return response + return f"[{self._system_mode}]/{system_mode}" @property def hvac_mode(self) -> HVACMode | None: diff --git a/zha/application/platforms/cover/__init__.py b/zha/application/platforms/cover/__init__.py index 8f6385e2b..d1dfd47f0 100644 --- a/zha/application/platforms/cover/__init__.py +++ b/zha/application/platforms/cover/__init__.py @@ -5,6 +5,7 @@ from abc import ABC, abstractmethod import asyncio from collections import deque +import dataclasses import functools import logging from typing import TYPE_CHECKING, Any @@ -31,6 +32,7 @@ from zha.application.helpers import safe_read from zha.application.platforms import ( AttrConfig, + BaseEntityState, ClusterConfig, ClusterMatch, PlatformEntity, @@ -38,8 +40,6 @@ register_entity, ) from zha.application.platforms.cover.const import ( - ATTR_CURRENT_POSITION, - ATTR_CURRENT_TILT_POSITION, POSITION_CLOSED, POSITION_OPEN, WCT, @@ -65,6 +65,19 @@ TILT_MOVEMENT_TIMEOUT_RANGE: float = 30 +@dataclasses.dataclass(frozen=True, kw_only=True) +class CoverEntityState(BaseEntityState): + """State for cover entities.""" + + current_position: int | None + current_tilt_position: int | None + state: CoverState | None + is_opening: bool | None + is_closing: bool | None + is_closed: bool | None + supported_features: CoverEntityFeature + + class BaseCover(PlatformEntity, ABC): """Abstract base class for ZHA covers.""" @@ -290,21 +303,18 @@ def restore_external_state_attributes( ) @property - def state(self) -> dict[str, Any]: + def state(self) -> CoverEntityState: """Get the state of the cover.""" - response = super().state - response.update( - { - ATTR_CURRENT_POSITION: self.current_cover_position, - ATTR_CURRENT_TILT_POSITION: self.current_cover_tilt_position, - "state": self._state, - "is_opening": self.is_opening, - "is_closing": self.is_closing, - "is_closed": self.is_closed, - "supported_features": self.supported_features, - } + return CoverEntityState( + **super().state.__dict__, + current_position=self.current_cover_position, + current_tilt_position=self.current_cover_tilt_position, + state=self._state, + is_opening=self.is_opening, + is_closing=self.is_closing, + is_closed=self.is_closed, + supported_features=self.supported_features, ) - return response @property def is_closed(self) -> bool | None: @@ -883,21 +893,22 @@ def on_add(self) -> None: ) @property - def state(self) -> dict[str, Any]: + def state(self) -> CoverEntityState: """Get the state of the cover.""" if (closed := self.is_closed) is None: state = None else: state = CoverState.CLOSED if closed else CoverState.OPEN - response = super().state - response.update( - { - ATTR_CURRENT_POSITION: self.current_cover_position, - "is_closed": self.is_closed, - "state": state, - } + return CoverEntityState( + **super().state.__dict__, + current_position=self.current_cover_position, + current_tilt_position=self.current_cover_tilt_position, + state=state, + is_opening=self.is_opening, + is_closing=self.is_closing, + is_closed=self.is_closed, + supported_features=self.supported_features, ) - return response @property def current_cover_position(self) -> int | None: diff --git a/zha/application/platforms/device_tracker.py b/zha/application/platforms/device_tracker.py index 0328195e0..f283f621e 100644 --- a/zha/application/platforms/device_tracker.py +++ b/zha/application/platforms/device_tracker.py @@ -3,10 +3,11 @@ from __future__ import annotations from abc import ABC, abstractmethod +import dataclasses from enum import StrEnum import functools import time -from typing import TYPE_CHECKING, Any +from typing import TYPE_CHECKING from zigpy.profiles import zha from zigpy.zcl import ( @@ -21,6 +22,7 @@ from zha.application import Platform from zha.application.platforms import ( AttrConfig, + BaseEntityState, ClusterConfig, ClusterMatch, PlatformEntity, @@ -48,22 +50,27 @@ class SourceType(StrEnum): BLUETOOTH_LE = "bluetooth_le" +@dataclasses.dataclass(frozen=True, kw_only=True) +class DeviceTrackerState(BaseEntityState): + """State for device tracker entities.""" + + connected: bool + battery_level: float | None + + class BaseDeviceTracker(PlatformEntity, ABC): """Abstract base class for ZHA device tracker entities.""" PLATFORM = Platform.DEVICE_TRACKER @property - def state(self) -> dict[str, Any]: + def state(self) -> DeviceTrackerState: """Return the state of the device.""" - response = super().state - response.update( - { - "connected": self.is_connected, - "battery_level": self.battery_level, - } + return DeviceTrackerState( + **super().state.__dict__, + connected=self.is_connected, + battery_level=self.battery_level, ) - return response @property @abstractmethod diff --git a/zha/application/platforms/fan/__init__.py b/zha/application/platforms/fan/__init__.py index 5f60e4663..5d8f8e712 100644 --- a/zha/application/platforms/fan/__init__.py +++ b/zha/application/platforms/fan/__init__.py @@ -6,7 +6,7 @@ from dataclasses import dataclass import functools import math -from typing import TYPE_CHECKING, Any +from typing import TYPE_CHECKING, Any, cast from zigpy.zcl import ( AttributeReadEvent, @@ -22,7 +22,7 @@ from zha.application.platforms import ( AttrConfig, BaseEntity, - BaseEntityInfo, + BaseEntityState, ClusterConfig, ClusterMatch, GroupEntity, @@ -33,8 +33,6 @@ ) from zha.application.platforms.const import IKEA_AIR_PURIFIER_CLUSTER from zha.application.platforms.fan.const import ( - ATTR_PERCENTAGE, - ATTR_PRESET_MODE, DEFAULT_ON_PERCENTAGE, LEGACY_SPEED_LIST, OFF_SPEED_VALUES, @@ -61,9 +59,13 @@ @dataclass(frozen=True, kw_only=True) -class FanEntityInfo(BaseEntityInfo): - """Fan entity info.""" +class FanState(BaseEntityState): + """State for fan entities.""" + preset_mode: str | None + percentage: int | None + is_on: bool + speed: str | None preset_modes: list[str] supported_features: FanEntityFeature speed_count: int @@ -155,31 +157,21 @@ def speed(self) -> str | None: return None return self.percentage_to_speed(percentage) - @functools.cached_property - def info_object(self) -> FanEntityInfo: - """Return a representation of the binary sensor.""" - return FanEntityInfo( - **super().info_object.__dict__, + @property + def state(self) -> FanState: + """Return the state of the fan.""" + return FanState( + **super().state.__dict__, + preset_mode=self.preset_mode, + percentage=self.percentage, + is_on=self.is_on, + speed=self.speed, preset_modes=self.preset_modes, supported_features=self.supported_features, speed_count=self.speed_count, speed_list=self.speed_list, ) - @property - def state(self) -> dict[str, Any]: - """Return the state of the fan.""" - response = super().state - response.update( - { - "preset_mode": self.preset_mode, - "percentage": self.percentage, - "is_on": self.is_on, - "speed": self.speed, - } - ) - return response - async def async_turn_on( self, speed: str | None = None, @@ -344,10 +336,8 @@ def __init__(self, group: Group): """Initialize a fan group.""" self._cluster = group.endpoint[hvac.Fan.cluster_id] super().__init__(group) - self._percentage = None - self._preset_mode = None - if hasattr(self, "info_object"): - delattr(self, "info_object") + self._percentage: int | None = None + self._preset_mode: str | None = None self.update() @property @@ -369,23 +359,19 @@ def update(self, _: Any = None) -> None: """Query all members and determine the fan group state.""" self.debug("Updating fan group entity state") platform_entities = self._group.get_platform_entities(self.PLATFORM) - all_states = [entity.state for entity in platform_entities] + all_states = [cast(FanState, entity.state) for entity in platform_entities] self.debug( "All platform entity states for group entity members: %s", all_states ) - percentage_states: list[dict] = [ - state for state in all_states if state.get(ATTR_PERCENTAGE) - ] - preset_mode_states: list[dict] = [ - state for state in all_states if state.get(ATTR_PRESET_MODE) - ] + percentage_states = [state for state in all_states if state.percentage] + preset_mode_states = [state for state in all_states if state.preset_mode] if percentage_states: - self._percentage = percentage_states[0][ATTR_PERCENTAGE] + self._percentage = percentage_states[0].percentage self._preset_mode = None elif preset_mode_states: - self._preset_mode = preset_mode_states[0][ATTR_PRESET_MODE] + self._preset_mode = preset_mode_states[0].preset_mode self._percentage = None else: self._percentage = None diff --git a/zha/application/platforms/helpers.py b/zha/application/platforms/helpers.py index 2872d8339..ed98441b4 100644 --- a/zha/application/platforms/helpers.py +++ b/zha/application/platforms/helpers.py @@ -7,11 +7,13 @@ import logging from typing import Any +from zha.application.platforms import BaseEntityState -def find_state_attributes(states: list[dict], key: str) -> Iterator[Any]: + +def find_state_attributes(states: list[BaseEntityState], key: str) -> Iterator[Any]: """Find attributes with matching key from states.""" for state in states: - if (value := state.get(key)) is not None: + if (value := getattr(state, key, None)) is not None: yield value @@ -26,7 +28,7 @@ def mean_tuple(*args: Any) -> tuple: def reduce_attribute( - states: list[dict], + states: list[BaseEntityState], key: str, default: Any | None = None, reduce: Callable[..., Any] = mean_int, diff --git a/zha/application/platforms/light/__init__.py b/zha/application/platforms/light/__init__.py index c6f1249f4..1f637fac7 100644 --- a/zha/application/platforms/light/__init__.py +++ b/zha/application/platforms/light/__init__.py @@ -9,8 +9,6 @@ from collections import Counter import contextlib import dataclasses -from dataclasses import dataclass -import functools import itertools import logging from typing import TYPE_CHECKING, Any @@ -32,7 +30,7 @@ DEFAULT_UPDATE_GROUP_FROM_CHILD_DELAY, AttrConfig, BaseEntity, - BaseEntityInfo, + BaseEntityState, ClusterConfig, ClusterMatch, GroupEntity, @@ -88,24 +86,29 @@ _LOGGER = logging.getLogger(__name__) -@dataclass(frozen=True, kw_only=True) -class LightEntityInfo(BaseEntityInfo): - """Light entity info.""" +@dataclasses.dataclass(frozen=True, kw_only=True) +class LightState(BaseEntityState): + """State for light entities.""" - effect_list: list[str] | None = dataclasses.field(default=None) + on: bool | None + brightness: int | None + xy_color: tuple[float, float] | None + color_temp: int | None + effect_list: list[str] | None + effect: str supported_features: LightEntityFeature - min_mireds: int - max_mireds: int + color_mode: ColorMode | None + supported_color_modes: set[ColorMode] + off_with_transition: bool + off_brightness: int | None + min_mireds: int | None + max_mireds: int | None class BaseLight(BaseEntity, ABC): """Operations common to all light entities.""" PLATFORM = Platform.LIGHT - _attr_extra_state_attribute_names: set[str] = { - "off_with_transition", - "off_brightness", - } _attr_primary_weight = 10 def __init__(self, *args, **kwargs): @@ -126,29 +129,21 @@ def __init__(self, *args, **kwargs): self._supported_color_modes: set[ColorMode] = set() @property - def state(self) -> dict[str, Any]: + def state(self) -> LightState: """Return the state of the light.""" - response = super().state - response["on"] = self.is_on - response["brightness"] = self.brightness - response["xy_color"] = self.xy_color - response["color_temp"] = self.color_temp - response["effect_list"] = self.effect_list - response["effect"] = self.effect - response["supported_features"] = self.supported_features - response["color_mode"] = self.color_mode - response["supported_color_modes"] = self.supported_color_modes - response["off_with_transition"] = self._off_with_transition - response["off_brightness"] = self._off_brightness - return response - - @functools.cached_property - def info_object(self) -> LightEntityInfo: - """Return a representation of the select.""" - return LightEntityInfo( - **super().info_object.__dict__, + return LightState( + **super().state.__dict__, + on=self.is_on, + brightness=self.brightness, + xy_color=self.xy_color, + color_temp=self.color_temp, effect_list=self.effect_list, + effect=self.effect, supported_features=self.supported_features, + color_mode=self.color_mode, + supported_color_modes=self.supported_color_modes, + off_with_transition=self._off_with_transition, + off_brightness=self._off_brightness, min_mireds=self.min_mireds, max_mireds=self.max_mireds, ) @@ -357,12 +352,12 @@ def _gateway(self) -> Gateway: """Return the gateway.""" @property - def state(self) -> dict[str, Any]: + def state(self) -> LightState: """Return the state of the light.""" - response = super().state - # XXX: for backwards compatibility - response["supported_color_modes"] = self._internal_supported_color_modes - return response + return dataclasses.replace( + super().state, + supported_color_modes=self._internal_supported_color_modes, + ) def recompute_capabilities(self) -> None: """Recompute supported features and color modes.""" @@ -1431,8 +1426,6 @@ def recompute_capabilities(self) -> None: self._color_mode = ColorMode.UNKNOWN self._internal_supported_color_modes = {ColorMode.ONOFF} - if hasattr(self, "info_object"): - delattr(self, "info_object") self.update() async def on_remove(self) -> None: @@ -1476,7 +1469,7 @@ def update(self, _: Any = None) -> None: self.debug( "All platform entity states for group entity members: %s", all_states ) - on_states = [state for state in states if state["on"]] + on_states = [state for state in states if state.on] self._state = len(on_states) > 0 diff --git a/zha/application/platforms/lock/__init__.py b/zha/application/platforms/lock/__init__.py index 563e51b99..efaa710c0 100644 --- a/zha/application/platforms/lock/__init__.py +++ b/zha/application/platforms/lock/__init__.py @@ -3,7 +3,8 @@ from __future__ import annotations from abc import ABC, abstractmethod -from typing import TYPE_CHECKING, Any, Literal +import dataclasses +from typing import TYPE_CHECKING, Literal from zigpy.zcl import ( AttributeReadEvent, @@ -19,6 +20,7 @@ from zha.application.helpers import safe_read from zha.application.platforms import ( AttrConfig, + BaseEntityState, ClusterConfig, ClusterMatch, PlatformEntity, @@ -35,17 +37,25 @@ from zha.zigbee.endpoint import Endpoint +@dataclasses.dataclass(frozen=True, kw_only=True) +class LockState(BaseEntityState): + """State for lock entities.""" + + is_locked: bool + + class BaseLock(PlatformEntity, ABC): """Abstract base class for ZHA lock entities.""" PLATFORM = Platform.LOCK @property - def state(self) -> dict[str, Any]: + def state(self) -> LockState: """Get the state of the lock.""" - response = super().state - response["is_locked"] = self.is_locked - return response + return LockState( + **super().state.__dict__, + is_locked=self.is_locked, + ) @property @abstractmethod diff --git a/zha/application/platforms/number/__init__.py b/zha/application/platforms/number/__init__.py index 40f4f8e84..88767f386 100644 --- a/zha/application/platforms/number/__init__.py +++ b/zha/application/platforms/number/__init__.py @@ -24,7 +24,7 @@ from zha.application.helpers import safe_read, write_attributes_safe from zha.application.platforms import ( AttrConfig, - BaseEntityInfo, + BaseEntityState, ClusterConfig, ClusterMatch, EntityCategory, @@ -53,9 +53,10 @@ @dataclass(frozen=True, kw_only=True) -class NumberEntityInfo(BaseEntityInfo): - """Number entity info.""" +class NumberState(BaseEntityState): + """State for number entities.""" + state: float | None mode: NumberMode native_max_value: float native_min_value: float @@ -82,11 +83,12 @@ class BaseNumber(PlatformEntity, ABC): def native_value(self) -> float | None: """Return the current value.""" - @functools.cached_property - def info_object(self) -> NumberEntityInfo: - """Return a representation of the number entity.""" - return NumberEntityInfo( - **super().info_object.__dict__, + @property + def state(self) -> NumberState: + """Return the state of the entity.""" + return NumberState( + **super().state.__dict__, + state=self.native_value, mode=self.mode, native_max_value=self.native_max_value, native_min_value=self.native_min_value, @@ -94,13 +96,6 @@ def info_object(self) -> NumberEntityInfo: native_unit_of_measurement=self.native_unit_of_measurement, ) - @property - def state(self) -> dict[str, Any]: - """Return the state of the entity.""" - response = super().state - response["state"] = self.native_value - return response - @property def native_min_value(self) -> float: """Return the minimum value.""" @@ -331,13 +326,6 @@ def on_add(self) -> None: ) ) - @property - def state(self) -> dict[str, Any]: - """Return the state of the entity.""" - response = super().state - response["state"] = self.native_value - return response - @property def native_value(self) -> float | None: """Return the current value.""" diff --git a/zha/application/platforms/select.py b/zha/application/platforms/select.py index 5131bf6c6..efaef26c8 100644 --- a/zha/application/platforms/select.py +++ b/zha/application/platforms/select.py @@ -5,7 +5,6 @@ from abc import ABC, abstractmethod from dataclasses import dataclass from enum import Enum -import functools import logging from typing import TYPE_CHECKING, Any, cast @@ -33,7 +32,7 @@ from zha.application.platforms import ( AttrConfig, BaseEntity, - BaseEntityInfo, + BaseEntityState, ClusterConfig, ClusterMatch, EntityCategory, @@ -70,8 +69,15 @@ @dataclass(frozen=True, kw_only=True) -class EnumSelectInfo(BaseEntityInfo): - """Enum select entity info.""" +class SelectState(BaseEntityState): + """State for select entities.""" + + state: str | None + + +@dataclass(frozen=True, kw_only=True) +class EnumSelectState(SelectState): + """State for enum select entities.""" enum: str options: list[str] @@ -90,11 +96,12 @@ def options(self) -> list[str]: return self._attr_options @property - def state(self) -> dict[str, Any]: + def state(self) -> SelectState: """Return the state of the select.""" - response = super().state - response["state"] = self.current_option - return response + return SelectState( + **super().state.__dict__, + state=self.current_option, + ) @property @abstractmethod @@ -132,11 +139,11 @@ def __init__( self._attr_options = list(self._option_to_member) super().__init__(endpoint=endpoint, device=device, **kwargs) - @functools.cached_property - def info_object(self) -> EnumSelectInfo: - """Return a representation of the select.""" - return EnumSelectInfo( - **super().info_object.__dict__, + @property + def state(self) -> EnumSelectState: + """Return the state of the select.""" + return EnumSelectState( + **super().state.__dict__, enum=self._enum.__name__, options=self.options, ) @@ -295,11 +302,11 @@ def _is_supported(self) -> bool: return super()._is_supported() - @functools.cached_property - def info_object(self) -> EnumSelectInfo: - """Return a representation of the select.""" - return EnumSelectInfo( - **super().info_object.__dict__, + @property + def state(self) -> EnumSelectState: + """Return the state of the select.""" + return EnumSelectState( + **super().state.__dict__, enum=self._enum.__name__, options=self.options, ) diff --git a/zha/application/platforms/sensor/__init__.py b/zha/application/platforms/sensor/__init__.py index 5ac490b1b..9842158bc 100644 --- a/zha/application/platforms/sensor/__init__.py +++ b/zha/application/platforms/sensor/__init__.py @@ -60,7 +60,7 @@ from zha.application.platforms import ( AttrConfig, BaseEntity, - BaseEntityInfo, + BaseEntityState, BaseIdentifiers, ClusterConfig, ClusterMatch, @@ -164,22 +164,20 @@ @dataclass(frozen=True, kw_only=True) -class SensorEntityInfo(BaseEntityInfo): - """Sensor entity info.""" +class SensorState(BaseEntityState): + """State for sensor entities.""" + state: date | datetime | str | int | float | None suggested_display_precision: int | None = None unit: str | None = None - device_class: SensorDeviceClass | None = None - state_class: SensorStateClass | None = None @dataclass(frozen=True, kw_only=True) -class DeviceCounterEntityInfo(BaseEntityInfo): - """Device counter entity info.""" +class DeviceCounterSensorState(BaseEntityState): + """State for device counter sensor entities.""" - device_ieee: str + state: int | None suggested_display_precision: int - available: bool counter: str counter_value: int counter_groups: str @@ -213,22 +211,16 @@ def native_unit_of_measurement(self) -> str | None: """Return the unit of measurement.""" return self._attr_native_unit_of_measurement - @functools.cached_property - def info_object(self) -> SensorEntityInfo: - """Return a representation of the sensor.""" - return SensorEntityInfo( - **super().info_object.__dict__, + @property + def state(self) -> SensorState: + """Return the state for this sensor.""" + return SensorState( + **super().state.__dict__, + state=self.native_value, suggested_display_precision=self.suggested_display_precision, unit=self.native_unit_of_measurement, ) - @property - def state(self) -> dict: - """Return the state for this sensor.""" - response = super().state - response["state"] = self.native_value - return response - @property @abstractmethod def native_value(self) -> date | datetime | str | int | float | None: @@ -344,6 +336,8 @@ def _validate_state_class( def native_value(self) -> date | datetime | str | int | float | None: """Return the state of the entity.""" assert self._attribute_name is not None + if self._attribute_name not in self._cluster.attributes_by_name: + return None raw_state = self._cluster.get(self._attribute_name) if raw_state is None: return None @@ -364,9 +358,8 @@ def handle_attribute_updated( if ( event.attribute_name == self._attribute_name or ( - hasattr(self, "_attr_extra_state_attribute_names") - and event.attribute_name - in getattr(self, "_attr_extra_state_attribute_names") + self._attr_extra_state_attribute_names is not None + and event.attribute_name in self._attr_extra_state_attribute_names ) or self._attribute_name is None ): @@ -471,11 +464,12 @@ def identifiers(self) -> DeviceCounterSensorIdentifiers: **super().identifiers.__dict__, device_ieee=str(self._device.ieee) ) - @functools.cached_property - def info_object(self) -> DeviceCounterEntityInfo: - """Return a representation of the platform entity.""" - return DeviceCounterEntityInfo( - **super().info_object.__dict__, + @property + def state(self) -> DeviceCounterSensorState: + """Return the state for this sensor.""" + return DeviceCounterSensorState( + **super().state.__dict__, + state=self._zigpy_counter.value, suggested_display_precision=self._attr_suggested_display_precision, counter=self._zigpy_counter.name, counter_value=self._zigpy_counter.value, @@ -483,13 +477,6 @@ def info_object(self) -> DeviceCounterEntityInfo: counter_group=self._zigpy_counter_group, ) - @property - def state(self) -> dict[str, Any]: - """Return the state for this sensor.""" - response = super().state - response["state"] = self._zigpy_counter.value - return response - @property def native_value(self) -> int | None: """Return the state of the entity.""" @@ -722,6 +709,15 @@ def _is_supported(self) -> bool: return super()._is_supported() +@dataclass(frozen=True, kw_only=True) +class BatterySensorState(SensorState): + """State for battery sensor entities.""" + + battery_size: str | None = None + battery_quantity: int | None = None + battery_voltage: float | None = None + + @register_entity(PowerConfiguration.cluster_id) class Battery(Sensor): """Battery sensor of power configuration cluster.""" @@ -782,19 +778,35 @@ def formatter(value: int) -> float | None: # pylint: disable=arguments-differ return value / 2 @property - def state(self) -> dict[str, Any]: + def state(self) -> BatterySensorState: """Return the state for battery sensors.""" - response = super().state - battery_size = self._cluster.get("battery_size") - if battery_size is not None: - response["battery_size"] = BATTERY_SIZES.get(battery_size, "Unknown") + battery_size_raw = self._cluster.get("battery_size") + battery_size = ( + BATTERY_SIZES.get(battery_size_raw, "Unknown") + if battery_size_raw is not None + else None + ) battery_quantity = self._cluster.get("battery_quantity") - if battery_quantity is not None: - response["battery_quantity"] = battery_quantity - battery_voltage = self._cluster.get("battery_voltage") - if battery_voltage is not None: - response["battery_voltage"] = round(battery_voltage / 10, 2) - return response + battery_voltage_raw = self._cluster.get("battery_voltage") + battery_voltage = ( + round(battery_voltage_raw / 10, 2) + if battery_voltage_raw is not None + else None + ) + return BatterySensorState( + **super().state.__dict__, + battery_size=battery_size, + battery_quantity=battery_quantity, + battery_voltage=battery_voltage, + ) + + +@dataclass(frozen=True, kw_only=True) +class ElectricalMeasurementState(SensorState): + """State for electrical measurement sensor entities.""" + + measurement_type: str | None = None + max_value: float | int | None = None class BaseElectricalMeasurement(Sensor): @@ -837,20 +849,18 @@ def _measurement_type(self) -> str | None: ) @property - def state(self) -> dict[str, Any]: + def state(self) -> ElectricalMeasurementState: """Return the state for this sensor.""" - response = super().state - meas_type = self._measurement_type - if meas_type is not None: - response["measurement_type"] = meas_type - - if (max_attr_name := self._attr_max_attribute_name) is None: - return response - - if (max_v := self._cluster.get(max_attr_name)) is not None: - response[max_attr_name] = self.formatter(max_v) - - return response + max_value = None + if (max_attr_name := self._attr_max_attribute_name) is not None: + max_v = self._cluster.get(max_attr_name) + if max_v is not None: + max_value = self.formatter(max_v) + return ElectricalMeasurementState( + **super().state.__dict__, + measurement_type=self._measurement_type, + max_value=max_value, + ) @property def _multiplier(self) -> int | float | None: @@ -2087,6 +2097,15 @@ class SmartEnergyMeteringEntityDescription: device_class: SensorDeviceClass | None = None +@dataclass(frozen=True, kw_only=True) +class SmartEnergySensorState(SensorState): + """State for smart energy metering sensor entities.""" + + device_type: int | None = None + status: str | None = None + zcl_unit_of_measurement: int | None = None + + @register_entity(Metering.cluster_id) class MeteringPoller(AggregatedClusterPoller): """Polls the Metering cluster for models known to need polling. @@ -2323,20 +2342,22 @@ def recompute_capabilities(self) -> None: ) @property - def state(self) -> dict[str, Any]: + def state(self) -> SmartEnergySensorState: """Return state for this sensor.""" - response = super().state - if self._device_type is not None: - response["device_type"] = self._device_type - if (status := self._metering_status) is not None: - if isinstance(status, enum.IntFlag): - response["status"] = str( - status.name if status.name is not None else status.value + status = None + if (raw_status := self._metering_status) is not None: + if isinstance(raw_status, enum.IntFlag): + status = str( + raw_status.name if raw_status.name is not None else raw_status.value ) else: - response["status"] = str(status)[len(status.__class__.__name__) + 1 :] - response["zcl_unit_of_measurement"] = self._unit_of_measurement - return response + status = str(raw_status)[len(raw_status.__class__.__name__) + 1 :] + return SmartEnergySensorState( + **super().state.__dict__, + device_type=self._device_type, + status=status, + zcl_unit_of_measurement=self._unit_of_measurement, + ) @property def _multiplier(self) -> int | float | None: @@ -3092,16 +3113,6 @@ def _running_mode(self) -> int | None: def _system_mode(self) -> int | None: return self._cluster.get(Thermostat.AttributeDefs.system_mode.name) - @property - def state(self) -> dict: - """Return the current HVAC action.""" - response = super().state - if self._pi_heating_demand is None and self._pi_cooling_demand is None: - response["state"] = self._rm_rs_action - else: - response["state"] = self._pi_demand_action - return response - @property def native_value(self) -> str | None: """Return the current HVAC action.""" @@ -3242,13 +3253,6 @@ def is_supported_in_list(self, entities: list[BaseEntity]) -> bool: cls = type(self) return not any(type(entity) is cls for entity in entities if entity is not self) - @property - def state(self) -> dict: - """Return the state of the sensor.""" - response = super().state - response["state"] = self.device.device.rssi - return response - @property def native_value(self) -> str | int | float | None: """Return the state of the entity.""" @@ -3292,13 +3296,6 @@ class LQISensor(RSSISensor): server_clusters=frozenset({Basic.cluster_id}), ) - @property - def state(self) -> dict: - """Return the state of the sensor.""" - response = super().state - response["state"] = self.device.device.lqi - return response - @property def native_value(self) -> str | int | float | None: """Return the state of the entity.""" @@ -3620,6 +3617,13 @@ class AqaraCurtainHookStateSensor(EnumSensor): ) +@dataclass(frozen=True, kw_only=True) +class BitmapSensorState(SensorState): + """State for bitmap sensor entities.""" + + bit_states: dict[str, bool] + + class BitMapSensor(Sensor): """A sensor with only state attributes. @@ -3641,17 +3645,19 @@ def __init__( } @property - def state(self) -> dict[str, Any]: + def state(self) -> BitmapSensorState: """Return the state for this sensor.""" - response = super().state - response["state"] = self.native_value value = self._cluster.get(self._attribute_name) + bit_states = {} for bit in list(self._bitmap): if value is None: - response[bit.name] = False + bit_states[bit.name] = False else: - response[bit.name] = bit in self._bitmap(value) - return response + bit_states[bit.name] = bit in self._bitmap(value) + return BitmapSensorState( + **super().state.__dict__, + bit_states=bit_states, + ) def formatter(self, _value: int) -> str: """Summary of all attributes.""" diff --git a/zha/application/platforms/siren.py b/zha/application/platforms/siren.py index 4a3688681..a50eef0d7 100644 --- a/zha/application/platforms/siren.py +++ b/zha/application/platforms/siren.py @@ -7,7 +7,6 @@ import contextlib from dataclasses import dataclass from enum import Enum, IntFlag -import functools from typing import TYPE_CHECKING, Any, Final from zigpy.profiles import zha @@ -24,7 +23,7 @@ from zha.application import Platform from zha.application.platforms import ( - BaseEntityInfo, + BaseEntityState, ClusterConfig, ClusterMatch, PlatformEntity, @@ -57,9 +56,10 @@ class SirenEntityFeature(IntFlag): @dataclass(frozen=True, kw_only=True) -class SirenEntityInfo(BaseEntityInfo): - """Siren entity info.""" +class SirenState(BaseEntityState): + """State for siren entities.""" + state: bool available_tones: dict[int, str] supported_features: SirenEntityFeature @@ -74,11 +74,14 @@ class BaseSiren(PlatformEntity, ABC): _attr_supported_features: SirenEntityFeature @property - def state(self) -> dict[str, Any]: + def state(self) -> SirenState: """Get the state of the siren.""" - response = super().state - response["state"] = self.is_on - return response + return SirenState( + **super().state.__dict__, + state=self.is_on, + available_tones=self.available_tones, + supported_features=self.supported_features, + ) @property def is_on(self) -> bool: @@ -95,15 +98,6 @@ def supported_features(self) -> SirenEntityFeature: """Return supported features.""" return self._attr_supported_features - @functools.cached_property - def info_object(self) -> SirenEntityInfo: - """Return representation of the siren.""" - return SirenEntityInfo( - **super().info_object.__dict__, - available_tones=self.available_tones, - supported_features=self.supported_features, - ) - @abstractmethod async def async_turn_on( self, diff --git a/zha/application/platforms/switch.py b/zha/application/platforms/switch.py index a6474a2ce..fc7016214 100644 --- a/zha/application/platforms/switch.py +++ b/zha/application/platforms/switch.py @@ -4,9 +4,8 @@ from abc import ABC, abstractmethod from dataclasses import dataclass -import functools import logging -from typing import TYPE_CHECKING, Any +from typing import TYPE_CHECKING, Any, cast from zigpy import types as t from zigpy.profiles import zha, zll @@ -28,7 +27,7 @@ from zha.application.platforms import ( AttrConfig, BaseEntity, - BaseEntityInfo, + BaseEntityState, ClusterConfig, ClusterMatch, EntityCategory, @@ -58,9 +57,17 @@ @dataclass(frozen=True, kw_only=True) -class ConfigurableAttributeSwitchInfo(BaseEntityInfo): - """Switch configuration entity info.""" +class SwitchState(BaseEntityState): + """State for switch entities.""" + state: bool + + +@dataclass(frozen=True, kw_only=True) +class ConfigurableAttributeSwitchState(SwitchState): + """State for configurable attribute switch entities.""" + + inverted: bool attribute_name: str invert_attribute_name: str | None force_inverted: bool @@ -74,11 +81,12 @@ class BaseSwitch(BaseEntity, ABC): PLATFORM = Platform.SWITCH @property - def state(self) -> dict[str, Any]: + def state(self) -> SwitchState: """Return the state of the switch.""" - response = super().state - response["state"] = self.is_on - return response + return SwitchState( + **super().state.__dict__, + state=self.is_on, + ) @property @abstractmethod @@ -95,7 +103,7 @@ async def async_turn_off(self) -> None: @register_entity(OnOff.cluster_id) -class Switch(PlatformEntity, BaseSwitch): +class Switch(PlatformEntity, BaseSwitch): # type: ignore[misc] """ZHA switch.""" _attr_translation_key = "switch" @@ -236,7 +244,7 @@ async def async_update(self) -> None: @register_entity(BinaryOutput.cluster_id) -class BinaryOutputSwitch(PlatformEntity, BaseSwitch): +class BinaryOutputSwitch(PlatformEntity, BaseSwitch): # type: ignore[misc] """BinaryOutputCluster switch.""" _attr_primary_weight = 10 @@ -335,7 +343,7 @@ async def async_update(self) -> None: @register_group_entity -class SwitchGroup(GroupEntity, BaseSwitch): +class SwitchGroup(GroupEntity, BaseSwitch): # type: ignore[misc] """Representation of a switch group.""" _attr_primary_weight = 10 @@ -345,8 +353,6 @@ def __init__(self, group: Group): super().__init__(group) self._state: bool self._cluster = group.zigpy_group.endpoint[OnOff.cluster_id] - if hasattr(self, "info_object"): - delattr(self, "info_object") self.update() @property @@ -374,11 +380,11 @@ def update(self, _: Any | None = None) -> None: """Query all members and determine the light group state.""" self.debug("Updating switch group entity state") platform_entities = self._group.get_platform_entities(self.PLATFORM) - all_states = [entity.state for entity in platform_entities] + all_states = [cast(SwitchState, entity.state) for entity in platform_entities] self.debug( "All platform entity states for group entity members: %s", all_states ) - on_states = [state for state in all_states if state["state"]] + on_states = [state for state in all_states if state.state] self._state = len(on_states) > 0 @@ -477,11 +483,13 @@ def _is_supported(self) -> bool: return super()._is_supported() - @functools.cached_property - def info_object(self) -> ConfigurableAttributeSwitchInfo: - """Return representation of the switch configuration entity.""" - return ConfigurableAttributeSwitchInfo( - **super().info_object.__dict__, + @property + def state(self) -> ConfigurableAttributeSwitchState: + """Return the state of the switch.""" + return ConfigurableAttributeSwitchState( + **super().state.__dict__, + state=self.is_on, + inverted=self.inverted, attribute_name=self._attribute_name, invert_attribute_name=self._inverter_attribute_name, force_inverted=self._force_inverted, @@ -489,14 +497,6 @@ def info_object(self) -> ConfigurableAttributeSwitchInfo: on_value=self._on_value, ) - @property - def state(self) -> dict[str, Any]: - """Return the state of the switch.""" - response = super().state - response["state"] = self.is_on - response["inverted"] = self.inverted - return response - @property def inverted(self) -> bool: """Return True if the switch is inverted.""" diff --git a/zha/application/platforms/update.py b/zha/application/platforms/update.py index cc7ce0a92..4d21933bb 100644 --- a/zha/application/platforms/update.py +++ b/zha/application/platforms/update.py @@ -5,7 +5,6 @@ from abc import ABC from dataclasses import dataclass from enum import IntFlag, StrEnum -import functools import itertools import logging from typing import TYPE_CHECKING, Any, Final @@ -24,7 +23,7 @@ from zha.application import Platform from zha.application.platforms import ( AttrConfig, - BaseEntityInfo, + BaseEntityState, ClusterConfig, ClusterMatch, EntityCategory, @@ -68,11 +67,17 @@ class UpdateEntityFeature(IntFlag): @dataclass(frozen=True, kw_only=True) -class UpdateEntityInfo(BaseEntityInfo): - """Update entity info.""" - +class UpdateState(BaseEntityState): + """State for update entities.""" + + installed_version: str | None + in_progress: bool | int + update_percentage: int | None + latest_version: str | None + release_summary: str | None + release_notes: str | None + release_url: str | None supported_features: UpdateEntityFeature - device_class: UpdateDeviceClass class BaseFirmwareUpdateEntity(PlatformEntity, ABC): @@ -95,29 +100,24 @@ class BaseFirmwareUpdateEntity(PlatformEntity, ABC): _attr_release_notes: str | None = None _attr_release_url: str | None = None - @functools.cached_property - def info_object(self) -> UpdateEntityInfo: - """Return a representation of the entity.""" - return UpdateEntityInfo( - **super().info_object.__dict__, - supported_features=self.supported_features, - ) - @property - def state(self) -> dict[str, Any]: + def state(self) -> UpdateState: """Get the state for the entity.""" - response = super().state - if (release_summary := self.release_summary) is not None: + release_summary = self.release_summary + if release_summary is not None: release_summary = release_summary[:255] - response[ATTR_INSTALLED_VERSION] = self.installed_version - response[ATTR_IN_PROGRESS] = self.in_progress - response[ATTR_UPDATE_PERCENTAGE] = self.update_percentage - response[ATTR_LATEST_VERSION] = self.latest_version - response[ATTR_RELEASE_SUMMARY] = release_summary - response[ATTR_RELEASE_NOTES] = self.release_notes - response[ATTR_RELEASE_URL] = self.release_url - return response + return UpdateState( + **super().state.__dict__, + installed_version=self.installed_version, + in_progress=self.in_progress, + update_percentage=self.update_percentage, + latest_version=self.latest_version, + release_summary=release_summary, + release_notes=self.release_notes, + release_url=self.release_url, + supported_features=self.supported_features, + ) @property def installed_version(self) -> str | None: diff --git a/zha/event.py b/zha/event.py index 6a31f775b..daa15daae 100644 --- a/zha/event.py +++ b/zha/event.py @@ -3,7 +3,9 @@ from __future__ import annotations import asyncio -from collections.abc import Callable +from collections.abc import Callable, Generator +import contextlib +from contextvars import ContextVar import dataclasses import inspect import logging @@ -11,6 +13,19 @@ _LOGGER = logging.getLogger(__package__) +_suppress_events: ContextVar[bool] = ContextVar("suppress_events", default=False) + + +@contextlib.contextmanager +def suppress_events() -> Generator[None, None, None]: + """Context manager to suppress event emission.""" + token = _suppress_events.set(True) + + try: + yield + finally: + _suppress_events.reset(token) + @dataclasses.dataclass(frozen=True, slots=True) class EventListener: @@ -86,6 +101,9 @@ def event_listener(*args, **kwargs) -> None: def emit(self, event_name: str, data=None) -> None: """Run all callbacks for an event.""" + if _suppress_events.get(): + return + listeners = [*self._listeners.get(event_name, []), *self._global_listeners] _LOGGER.debug( "Emitting event %s with data %r (%d listeners)", diff --git a/zha/zigbee/device.py b/zha/zigbee/device.py index d9a6a1cb0..1ec3919cc 100644 --- a/zha/zigbee/device.py +++ b/zha/zigbee/device.py @@ -77,14 +77,14 @@ from zha.application.helpers import convert_to_zcl_values, convert_zcl_value, safe_read from zha.application.platforms import ( BaseEntity, - BaseEntityInfo, + BaseEntityState, EntityStateChangedEvent, PlatformEntity, sensor, ) from zha.application.platforms.update import BaseFirmwareUpdateEntity from zha.const import STATE_CHANGED -from zha.event import EventBase +from zha.event import EventBase, suppress_events from zha.exceptions import ZHAException from zha.mixins import LogMixin from zha.quirks import ( @@ -323,7 +323,7 @@ class ExtendedDeviceInfo(DeviceInfo): """Describes a ZHA device.""" active_coordinator: bool - entities: dict[str, BaseEntityInfo] + entities: dict[str, BaseEntityState] neighbors: list[NeighborInfo] routes: list[RouteInfo] endpoint_names: list[EndpointNameInfo] @@ -963,7 +963,7 @@ def extended_device_info(self) -> ExtendedDeviceInfo: **self.device_info.__dict__, active_coordinator=self.is_active_coordinator, entities={ - platform_entity.unique_id: platform_entity.info_object + platform_entity.unique_id: platform_entity.state for platform_entity in self.platform_entities.values() }, neighbors=[ @@ -1185,6 +1185,13 @@ async def _add_pending_entities(self, *, emit_event: bool = True) -> None: for entity in new_entities.values(): self._add_entity(entity, emit_event=emit_event) + # Computing the primary entity changes the `primary` field, which is now part + # of the entity state. Absorb that change into each entity's previous-state + # baseline without emitting spurious state-changed events. + with suppress_events(): + for entity in all_entities.values(): + entity.maybe_emit_state_changed_event() + async def recompute_entities(self) -> None: """Recompute all entities for this device.""" self.debug("Recomputing entities") @@ -1614,11 +1621,7 @@ def _compute_primary_entity(self, entities: Sequence[PlatformEntity]) -> None: # For weight matching, only consider non-counter entities and entities which are # not explicitly marked as not primary - candidates = [ - e - for e in entities - if e.enabled and hasattr(e, "info_object") and e._attr_primary is not False - ] + candidates = [e for e in entities if e.enabled and e._attr_primary is not False] candidates.sort(reverse=True, key=lambda e: e.primary_weight) if not candidates: @@ -1630,11 +1633,9 @@ def _compute_primary_entity(self, entities: Sequence[PlatformEntity]) -> None: # We have a clear winner if not others or winner.primary_weight > others[0].primary_weight: winner.primary = True - del winner.info_object for entity in others: entity.primary = False - del entity.info_object return @@ -1644,7 +1645,6 @@ def _compute_primary_entity(self, entities: Sequence[PlatformEntity]) -> None: for entity in candidates: entity.primary = False - del entity.info_object def get_diagnostics_json(self): """Get ZHA device information.""" @@ -1768,21 +1768,14 @@ def get_diagnostics_json(self): if platform is Platform.VIRTUAL: continue - info_object = dataclasses.asdict(platform_entity.info_object) - info_object["migrate_unique_ids"] = list(info_object["migrate_unique_ids"]) - info_object["device_ieee"] = str(info_object["device_ieee"]) - - obj: dict[str, Any] = { - "info_object": info_object, - "state": platform_entity.state, - } - - if platform_entity.extra_state_attribute_names is not None: - obj["extra_state_attributes"] = sorted( - platform_entity.extra_state_attribute_names - ) + state_dict = dataclasses.asdict(platform_entity.state) + state_dict["migrate_unique_ids"] = list(state_dict["migrate_unique_ids"]) + state_dict["device_ieee"] = str(state_dict["device_ieee"]) + state_dict["extra_state_attribute_names"] = sorted( + state_dict["extra_state_attribute_names"] + ) - info["zha_lib_entities"][platform].append(obj) + info["zha_lib_entities"][platform].append(state_dict) topology = self.gateway.application_controller.topology info["neighbors"] = [ diff --git a/zha/zigbee/group.py b/zha/zigbee/group.py index 9f16b40af..ab09301f5 100644 --- a/zha/zigbee/group.py +++ b/zha/zigbee/group.py @@ -13,7 +13,7 @@ from zigpy.types.named import EUI64 from zha.application.platforms import ( - BaseEntityInfo, + BaseEntityState, EntityStateChangedEvent, PlatformEntity, ) @@ -54,7 +54,7 @@ class GroupMemberInfo: ieee: EUI64 endpoint_id: int device_info: ExtendedDeviceInfo - entities: dict[str, BaseEntityInfo] + entities: dict[str, BaseEntityState] @dataclass(frozen=True, kw_only=True) @@ -64,7 +64,7 @@ class GroupInfo: group_id: int name: str members: list[GroupMemberInfo] - entities: dict[str, BaseEntityInfo] + entities: dict[str, BaseEntityState] class GroupMember(LogMixin): @@ -104,8 +104,7 @@ def member_info(self) -> GroupMemberInfo: endpoint_id=self.endpoint_id, device_info=self.device.extended_device_info, entities={ - entity.unique_id: entity.info_object - for entity in self.associated_entities + entity.unique_id: entity.state for entity in self.associated_entities }, ) @@ -198,14 +197,14 @@ def members(self) -> list[GroupMember]: ] @cached_property - def info_object(self) -> GroupInfo: + def state(self) -> GroupInfo: """Get ZHA group info.""" return GroupInfo( group_id=self.group_id, name=self.name, members=[member.member_info for member in self.members], entities={ - unique_id: entity.info_object + unique_id: entity.state for unique_id, entity in self._group_entities.items() }, ) @@ -254,8 +253,8 @@ def clear_caches(self) -> None: """Clear cached properties.""" if hasattr(self, "all_member_entity_unique_ids"): delattr(self, "all_member_entity_unique_ids") - if hasattr(self, "info_object"): - delattr(self, "info_object") + if hasattr(self, "state"): + delattr(self, "state") if hasattr(self, "members"): delattr(self, "members") From 328ed7ff59784b654ff6e31185ade6e0b28484a3 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Thu, 25 Jun 2026 22:42:31 -0400 Subject: [PATCH 2/9] Regenerate mypy ignores Clean up typing a little --- pyproject.toml | 43 ++++--------------- .../platforms/alarm_control_panel/__init__.py | 2 +- zha/application/platforms/button/__init__.py | 2 +- zha/application/platforms/lock/__init__.py | 13 ++++-- zha/application/platforms/siren.py | 5 ++- zha/application/platforms/update.py | 6 ++- 6 files changed, 27 insertions(+), 44 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c55de25bb..095a228ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -99,18 +99,6 @@ non_interactive = true # `python -m tools.regenerate_mypy_ignores`. They are sorted easiest-to-fix # first; clean up a module's errors and re-run the tool to shrink the list. # Autogenerated mypy overrides: start -[[tool.mypy.overrides]] -module = "zha.application.platforms.button" -disable_error_code = [ - "assignment", # 1 -] - -[[tool.mypy.overrides]] -module = "zha.application.platforms.update" -disable_error_code = [ - "arg-type", # 1 -] - [[tool.mypy.overrides]] module = "zha.application.platforms.virtual" disable_error_code = [ @@ -129,12 +117,6 @@ disable_error_code = [ "no-any-return", # 2 ] -[[tool.mypy.overrides]] -module = "zha.application.platforms.siren" -disable_error_code = [ - "assignment", # 2 -] - [[tool.mypy.overrides]] module = "zha.application.discovery" disable_error_code = [ @@ -142,17 +124,18 @@ disable_error_code = [ ] [[tool.mypy.overrides]] -module = "zha.application.platforms.binary_sensor" +module = "zha.application.platforms" disable_error_code = [ + "arg-type", # 1 + "assignment", # 1 "no-any-return", # 1 - "no-untyped-call", # 1 - "no-untyped-def", # 1 ] [[tool.mypy.overrides]] -module = "zha.application.platforms.lock" +module = "zha.application.platforms.binary_sensor" disable_error_code = [ - "arg-type", # 2 + "no-any-return", # 1 + "no-untyped-call", # 1 "no-untyped-def", # 1 ] @@ -170,14 +153,6 @@ disable_error_code = [ "no-untyped-call", # 1 ] -[[tool.mypy.overrides]] -module = "zha.application.platforms" -disable_error_code = [ - "arg-type", # 1 - "assignment", # 1 - "no-any-return", # 2 -] - [[tool.mypy.overrides]] module = "zha.application.platforms.device_tracker" disable_error_code = [ @@ -250,7 +225,7 @@ disable_error_code = [ [[tool.mypy.overrides]] module = "zha.application.platforms.light" disable_error_code = [ - "arg-type", # 5 + "arg-type", # 3 "no-any-return", # 4 "no-untyped-call", # 11 "no-untyped-def", # 8 @@ -268,8 +243,8 @@ disable_error_code = [ [[tool.mypy.overrides]] module = "zha.application.platforms.sensor" disable_error_code = [ - "arg-type", # 10 - "assignment", # 3 + "arg-type", # 12 + "assignment", # 2 "attr-defined", # 5 "no-any-return", # 9 "no-untyped-call", # 4 diff --git a/zha/application/platforms/alarm_control_panel/__init__.py b/zha/application/platforms/alarm_control_panel/__init__.py index 70baa12dc..7f58006ff 100644 --- a/zha/application/platforms/alarm_control_panel/__init__.py +++ b/zha/application/platforms/alarm_control_panel/__init__.py @@ -6,7 +6,7 @@ from collections.abc import Callable import dataclasses import logging -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, Any from zigpy.zcl.clusters.security import ( AlarmStatus, diff --git a/zha/application/platforms/button/__init__.py b/zha/application/platforms/button/__init__.py index 10209717b..03eb39aee 100644 --- a/zha/application/platforms/button/__init__.py +++ b/zha/application/platforms/button/__init__.py @@ -83,7 +83,7 @@ def __init__( device: Device, *, command_name: str | None = None, - command_args: tuple | None = None, + command_args: list[Any] | None = None, command_kwargs: dict[str, Any] | None = None, **kwargs: Any, ) -> None: diff --git a/zha/application/platforms/lock/__init__.py b/zha/application/platforms/lock/__init__.py index efaa710c0..be4e8b3fc 100644 --- a/zha/application/platforms/lock/__init__.py +++ b/zha/application/platforms/lock/__init__.py @@ -4,7 +4,7 @@ from abc import ABC, abstractmethod import dataclasses -from typing import TYPE_CHECKING, Literal +from typing import TYPE_CHECKING, Any, Literal, cast from zigpy.zcl import ( AttributeReadEvent, @@ -13,7 +13,10 @@ AttributeWrittenEvent, ReportingConfig, ) -from zigpy.zcl.clusters.closures import DoorLock as DoorLockCluster +from zigpy.zcl.clusters.closures import ( + DoorLock as DoorLockCluster, + LockState as ZclLockState, +) from zigpy.zcl.foundation import Status from zha.application import Platform @@ -100,7 +103,7 @@ def __init__( self, endpoint: Endpoint, device: Device, - **kwargs, + **kwargs: Any, ) -> None: """Initialize the lock.""" super().__init__(endpoint=endpoint, device=device, **kwargs) @@ -189,7 +192,9 @@ def handle_attribute_updated( """Handle state update from the door-lock cluster.""" if event.attribute_id != DoorLockCluster.AttributeDefs.lock_state.id: return - self._state = VALUE_TO_STATE.get(event.value, self._state) + + value = cast(ZclLockState, event.value) + self._state = VALUE_TO_STATE.get(value, self._state) self.maybe_emit_state_changed_event() async def async_update(self) -> None: diff --git a/zha/application/platforms/siren.py b/zha/application/platforms/siren.py index a50eef0d7..04659484a 100644 --- a/zha/application/platforms/siren.py +++ b/zha/application/platforms/siren.py @@ -14,6 +14,7 @@ IasWd, SirenLevel, Squawk, + SquawkLevel, SquawkMode, Strobe, StrobeLevel, @@ -200,8 +201,8 @@ async def async_squawk( """Issue an IAS WD squawk command.""" squawk = Squawk() squawk.mode = mode - squawk.strobe = strobe - squawk.level = squawk_level + squawk.strobe = Strobe(strobe) # type:ignore[no-untyped-call] + squawk.level = SquawkLevel(squawk_level) # type:ignore[no-untyped-call] await self._cluster.squawk(squawk=squawk) def _async_set_off(self) -> None: diff --git a/zha/application/platforms/update.py b/zha/application/platforms/update.py index 4d21933bb..abe45f48b 100644 --- a/zha/application/platforms/update.py +++ b/zha/application/platforms/update.py @@ -71,8 +71,8 @@ class UpdateState(BaseEntityState): """State for update entities.""" installed_version: str | None - in_progress: bool | int - update_percentage: int | None + in_progress: bool | None + update_percentage: float | None latest_version: str | None release_summary: str | None release_notes: str | None @@ -308,6 +308,8 @@ class FirmwareUpdateEntity(BaseFirmwareUpdateEntity): ), } + _cluster: Ota + def __init__( self, endpoint: Endpoint, From ab81a611015245be6d6799eedd381d11cf7b403c Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Fri, 26 Jun 2026 01:27:09 -0400 Subject: [PATCH 3/9] Rename/remove `state` --- tests/test_alarm_control_panel.py | 42 ++--- tests/test_climate.py | 34 ++-- tests/test_cover.py | 166 ++++++++++-------- tests/test_discover.py | 6 +- tests/test_number.py | 42 ++--- tests/test_select.py | 30 ++-- tests/test_sensor.py | 64 +++---- tests/test_siren.py | 22 +-- tests/test_switch.py | 82 ++++----- .../platforms/alarm_control_panel/__init__.py | 4 +- .../platforms/binary_sensor/__init__.py | 4 +- zha/application/platforms/cover/__init__.py | 7 - zha/application/platforms/number/__init__.py | 4 +- zha/application/platforms/select.py | 4 +- zha/application/platforms/sensor/__init__.py | 8 +- zha/application/platforms/siren.py | 4 +- zha/application/platforms/switch.py | 8 +- 17 files changed, 270 insertions(+), 261 deletions(-) diff --git a/tests/test_alarm_control_panel.py b/tests/test_alarm_control_panel.py index 6aa32f0da..ae6a0fb6a 100644 --- a/tests/test_alarm_control_panel.py +++ b/tests/test_alarm_control_panel.py @@ -45,7 +45,7 @@ async def test_alarm_control_panel( assert isinstance(alarm_entity, AlarmControlPanel) # test that the state is STATE_ALARM_DISARMED - assert alarm_entity.state.state == AlarmState.DISARMED + assert alarm_entity.state.alarm_state == AlarmState.DISARMED # arm_away cluster.client_command.reset_mock() @@ -60,7 +60,7 @@ async def test_alarm_control_panel( security.IasAce.AudibleNotification.Default_Sound, security.IasAce.AlarmStatus.No_Alarm, ) - assert alarm_entity.state.state == AlarmState.ARMED_AWAY # type: ignore[comparison-overlap] + assert alarm_entity.state.alarm_state == AlarmState.ARMED_AWAY # type: ignore[comparison-overlap] # disarm await reset_alarm_panel(zha_gateway, cluster, alarm_entity) @@ -69,7 +69,7 @@ async def test_alarm_control_panel( cluster.client_command.reset_mock() await alarm_entity.async_alarm_arm_away("4321") await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.ARMED_AWAY + assert alarm_entity.state.alarm_state == AlarmState.ARMED_AWAY cluster.client_command.reset_mock() # now simulate a faulty code entry sequence @@ -78,7 +78,7 @@ async def test_alarm_control_panel( await alarm_entity.async_alarm_disarm("0000") await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.TRIGGERED + assert alarm_entity.state.alarm_state == AlarmState.TRIGGERED assert cluster.client_command.call_count == 6 assert cluster.client_command.await_count == 6 assert cluster.client_command.call_args == call( @@ -95,7 +95,7 @@ async def test_alarm_control_panel( # arm_home await alarm_entity.async_alarm_arm_home("4321") await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.ARMED_HOME + assert alarm_entity.state.alarm_state == AlarmState.ARMED_HOME assert cluster.client_command.call_count == 2 assert cluster.client_command.await_count == 2 assert cluster.client_command.call_args == call( @@ -112,7 +112,7 @@ async def test_alarm_control_panel( # arm_night await alarm_entity.async_alarm_arm_night("4321") await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.ARMED_NIGHT + assert alarm_entity.state.alarm_state == AlarmState.ARMED_NIGHT assert cluster.client_command.call_count == 2 assert cluster.client_command.await_count == 2 assert cluster.client_command.call_args == call( @@ -131,7 +131,7 @@ async def test_alarm_control_panel( "cluster_command", 1, 0, [security.IasAce.ArmMode.Arm_All_Zones, "", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.ARMED_AWAY + assert alarm_entity.state.alarm_state == AlarmState.ARMED_AWAY # reset the panel await reset_alarm_panel(zha_gateway, cluster, alarm_entity) @@ -141,7 +141,7 @@ async def test_alarm_control_panel( "cluster_command", 1, 0, [security.IasAce.ArmMode.Arm_Day_Home_Only, "", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.ARMED_HOME + assert alarm_entity.state.alarm_state == AlarmState.ARMED_HOME # reset the panel await reset_alarm_panel(zha_gateway, cluster, alarm_entity) @@ -151,41 +151,41 @@ async def test_alarm_control_panel( "cluster_command", 1, 0, [security.IasAce.ArmMode.Arm_Night_Sleep_Only, "", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.ARMED_NIGHT + assert alarm_entity.state.alarm_state == AlarmState.ARMED_NIGHT # disarm from panel with bad code cluster.listener_event( "cluster_command", 1, 0, [security.IasAce.ArmMode.Disarm, "", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.ARMED_NIGHT + assert alarm_entity.state.alarm_state == AlarmState.ARMED_NIGHT # disarm from panel with bad code for 2nd time still armed cluster.listener_event( "cluster_command", 1, 0, [security.IasAce.ArmMode.Disarm, "", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.TRIGGERED + assert alarm_entity.state.alarm_state == AlarmState.TRIGGERED # disarm from panel with good code cluster.listener_event( "cluster_command", 1, 0, [security.IasAce.ArmMode.Disarm, "4321", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.DISARMED + assert alarm_entity.state.alarm_state == AlarmState.DISARMED # disarm when already disarmed cluster.listener_event( "cluster_command", 1, 0, [security.IasAce.ArmMode.Disarm, "4321", 0] ) await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.DISARMED + assert alarm_entity.state.alarm_state == AlarmState.DISARMED assert "IAS ACE already disarmed" in caplog.text # panic from panel cluster.listener_event("cluster_command", 1, 4, []) await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.TRIGGERED + assert alarm_entity.state.alarm_state == AlarmState.TRIGGERED # reset the panel await reset_alarm_panel(zha_gateway, cluster, alarm_entity) @@ -193,7 +193,7 @@ async def test_alarm_control_panel( # fire from panel cluster.listener_event("cluster_command", 1, 3, []) await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.TRIGGERED + assert alarm_entity.state.alarm_state == AlarmState.TRIGGERED # reset the panel await reset_alarm_panel(zha_gateway, cluster, alarm_entity) @@ -201,24 +201,24 @@ async def test_alarm_control_panel( # emergency from panel cluster.listener_event("cluster_command", 1, 2, []) await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.TRIGGERED + assert alarm_entity.state.alarm_state == AlarmState.TRIGGERED # reset the panel await reset_alarm_panel(zha_gateway, cluster, alarm_entity) - assert alarm_entity.state.state == AlarmState.DISARMED + assert alarm_entity.state.alarm_state == AlarmState.DISARMED await alarm_entity.async_alarm_trigger() await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.TRIGGERED + assert alarm_entity.state.alarm_state == AlarmState.TRIGGERED # reset the panel await reset_alarm_panel(zha_gateway, cluster, alarm_entity) - assert alarm_entity.state.state == AlarmState.DISARMED + assert alarm_entity.state.alarm_state == AlarmState.DISARMED alarm_entity.code_required_arm_actions = True await alarm_entity.async_alarm_arm_away() await zha_gateway.async_block_till_done() - assert alarm_entity.state.state == AlarmState.DISARMED + assert alarm_entity.state.alarm_state == AlarmState.DISARMED assert "Invalid code supplied to IAS ACE" in caplog.text @@ -231,7 +231,7 @@ async def reset_alarm_panel( cluster.client_command.reset_mock() await entity.async_alarm_disarm("4321") await zha_gateway.async_block_till_done() - assert entity.state.state == AlarmState.DISARMED + assert entity.state.alarm_state == AlarmState.DISARMED assert cluster.client_command.call_count == 2 assert cluster.client_command.await_count == 2 assert cluster.client_command.call_args == call( diff --git a/tests/test_climate.py b/tests/test_climate.py index bb5f46b2e..33aaa2114 100644 --- a/tests/test_climate.py +++ b/tests/test_climate.py @@ -316,14 +316,14 @@ async def test_climate_hvac_action_running_state( sensor_entity.on_event(STATE_CHANGED, subscriber2) assert entity.state.hvac_action == "off" - assert sensor_entity.state.state == "off" + assert sensor_entity.state.native_value == "off" await send_attributes_report( zha_gateway, thrm_cluster, {0x001E: Thermostat.RunningMode.Off} ) await zha_gateway.async_block_till_done(wait_background_tasks=True) assert entity.state.hvac_action == "off" - assert sensor_entity.state.state == "off" + assert sensor_entity.state.native_value == "off" assert len(subscriber1.mock_calls) == len(subscriber2.mock_calls) == 0 await send_attributes_report( @@ -331,7 +331,7 @@ async def test_climate_hvac_action_running_state( ) await zha_gateway.async_block_till_done(wait_background_tasks=True) assert entity.state.hvac_action == "idle" - assert sensor_entity.state.state == "idle" + assert sensor_entity.state.native_value == "idle" assert len(subscriber1.mock_calls) == len(subscriber2.mock_calls) == 1 await send_attributes_report( @@ -339,7 +339,7 @@ async def test_climate_hvac_action_running_state( ) await zha_gateway.async_block_till_done(wait_background_tasks=True) assert entity.state.hvac_action == "cooling" - assert sensor_entity.state.state == "cooling" + assert sensor_entity.state.native_value == "cooling" assert len(subscriber1.mock_calls) == len(subscriber2.mock_calls) == 2 await send_attributes_report( @@ -347,7 +347,7 @@ async def test_climate_hvac_action_running_state( ) await zha_gateway.async_block_till_done(wait_background_tasks=True) assert entity.state.hvac_action == "heating" - assert sensor_entity.state.state == "heating" + assert sensor_entity.state.native_value == "heating" assert len(subscriber1.mock_calls) == len(subscriber2.mock_calls) == 3 await send_attributes_report( @@ -355,7 +355,7 @@ async def test_climate_hvac_action_running_state( ) await zha_gateway.async_block_till_done(wait_background_tasks=True) assert entity.state.hvac_action == "idle" - assert sensor_entity.state.state == "idle" + assert sensor_entity.state.native_value == "idle" assert len(subscriber1.mock_calls) == len(subscriber2.mock_calls) == 4 await send_attributes_report( @@ -363,7 +363,7 @@ async def test_climate_hvac_action_running_state( ) await zha_gateway.async_block_till_done(wait_background_tasks=True) assert entity.state.hvac_action == "fan" - assert sensor_entity.state.state == "fan" + assert sensor_entity.state.native_value == "fan" assert len(subscriber1.mock_calls) == len(subscriber2.mock_calls) == 5 @@ -452,61 +452,61 @@ async def test_climate_hvac_action_running_state_zen( assert isinstance(sensor_entity, ThermostatHVACAction) assert entity.state.hvac_action is None - assert sensor_entity.state.state is None + assert sensor_entity.state.native_value is None await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Cool_2nd_Stage_On} ) assert entity.state.hvac_action == "cooling" - assert sensor_entity.state.state == "cooling" + assert sensor_entity.state.native_value == "cooling" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Fan_State_On} ) assert entity.state.hvac_action == "fan" - assert sensor_entity.state.state == "fan" + assert sensor_entity.state.native_value == "fan" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Heat_2nd_Stage_On} ) assert entity.state.hvac_action == "heating" - assert sensor_entity.state.state == "heating" + assert sensor_entity.state.native_value == "heating" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Fan_2nd_Stage_On} ) assert entity.state.hvac_action == "fan" - assert sensor_entity.state.state == "fan" + assert sensor_entity.state.native_value == "fan" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Cool_State_On} ) assert entity.state.hvac_action == "cooling" - assert sensor_entity.state.state == "cooling" + assert sensor_entity.state.native_value == "cooling" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Fan_3rd_Stage_On} ) assert entity.state.hvac_action == "fan" - assert sensor_entity.state.state == "fan" + assert sensor_entity.state.native_value == "fan" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Heat_State_On} ) assert entity.state.hvac_action == "heating" - assert sensor_entity.state.state == "heating" + assert sensor_entity.state.native_value == "heating" await send_attributes_report( zha_gateway, thrm_cluster, {0x0029: Thermostat.RunningState.Idle} ) assert entity.state.hvac_action == "off" - assert sensor_entity.state.state == "off" + assert sensor_entity.state.native_value == "off" await send_attributes_report( zha_gateway, thrm_cluster, {0x001C: Thermostat.SystemMode.Heat} ) assert entity.state.hvac_action == "idle" - assert sensor_entity.state.state == "idle" + assert sensor_entity.state.native_value == "idle" async def test_climate_hvac_action_running_state_zehnder( diff --git a/tests/test_cover.py b/tests/test_cover.py index f22021e8b..24f594e2d 100644 --- a/tests/test_cover.py +++ b/tests/test_cover.py @@ -39,6 +39,18 @@ Default_Response = zcl_f.GENERAL_COMMANDS[zcl_f.GeneralCommand.Default_Response].schema +def _cover_state(entity) -> CoverState | None: + """Derive the cover state from the entity's boolean state attributes.""" + state = entity.state + if state.is_opening: + return CoverState.OPENING + if state.is_closing: + return CoverState.CLOSING + if state.is_closed is None: + return None + return CoverState.CLOSED if state.is_closed else CoverState.OPEN + + ZIGPY_COVER_DEVICE = { 1: { SIG_EP_PROFILE: zigpy.profiles.zha.PROFILE_ID, @@ -141,7 +153,7 @@ async def test_cover_non_tilt_initial_state( # pylint: disable=unused-argument ) entity = get_entity(zha_device, platform=Platform.COVER) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN assert entity.state.current_position == 100 assert entity.state.current_tilt_position is None assert entity.supported_features == ( @@ -155,7 +167,7 @@ async def test_cover_non_tilt_initial_state( # pylint: disable=unused-argument await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 100} ) - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED assert entity.state.current_position == 0 @@ -184,7 +196,7 @@ async def test_cover_non_lift_initial_state( # pylint: disable=unused-argument ) entity = get_entity(zha_device, platform=Platform.COVER) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN assert entity.state.current_position is None assert entity.state.current_tilt_position == 100 assert entity.supported_features == ( @@ -198,7 +210,7 @@ async def test_cover_non_lift_initial_state( # pylint: disable=unused-argument await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 100} ) - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED assert entity.state.current_tilt_position == 0 @@ -242,31 +254,31 @@ async def test_cover( await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 100} ) - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED # test that the state remains after tilting to 100% (closed) await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 100} ) - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED # set lift to 0% (open) and test to see if state changes to open await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 0} ) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test that the state remains after tilting to 0% (open) await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 0} ) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test to see the state remains after tilting to 100% (closed) await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 100} ) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test entity async_update read of positions from the cluster cluster.PLUGGED_ATTR_READS[WCAttrs.current_position_lift_percentage.name] = 0 @@ -274,7 +286,7 @@ async def test_cover( update_attribute_cache(cluster) await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # close from client with patch("zigpy.zcl.Cluster.request", return_value=[0x1, zcl_f.Status.SUCCESS]): @@ -286,17 +298,17 @@ async def test_cover( assert cluster.request.call_args[0][2].command.name == WCCmds.down_close.name assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 100} ) - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED # verify that a subsequent close command does not change the state to closing await entity.async_close_cover() - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED # tilt close from client with patch("zigpy.zcl.Cluster.request", return_value=[0x1, zcl_f.Status.SUCCESS]): @@ -304,7 +316,7 @@ async def test_cover( await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 0} ) - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED await entity.async_close_cover_tilt() await zha_gateway.async_block_till_done() @@ -318,17 +330,17 @@ async def test_cover( assert cluster.request.call_args[0][3] == 100 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 100} ) - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED # verify that a subsequent close command does not change the state to closing await entity.async_close_cover_tilt() - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED # open from client with patch("zigpy.zcl.Cluster.request", return_value=[0x0, zcl_f.Status.SUCCESS]): @@ -340,17 +352,17 @@ async def test_cover( assert cluster.request.call_args[0][2].command.name == WCCmds.up_open.name assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state.state == CoverState.OPENING + assert _cover_state(entity) == CoverState.OPENING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 0} ) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # verify that a subsequent open command does not change the state to opening await entity.async_open_cover() - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # open tilt from client with patch("zigpy.zcl.Cluster.request", return_value=[0x0, zcl_f.Status.SUCCESS]): @@ -366,17 +378,17 @@ async def test_cover( assert cluster.request.call_args[0][3] == 0 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state.state == CoverState.OPENING + assert _cover_state(entity) == CoverState.OPENING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 0} ) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # verify that a subsequent open command does not change the state to opening await entity.async_open_cover_tilt() - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test set position command, starting at 100 % / 0 ZCL (open) from previous lift test with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): @@ -390,29 +402,29 @@ async def test_cover( assert cluster.request.call_args[0][3] == 53 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 35} ) assert entity.state.current_position == 65 - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 53} ) assert entity.state.current_position == 47 - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # verify that a subsequent go_to command does not change the state to closing/opening await entity.async_set_cover_position(position=47) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # wait for transition timeout to clear the target await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test set tilt position command, starting at 100 % / 0 ZCL (open) from previous tilt test with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): @@ -431,29 +443,29 @@ async def test_cover( assert cluster.request.call_args[0][3] == 53 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 35} ) assert entity.state.current_tilt_position == 65 - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 53} ) assert entity.state.current_tilt_position == 47 - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # verify that a subsequent go_to command does not change the state to closing/opening await entity.async_set_cover_tilt_position(tilt_position=47) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # wait for transition timeout to clear the target await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test interrupted movement (e.g. device button press), starting from 47 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): @@ -467,7 +479,7 @@ async def test_cover( assert cluster.request.call_args[1]["expect_reply"] is True assert entity.state.current_position == 47 - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING # simulate a device position update to set timer to the default duration rather than dynamic await send_attributes_report( @@ -475,11 +487,11 @@ async def test_cover( ) assert entity.state.current_position == 30 - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING # wait the timer duration await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test interrupted tilt movement (e.g. device button press), starting from 47 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): @@ -495,7 +507,7 @@ async def test_cover( assert cluster.request.call_args[1]["expect_reply"] is True assert entity.state.current_tilt_position == 47 - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING # simulate a device position update to set timer to the default duration rather than dynamic await send_attributes_report( @@ -503,48 +515,48 @@ async def test_cover( ) assert entity.state.current_tilt_position == 30 - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING # wait the timer duration await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test device instigated movement (e.g. device button press), starting from 30 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): assert entity.state.current_position == 30 - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 60} ) assert entity.state.current_position == 40 - assert entity.state.state == CoverState.OPENING + assert _cover_state(entity) == CoverState.OPENING # wait the default timer duration await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test device instigated tilt movement (e.g. device button press), starting from 30 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): assert entity.state.current_tilt_position == 30 - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 60} ) assert entity.state.current_tilt_position == 40 - assert entity.state.state == CoverState.OPENING + assert _cover_state(entity) == CoverState.OPENING # wait the default timer duration await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test dynamic movement timeout, starting from 40 % and moving to 90 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): assert entity.state.current_position == 40 - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN await entity.async_set_cover_position(position=90) # 10 when inverted for ZCL await zha_gateway.async_block_till_done() @@ -555,23 +567,23 @@ async def test_cover( assert cluster.request.call_args[0][3] == 10 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state.state == CoverState.OPENING + assert _cover_state(entity) == CoverState.OPENING # wait the default timer duration and verify status is still opening await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state.state == CoverState.OPENING + assert _cover_state(entity) == CoverState.OPENING # wait the remainder of the dynamic timeout and check if the movement timed out: (50% * 300 seconds) - default await asyncio.sleep( (50 * 0.01 * LIFT_MOVEMENT_TIMEOUT_RANGE) - DEFAULT_MOVEMENT_TIMEOUT ) assert entity.state.current_position == 40 - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test dynamic tilt movement timeout, starting from 40 % and moving to 90 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): assert entity.state.current_tilt_position == 40 - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN await entity.async_set_cover_tilt_position( tilt_position=90 @@ -584,18 +596,18 @@ async def test_cover( assert cluster.request.call_args[0][3] == 10 assert cluster.request.call_args[1]["expect_reply"] is True - assert entity.state.state == CoverState.OPENING + assert _cover_state(entity) == CoverState.OPENING # wait the default timer duration and verify status is still opening await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state.state == CoverState.OPENING + assert _cover_state(entity) == CoverState.OPENING # wait the remainder of the dynamic timeout and check if the movement timed out: (50% * 30 seconds) - default await asyncio.sleep( (50 * 0.01 * TILT_MOVEMENT_TIMEOUT_RANGE) - DEFAULT_MOVEMENT_TIMEOUT ) assert entity.state.current_tilt_position == 40 - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test concurrent movement of both axis, lift and tilt starting at 40 % with patch("zigpy.zcl.Cluster.request", return_value=[0x5, zcl_f.Status.SUCCESS]): @@ -612,7 +624,7 @@ async def test_cover( assert cluster.request.call_args[1]["expect_reply"] is True # verify the cover is opening due to the lift direction - assert entity.state.state == CoverState.OPENING + assert _cover_state(entity) == CoverState.OPENING await entity.async_set_cover_tilt_position( tilt_position=1 @@ -626,7 +638,7 @@ async def test_cover( assert cluster.request.call_args[1]["expect_reply"] is True # the last action's direction takes state precedence (tilt) - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING # report that tilt has reached its target await send_attributes_report( @@ -635,7 +647,7 @@ async def test_cover( assert entity.state.current_tilt_position == 1 # state should have reverted to opening because there is still an active lift target transition - assert entity.state.state == CoverState.OPENING + assert _cover_state(entity) == CoverState.OPENING # report that lift has reached its target await send_attributes_report( @@ -644,7 +656,7 @@ async def test_cover( assert entity.state.current_position == 90 # the state should now be open (static) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # stop from client with patch("zigpy.zcl.Cluster.request", return_value=[0x2, zcl_f.Status.SUCCESS]): @@ -723,7 +735,7 @@ async def test_cover_failures(zha_gateway: Gateway) -> None: zha_gateway, cluster, {WCAttrs.current_position_lift_percentage.id: 0} ) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # close from UI with patch( @@ -741,7 +753,7 @@ async def test_cover_failures(zha_gateway: Gateway) -> None: cluster.request.call_args[0][1] == closures.WindowCovering.ServerCommandDefs.down_close.id ) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN with patch( "zigpy.zcl.Cluster.request", @@ -888,18 +900,18 @@ async def test_shade( await send_attributes_report( zha_gateway, cluster_on_off, {cluster_on_off.AttributeDefs.on_off.id: 0} ) - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED # test to see if it opens await send_attributes_report( zha_gateway, cluster_on_off, {cluster_on_off.AttributeDefs.on_off.id: 1} ) - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # test entity async_update await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # close from client command fails with ( @@ -917,7 +929,7 @@ async def test_shade( assert cluster_on_off.request.call_count == 1 assert cluster_on_off.request.call_args[0][0] is False assert cluster_on_off.request.call_args[0][1] == 0x0000 - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN with patch( "zigpy.zcl.Cluster.request", AsyncMock(return_value=[0x1, zcl_f.Status.SUCCESS]) @@ -927,11 +939,11 @@ async def test_shade( assert cluster_on_off.request.call_count == 1 assert cluster_on_off.request.call_args[0][0] is False assert cluster_on_off.request.call_args[0][1] == 0x0000 - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED # open from client command fails await send_attributes_report(zha_gateway, cluster_level, {0: 0}) - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED with ( patch( @@ -948,7 +960,7 @@ async def test_shade( assert cluster_on_off.request.call_count == 1 assert cluster_on_off.request.call_args[0][0] is False assert cluster_on_off.request.call_args[0][1] == 0x0001 - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED # open from client succeeds with patch( @@ -959,7 +971,7 @@ async def test_shade( assert cluster_on_off.request.call_count == 1 assert cluster_on_off.request.call_args[0][0] is False assert cluster_on_off.request.call_args[0][1] == 0x0001 - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN # set position UI command fails with ( @@ -1053,12 +1065,12 @@ async def test_keen_vent( # test that the state has changed from unavailable to off await send_attributes_report(zha_gateway, cluster_on_off, {8: 0, 0: False, 1: 1}) - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED # test entity async_update await entity.async_update() await zha_gateway.async_block_till_done() - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED # open from client command fails p1 = patch.object(cluster_on_off, "request", side_effect=asyncio.TimeoutError) @@ -1072,7 +1084,7 @@ async def test_keen_vent( assert cluster_on_off.request.call_args[0][0] is False assert cluster_on_off.request.call_args[0][1] == 0x0001 assert cluster_level.request.call_count == 1 - assert entity.state.state == CoverState.CLOSED + assert _cover_state(entity) == CoverState.CLOSED # open from client command success p1 = patch.object(cluster_on_off, "request", AsyncMock(return_value=[1, 0])) @@ -1085,7 +1097,7 @@ async def test_keen_vent( assert cluster_on_off.request.call_args[0][0] is False assert cluster_on_off.request.call_args[0][1] == 0x0001 assert cluster_level.request.call_count == 1 - assert entity.state.state == CoverState.OPEN + assert _cover_state(entity) == CoverState.OPEN assert entity.state.current_position == 100 @@ -1170,15 +1182,15 @@ async def test_cover_state_restoration( ) entity = get_entity(zha_device, platform=Platform.COVER) - assert entity.state.state == final_state + assert _cover_state(entity) == final_state assert entity.state.current_position == current_position assert entity.state.current_tilt_position == current_tilt_position entity.restore_external_state_attributes(state=restore_state) if interim_state: - assert entity.state.state == interim_state + assert _cover_state(entity) == interim_state await asyncio.sleep(DEFAULT_MOVEMENT_TIMEOUT) - assert entity.state.state == final_state + assert _cover_state(entity) == final_state async def test_cover_lift_timer_cancellation_on_remove(zha_gateway: Gateway) -> None: @@ -1197,7 +1209,7 @@ async def test_cover_lift_timer_cancellation_on_remove(zha_gateway: Gateway) -> with patch("zigpy.zcl.Cluster.request", return_value=[0x1, zcl_f.Status.SUCCESS]): await entity.async_close_cover() await zha_gateway.async_block_till_done() - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING # remove entity await entity.on_remove() @@ -1219,7 +1231,7 @@ async def test_cover_tilt_timer_cancellation_on_remove(zha_gateway: Gateway) -> with patch("zigpy.zcl.Cluster.request", return_value=[0x1, zcl_f.Status.SUCCESS]): await entity.async_close_cover_tilt() await zha_gateway.async_block_till_done() - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING # remove entity await entity.on_remove() @@ -1241,7 +1253,7 @@ async def test_cover_state_restore_timer_cancellation_on_remove( # start state restore timer entity = get_entity(zha_device, platform=Platform.COVER) entity.restore_external_state_attributes(state=CoverState.CLOSING) - assert entity.state.state == CoverState.CLOSING + assert _cover_state(entity) == CoverState.CLOSING # remove entity await entity.on_remove() diff --git a/tests/test_discover.py b/tests/test_discover.py index 94cc481c6..3c9755729 100644 --- a/tests/test_discover.py +++ b/tests/test_discover.py @@ -387,7 +387,7 @@ class FakeXiaomiAqaraDriverE1(XiaomiAqaraDriverE1): qualifier_func=lambda e: e._enum == BasicCluster.PowerSource, ) assert ( - power_source_entity.state.state + power_source_entity.state.native_value == BasicCluster.PowerSource.Mains_single_phase.name ) @@ -397,7 +397,7 @@ class FakeXiaomiAqaraDriverE1(XiaomiAqaraDriverE1): exact_entity_type=sensor.EnumSensor, qualifier_func=lambda e: e._enum == AqaraE1HookState, ) - assert hook_state_entity.state.state == AqaraE1HookState.Unlocked.name + assert hook_state_entity.state.native_value == AqaraE1HookState.Unlocked.name error_detected_entity = get_entity( zha_device, @@ -405,7 +405,7 @@ class FakeXiaomiAqaraDriverE1(XiaomiAqaraDriverE1): exact_entity_type=binary_sensor.BinarySensor, qualifier_func=lambda e: e._attribute_name == "error_detected", ) - assert error_detected_entity.state.state is False + assert error_detected_entity.state.is_on is False def _get_test_device( diff --git a/tests/test_number.py b/tests/test_number.py index 5c9f9b058..2fc9641ef 100644 --- a/tests/test_number.py +++ b/tests/test_number.py @@ -123,7 +123,7 @@ async def test_number( assert entity.fallback_name == "PWM1" # test that the state is 15.0 - assert entity.state.state == 15.0 + assert entity.state.native_value == 15.0 # test attributes assert entity.state.native_min_value == 1.0 @@ -141,12 +141,12 @@ async def test_number( assert cluster.read_attributes.call_count == 2 await send_attributes_report(zha_gateway, cluster, {0x0055: 15}) await zha_gateway.async_block_till_done() - assert entity.state.state == 15.0 + assert entity.state.native_value == 15.0 # update value from device await send_attributes_report(zha_gateway, cluster, {0x0055: 20}) await zha_gateway.async_block_till_done() - assert entity.state.state == 20.0 + assert entity.state.native_value == 20.0 # change value from client await entity.async_set_native_value(30.0) @@ -156,11 +156,11 @@ async def test_number( assert cluster.write_attributes.call_args == call( {"present_value": 30.0}, manufacturer=UNDEFINED ) - assert entity.state.state == 30.0 + assert entity.state.native_value == 30.0 # test updating entity state from client cluster.read_attributes.reset_mock() - assert entity.state.state == 30.0 + assert entity.state.native_value == 30.0 cluster.PLUGGED_ATTR_READS = {"present_value": 20} await entity.async_update() await zha_gateway.async_block_till_done() @@ -168,7 +168,7 @@ async def test_number( assert cluster.read_attributes.await_args == call( ["present_value"], allow_cache=False, only_cache=False, manufacturer=UNDEFINED ) - assert entity.state.state == 20.0 + assert entity.state.native_value == 20.0 await entity.async_set_native_value(30) await zha_gateway.async_block_till_done() @@ -176,7 +176,7 @@ async def test_number( assert cluster.write_attributes.call_args == call( {"present_value": 30}, manufacturer=UNDEFINED ) - assert entity.state.state == 30.0 + assert entity.state.native_value == 30.0 async def test_number_missing_description_attr( @@ -258,7 +258,7 @@ async def test_level_control_number( ), ] - assert entity.state.state == initial_value + assert entity.state.native_value == initial_value assert entity._attr_entity_category == EntityCategory.CONFIG assert entity.icon is None @@ -274,12 +274,12 @@ async def test_level_control_number( call({attr: new_value}, manufacturer=UNDEFINED) ] - assert entity.state.state == new_value + assert entity.state.native_value == new_value level_control_cluster.read_attributes.reset_mock() await entity.async_update() # the mocking doesn't update the attr cache so this flips back to initial value - assert entity.state.state == initial_value + assert entity.state.native_value == initial_value assert level_control_cluster.read_attributes.mock_calls == [ call( [attr], @@ -298,11 +298,11 @@ async def test_level_control_number( assert level_control_cluster.write_attributes.mock_calls == [ call({attr: new_value}, manufacturer=UNDEFINED), ] - assert entity.state.state == initial_value + assert entity.state.native_value == initial_value # test updating entity state from client level_control_cluster.read_attributes.reset_mock() - assert entity.state.state == initial_value + assert entity.state.native_value == initial_value level_control_cluster.PLUGGED_ATTR_READS = {attr: new_value} await entity.async_update() await zha_gateway.async_block_till_done() @@ -317,7 +317,7 @@ async def test_level_control_number( manufacturer=UNDEFINED, ), ] - assert entity.state.state == new_value + assert entity.state.native_value == new_value # update value from device await send_attributes_report( @@ -326,7 +326,7 @@ async def test_level_control_number( {level_control_cluster.attributes_by_name[attr].id: initial_value}, ) await zha_gateway.async_block_till_done() - assert entity.state.state == initial_value + assert entity.state.native_value == initial_value @pytest.mark.parametrize( @@ -366,7 +366,7 @@ async def test_color_number( in color_cluster.read_attributes.call_args_list ) - assert entity.state.state == initial_value + assert entity.state.native_value == initial_value assert entity._attr_entity_category == EntityCategory.CONFIG await entity.async_set_native_value(new_value) @@ -375,12 +375,12 @@ async def test_color_number( attr: new_value, } - assert entity.state.state == new_value + assert entity.state.native_value == new_value color_cluster.read_attributes.reset_mock() await entity.async_update() # the mocking doesn't update the attr cache so this flips back to initial value - assert entity.state.state == initial_value + assert entity.state.native_value == initial_value assert color_cluster.read_attributes.call_count == 1 assert ( call( @@ -401,11 +401,11 @@ async def test_color_number( assert color_cluster.write_attributes.mock_calls == [ call({attr: new_value}, manufacturer=UNDEFINED), ] - assert entity.state.state == initial_value + assert entity.state.native_value == initial_value # test updating entity state from client color_cluster.read_attributes.reset_mock() - assert entity.state.state == initial_value + assert entity.state.native_value == initial_value color_cluster.PLUGGED_ATTR_READS = {attr: new_value} await entity.async_update() await zha_gateway.async_block_till_done() @@ -420,7 +420,7 @@ async def test_color_number( manufacturer=UNDEFINED, ), ] - assert entity.state.state == new_value + assert entity.state.native_value == new_value # update value from device await send_attributes_report( @@ -429,4 +429,4 @@ async def test_color_number( {color_cluster.attributes_by_name[attr].id: initial_value}, ) await zha_gateway.async_block_till_done() - assert entity.state.state == initial_value + assert entity.state.native_value == initial_value diff --git a/tests/test_select.py b/tests/test_select.py index 7f9cbdcfa..f1b7dbc12 100644 --- a/tests/test_select.py +++ b/tests/test_select.py @@ -61,7 +61,7 @@ async def test_select(zha_gateway: Gateway) -> None: select_name = security.IasWd.Warning.WarningMode.__name__ entity = get_entity(zha_device, platform=Platform.SELECT, qualifier=select_name) - assert entity.state.state is None # unknown in HA + assert entity.state.current_option is None # unknown in HA assert entity.state.options == [ "Stop", "Burglar", @@ -76,7 +76,9 @@ async def test_select(zha_gateway: Gateway) -> None: # change value from client await entity.async_select_option(security.IasWd.Warning.WarningMode.Burglar.name) await zha_gateway.async_block_till_done() - assert entity.state.state == security.IasWd.Warning.WarningMode.Burglar.name + assert ( + entity.state.current_option == security.IasWd.Warning.WarningMode.Burglar.name + ) class MotionSensitivityQuirk(CustomDevice): @@ -137,13 +139,13 @@ async def test_on_off_select_attribute_report(zha_gateway: Gateway) -> None: cluster = aqara_sensor.device.endpoints.get(1).opple_cluster entity = get_entity(aqara_sensor, platform=Platform.SELECT) - assert entity.state.state == AqaraMotionSensitivities.Medium.name + assert entity.state.current_option == AqaraMotionSensitivities.Medium.name # send attribute report from device await send_attributes_report( zha_gateway, cluster, {"motion_sensitivity": AqaraMotionSensitivities.Low} ) - assert entity.state.state == AqaraMotionSensitivities.Low.name + assert entity.state.current_option == AqaraMotionSensitivities.Low.name ( @@ -210,13 +212,13 @@ async def test_on_off_select_attribute_report_v2( ) # test that the state is in default medium state - assert entity.state.state == AqaraMotionSensitivities.Medium.name + assert entity.state.current_option == AqaraMotionSensitivities.Medium.name # send attribute report from device await send_attributes_report( zha_gateway, cluster, {"motion_sensitivity": AqaraMotionSensitivities.Low} ) - assert entity.state.state == AqaraMotionSensitivities.Low.name + assert entity.state.current_option == AqaraMotionSensitivities.Low.name assert entity._attr_entity_category == EntityCategory.CONFIG assert entity._attr_entity_registry_enabled_default is True @@ -242,7 +244,7 @@ async def test_on_off_select_attribute_report_v2( await entity.async_select_option(AqaraMotionSensitivities.Medium.name) await zha_gateway.async_block_till_done() - assert entity.state.state == AqaraMotionSensitivities.Medium.name + assert entity.state.current_option == AqaraMotionSensitivities.Medium.name assert cluster.write_attributes.call_count == 1 assert cluster.write_attributes.call_args == call( {"motion_sensitivity": AqaraMotionSensitivities.Medium}, @@ -268,17 +270,19 @@ async def test_non_zcl_select_state_restoration(zha_gateway: Gateway) -> None: entity = get_entity(zha_device, platform=Platform.SELECT, qualifier="WarningMode") - assert entity.state.state is None + assert entity.state.current_option is None entity.restore_external_state_attributes( state=security.IasWd.Warning.WarningMode.Burglar.name ) - assert entity.state.state == security.IasWd.Warning.WarningMode.Burglar.name + assert ( + entity.state.current_option == security.IasWd.Warning.WarningMode.Burglar.name + ) entity.restore_external_state_attributes( state=security.IasWd.Warning.WarningMode.Fire.name ) - assert entity.state.state == security.IasWd.Warning.WarningMode.Fire.name + assert entity.state.current_option == security.IasWd.Warning.WarningMode.Fire.name async def test_bega_color_temperature_channel_select(zha_gateway: Gateway) -> None: @@ -296,7 +300,7 @@ async def test_bega_color_temperature_channel_select(zha_gateway: Gateway) -> No platform=Platform.SELECT, qualifier="switchable_white", ) - assert entity.state.state == "Warm white" + assert entity.state.current_option == "Warm white" assert entity.state.options == ["Warm white", "Cool white"] # send attribute report from device @@ -305,7 +309,7 @@ async def test_bega_color_temperature_channel_select(zha_gateway: Gateway) -> No cluster, {"switchable_white": BegaColorTemperatureChannel.Cool_white}, ) - assert entity.state.state == "Cool white" + assert entity.state.current_option == "Cool white" # test selecting an option Write_Attributes_rsp = foundation.GENERAL_COMMANDS[ @@ -327,7 +331,7 @@ async def test_bega_color_temperature_channel_select(zha_gateway: Gateway) -> No ): await entity.async_select_option("Warm white") await zha_gateway.async_block_till_done() - assert entity.state.state == "Warm white" + assert entity.state.current_option == "Warm white" assert cluster.write_attributes.call_count == 1 assert cluster.write_attributes.call_args == call( {"switchable_white": BegaColorTemperatureChannel.Warm_white}, diff --git a/tests/test_sensor.py b/tests/test_sensor.py index 148c3e59a..0ae27554c 100644 --- a/tests/test_sensor.py +++ b/tests/test_sensor.py @@ -449,7 +449,7 @@ async def async_test_setpoint_change_source( cluster, {hvac.Thermostat.AttributeDefs.setpoint_change_source.id: 0x01}, ) - assert entity.state.state == "Schedule" + assert entity.state.native_value == "Schedule" async def async_test_pi_heating_demand( @@ -471,7 +471,7 @@ async def async_test_change_source_timestamp( cluster, {hvac.Thermostat.AttributeDefs.setpoint_change_source_timestamp.id: 781355715}, ) - assert entity.state.state == datetime(2024, 10, 4, 11, 15, 15, tzinfo=UTC) + assert entity.state.native_value == datetime(2024, 10, 4, 11, 15, 15, tzinfo=UTC) async def async_test_em_dc_voltage( @@ -803,7 +803,7 @@ async def test_analog_input_simple(zha_gateway: Gateway) -> None: ) assert entity.state.available is True - assert entity.state.state == 2.1322579383850098 + assert entity.state.native_value == 2.1322579383850098 assert entity.state.fallback_name == "Some description" assert entity.state.translation_key is None assert entity.state.unit == UnitOfElectricPotential.VOLT @@ -878,7 +878,7 @@ async def test_analog_input_complex(zha_gateway: Gateway) -> None: ) assert entity.state.available is True - assert entity.state.state == 2.1322579383850098 + assert entity.state.native_value == 2.1322579383850098 assert entity.state.fallback_name == "Some description" assert entity.state.translation_key is None assert entity.state.unit is PERCENTAGE # overridden! @@ -892,7 +892,7 @@ def assert_state(entity: PlatformEntity, state: Any, unit_of_measurement: str) - This is used to ensure that the logic in each sensor class handled the attribute report it received correctly. """ - assert entity.state.state == state + assert entity.state.native_value == state assert entity.state.unit == unit_of_measurement @@ -926,21 +926,21 @@ async def test_electrical_measurement_init(zha_gateway: Gateway) -> None: cluster, {EMAttrs.active_power.id: 100}, ) - assert entity.state.state == 100 + assert entity.state.native_value == 100 await send_attributes_report( zha_gateway, cluster, {EMAttrs.active_power.id: 30, EMAttrs.ac_power_divisor.id: 10}, ) - assert entity.state.state == 3.0 + assert entity.state.native_value == 3.0 await send_attributes_report( zha_gateway, cluster, {EMAttrs.active_power.id: 30, EMAttrs.ac_power_multiplier.id: 20}, ) - assert entity.state.state == 60.0 + assert entity.state.native_value == 60.0 @pytest.mark.parametrize( @@ -1262,7 +1262,7 @@ async def test_elec_measurement_sensor_polling(zha_gateway: Gateway) -> None: platform=Platform.SENSOR, exact_entity_type=sensor.ElectricalMeasurementActivePower, ) - assert entity.state.state == 2.0 + assert entity.state.native_value == 2.0 # update the value for the power reading zigpy_dev.endpoints[1].electrical_measurement.PLUGGED_ATTR_READS["active_power"] = ( @@ -1270,14 +1270,14 @@ async def test_elec_measurement_sensor_polling(zha_gateway: Gateway) -> None: ) # ensure the state is still 2.0 - assert entity.state.state == 2.0 + assert entity.state.native_value == 2.0 # let the polling happen await asyncio.sleep(90) await zha_gateway.async_block_till_done(wait_background_tasks=True) # ensure the state has been updated to 6.0 - assert entity.state.state == 6.0 + assert entity.state.native_value == 6.0 async def test_metering_sensor_polling(zha_gateway: Gateway) -> None: @@ -1296,7 +1296,7 @@ async def test_metering_sensor_polling(zha_gateway: Gateway) -> None: platform=Platform.SENSOR, exact_entity_type=sensor.SmartEnergySummation, ) - assert entity.state.state == 2.0 + assert entity.state.native_value == 2.0 # update the value for the power reading zigpy_dev.endpoints[1].smartenergy_metering.PLUGGED_ATTR_READS[ @@ -1304,14 +1304,14 @@ async def test_metering_sensor_polling(zha_gateway: Gateway) -> None: ] = 6000 # ensure the state is still 2.0 - assert entity.state.state == 2.0 + assert entity.state.native_value == 2.0 # let the polling happen await asyncio.sleep(90) await zha_gateway.async_block_till_done(wait_background_tasks=True) # ensure the state has been updated to 6.0 - assert entity.state.state == 6.0 + assert entity.state.native_value == 6.0 @pytest.mark.parametrize( @@ -1467,7 +1467,7 @@ async def test_timestamp_sensor_v2(zha_gateway: Gateway) -> None: entity = get_entity(zha_device, platform=Platform.SENSOR, qualifier="start_time") await send_attributes_report(zha_gateway, cluster, {"start_time": 781355715}) - assert entity.state.state == datetime(2024, 10, 4, 11, 15, 15, tzinfo=UTC) + assert entity.state.native_value == datetime(2024, 10, 4, 11, 15, 15, tzinfo=UTC) class OppleCluster(CustomCluster, ManufacturerSpecificCluster): @@ -1719,7 +1719,7 @@ async def test_device_counter_sensors(zha_gateway: Gateway) -> None: qualifier_func=lambda e: e.state.unique_id.endswith("ezsp_counters_counter_1"), ) - assert entity.state.state == 1 + assert entity.state.native_value == 1 # simulate counter increment on application coordinator.device.application.state.counters["ezsp_counters"][ @@ -1729,7 +1729,7 @@ async def test_device_counter_sensors(zha_gateway: Gateway) -> None: await asyncio.sleep(zha_gateway.global_updater.__polling_interval + 2) await zha_gateway.async_block_till_done(wait_background_tasks=True) - assert entity.state.state == 2 + assert entity.state.native_value == 2 # test disabling the entity disables it and removes it from the updater assert len(zha_gateway.global_updater._update_listeners) == 3 @@ -1770,14 +1770,14 @@ async def test_device_unavailable_or_disabled_skips_entity_polling( exact_entity_type=sensor.RSSISensor, ) - assert entity.state.state is None + assert entity.state.native_value is None elec_measurement_zha_dev.device.rssi = 60 await asyncio.sleep(zha_gateway.global_updater.__polling_interval + 2) await zha_gateway.async_block_till_done(wait_background_tasks=True) - assert entity.state.state == 60 + assert entity.state.native_value == 60 assert entity.enabled is True assert len(zha_gateway.global_updater._update_listeners) == 5 @@ -1878,7 +1878,7 @@ async def test_danfoss_thermostat_sw_error(zha_gateway: Gateway) -> None: }, ) - assert entity.state.state == "something" + assert entity.state.native_value == "something" assert entity.state.extra_state_attribute_names assert "Top_pcb_sensor_error" in entity.state.extra_state_attribute_names assert entity.state.bit_states["Top_pcb_sensor_error"] @@ -1927,10 +1927,10 @@ async def test_quirks_sensor_attr_converter(zha_gateway: Gateway) -> None: # send updated value, check if the value is converted await send_attributes_report(zha_gateway, cluster, {"present_value": 100}) - assert entity.state.state == 200.0 + assert entity.state.native_value == 200.0 await send_attributes_report(zha_gateway, cluster, {"present_value": 0}) - assert entity.state.state == 100.0 + assert entity.state.native_value == 100.0 async def test_ignore_non_value(zha_gateway: Gateway) -> None: @@ -1945,7 +1945,7 @@ async def test_ignore_non_value(zha_gateway: Gateway) -> None: cluster = zha_device.device.endpoints[1].temperature entity = get_entity(zha_device, platform=Platform.SENSOR, entity_type=Temperature) - assert entity.state.state == 22.3 + assert entity.state.native_value == 22.3 # Normal attribute report await send_attributes_report( @@ -1953,7 +1953,7 @@ async def test_ignore_non_value(zha_gateway: Gateway) -> None: cluster, {measurement.TemperatureMeasurement.AttributeDefs.measured_value.id: 3000}, ) - assert entity.state.state == 30.0 + assert entity.state.native_value == 30.0 # Invalid attribute value, ignored await send_attributes_report( @@ -1961,7 +1961,7 @@ async def test_ignore_non_value(zha_gateway: Gateway) -> None: cluster, {measurement.TemperatureMeasurement.AttributeDefs.measured_value.id: -0x8000}, ) - assert entity.state.state is None + assert entity.state.native_value is None async def test_ignore_non_value_quirks_v2(zha_gateway: Gateway) -> None: @@ -1979,11 +1979,11 @@ async def test_ignore_non_value_quirks_v2(zha_gateway: Gateway) -> None: # Normal attribute report await send_attributes_report(zha_gateway, cluster, {"measured_value": 100}) - assert entity.state.state == 100 + assert entity.state.native_value == 100 # Invalid attribute value (uint16 non_value), should be ignored await send_attributes_report(zha_gateway, cluster, {"measured_value": 0xFFFF}) - assert entity.state.state is None + assert entity.state.native_value is None async def test_ignore_nan_value(zha_gateway: Gateway) -> None: @@ -2003,7 +2003,7 @@ async def test_ignore_nan_value(zha_gateway: Gateway) -> None: ) # Initial value from the diagnostics file (0.0 * 1e6 = 0.0 ppm) - assert entity.state.state == 0.0 + assert entity.state.native_value == 0.0 # Normal attribute report await send_attributes_report( @@ -2013,7 +2013,7 @@ async def test_ignore_nan_value(zha_gateway: Gateway) -> None: measurement.CarbonMonoxideConcentration.AttributeDefs.measured_value.id: 0.001 }, ) - assert entity.state.state == 1000.0 + assert entity.state.native_value == 1000.0 # NaN attribute value should result in None state await send_attributes_report( @@ -2025,7 +2025,7 @@ async def test_ignore_nan_value(zha_gateway: Gateway) -> None: ), }, ) - assert entity.state.state is None + assert entity.state.native_value is None @pytest.mark.parametrize( @@ -2103,14 +2103,14 @@ async def test_enum_sensor(zha_gateway: Gateway) -> None: zha_device = await join_zigpy_device(zha_gateway, zigpy_dev) entity = get_entity(zha_device, platform=Platform.SENSOR, qualifier="battery_size") - assert entity.state.state == "AAA" + assert entity.state.native_value == "AAA" zigpy_dev.endpoints[1].power.update_attribute( PowerConfiguration.AttributeDefs.battery_size.id, 0xAB, # unknown ) - assert entity.state.state == "undefined_0xab" # TODO: should this be `None`? + assert entity.state.native_value == "undefined_0xab" # TODO: should this be `None`? async def test_em_poller_runs_independently_of_entity_enabled_state( diff --git a/tests/test_siren.py b/tests/test_siren.py index 4c5135c93..9d9338625 100644 --- a/tests/test_siren.py +++ b/tests/test_siren.py @@ -64,7 +64,7 @@ async def test_siren(zha_gateway: Gateway) -> None: | SirenEntityFeature.DURATION ) - assert entity.state.state is False + assert entity.state.is_on is False # turn on from client with patch( @@ -84,7 +84,7 @@ async def test_siren(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to on - assert entity.state.state is True + assert entity.state.is_on is True # turn off from client with patch( @@ -104,7 +104,7 @@ async def test_siren(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to off - assert entity.state.state is False + assert entity.state.is_on is False # turn on from client with options with patch( @@ -124,7 +124,7 @@ async def test_siren(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to on - assert entity.state.state is True + assert entity.state.is_on is True async def test_basic_siren(zha_gateway: Gateway) -> None: @@ -140,7 +140,7 @@ async def test_basic_siren(zha_gateway: Gateway) -> None: | SirenEntityFeature.DURATION ) - assert entity.state.state is False + assert entity.state.is_on is False # turn on from client with patch( @@ -160,7 +160,7 @@ async def test_basic_siren(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to on - assert entity.state.state is True + assert entity.state.is_on is True # turn off from client with patch( @@ -180,7 +180,7 @@ async def test_basic_siren(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to off - assert entity.state.state is False + assert entity.state.is_on is False # turn on from client with duration option with patch( @@ -200,7 +200,7 @@ async def test_basic_siren(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to on - assert entity.state.state is True + assert entity.state.is_on is True async def test_siren_timed_off(zha_gateway: Gateway) -> None: @@ -210,7 +210,7 @@ async def test_siren_timed_off(zha_gateway: Gateway) -> None: entity = get_entity(zha_device, platform=Platform.SIREN) - assert entity.state.state is False + assert entity.state.is_on is False # turn on from client with patch( @@ -230,9 +230,9 @@ async def test_siren_timed_off(zha_gateway: Gateway) -> None: cluster.request.reset_mock() # test that the state has changed to on - assert entity.state.state is True + assert entity.state.is_on is True await asyncio.sleep(6) # test that the state has changed to off from the timer - assert entity.state.state is False + assert entity.state.is_on is False diff --git a/tests/test_switch.py b/tests/test_switch.py index bb21118f5..3213d1970 100644 --- a/tests/test_switch.py +++ b/tests/test_switch.py @@ -124,15 +124,15 @@ async def test_switch(zha_gateway: Gateway) -> None: cluster = zigpy_device.endpoints.get(1).on_off entity: PlatformEntity = get_entity(zha_device, Platform.SWITCH) - assert bool(bool(entity.state.state)) is False + assert bool(bool(entity.state.is_on)) is False # turn on at switch await send_attributes_report(zha_gateway, cluster, {1: 0, 0: 1, 2: 2}) - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True # turn off at switch await send_attributes_report(zha_gateway, cluster, {1: 1, 0: 0, 2: 2}) - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False # turn on from client with patch( @@ -141,7 +141,7 @@ async def test_switch(zha_gateway: Gateway) -> None: ): await entity.async_turn_on() await zha_gateway.async_block_till_done() - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True assert len(cluster.request.mock_calls) == 1 assert cluster.request.call_args == call( False, @@ -161,7 +161,7 @@ async def test_switch(zha_gateway: Gateway) -> None: ): await entity.async_turn_off() await zha_gateway.async_block_till_done() - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True assert len(cluster.request.mock_calls) == 1 assert cluster.request.call_args == call( False, @@ -178,7 +178,7 @@ async def test_switch(zha_gateway: Gateway) -> None: ): await entity.async_turn_off() await zha_gateway.async_block_till_done() - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False assert len(cluster.request.mock_calls) == 1 assert cluster.request.call_args == call( False, @@ -198,7 +198,7 @@ async def test_switch(zha_gateway: Gateway) -> None: ): await entity.async_turn_on() await zha_gateway.async_block_till_done() - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False assert len(cluster.request.mock_calls) == 1 assert cluster.request.call_args == call( False, @@ -210,7 +210,7 @@ async def test_switch(zha_gateway: Gateway) -> None: # test updating entity state from client cluster.read_attributes.reset_mock() - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False cluster.PLUGGED_ATTR_READS = {"on_off": True} await entity.async_update() await zha_gateway.async_block_till_done() @@ -218,7 +218,7 @@ async def test_switch(zha_gateway: Gateway) -> None: assert cluster.read_attributes.await_args == call( ["on_off"], allow_cache=False, only_cache=False, manufacturer=UNDEFINED ) - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True async def test_zha_group_switch_entity(zha_gateway: Gateway) -> None: @@ -251,7 +251,7 @@ async def test_zha_group_switch_entity(zha_gateway: Gateway) -> None: dev2_cluster_on_off = device_switch_2.device.endpoints[1].on_off # test that the lights were created and are off - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False # turn on from HA with patch( @@ -269,7 +269,7 @@ async def test_zha_group_switch_entity(zha_gateway: Gateway) -> None: expect_reply=True, manufacturer=None, ) - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True # turn off from HA with patch( @@ -287,7 +287,7 @@ async def test_zha_group_switch_entity(zha_gateway: Gateway) -> None: expect_reply=True, manufacturer=None, ) - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False # test some of the group logic to make sure we key off states correctly await send_attributes_report(zha_gateway, dev1_cluster_on_off, {0: 1}) @@ -295,40 +295,40 @@ async def test_zha_group_switch_entity(zha_gateway: Gateway) -> None: await zha_gateway.async_block_till_done() # group member updates are debounced - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False await asyncio.sleep(1) await zha_gateway.async_block_till_done() # test that group light is on - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True await send_attributes_report(zha_gateway, dev1_cluster_on_off, {0: 0}) await zha_gateway.async_block_till_done() # test that group light is still on - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True await send_attributes_report(zha_gateway, dev2_cluster_on_off, {0: 0}) await zha_gateway.async_block_till_done() # group member updates are debounced - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True await asyncio.sleep(1) await zha_gateway.async_block_till_done() # test that group light is now off - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False await send_attributes_report(zha_gateway, dev1_cluster_on_off, {0: 1}) await zha_gateway.async_block_till_done() # group member updates are debounced - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False await asyncio.sleep(1) await zha_gateway.async_block_till_done() # test that group light is now back on - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True await group_entity_availability_test( zha_gateway, device_switch_1, device_switch_2, entity @@ -392,19 +392,19 @@ async def test_switch_configurable( entity = get_entity(zha_device, platform=Platform.SWITCH) # test that the state has changed from unavailable to off - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False # turn on at switch await send_attributes_report( zha_gateway, cluster, {"window_detection_function": True} ) - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True # turn off at switch await send_attributes_report( zha_gateway, cluster, {"window_detection_function": False} ) - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False # turn on from HA with patch( @@ -523,15 +523,15 @@ async def test_switch_configurable_custom_on_off_values(zha_gateway: Gateway) -> entity = get_entity(zha_device, platform=Platform.SWITCH) - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False # turn on at switch await send_attributes_report(zha_gateway, cluster, {"window_detection_function": 3}) - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True # turn off at switch await send_attributes_report(zha_gateway, cluster, {"window_detection_function": 5}) - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False # turn on from HA with patch( @@ -605,15 +605,15 @@ async def test_switch_configurable_custom_on_off_values_force_inverted( entity = get_entity(zha_device, platform=Platform.SWITCH) - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True # turn on at switch await send_attributes_report(zha_gateway, cluster, {"window_detection_function": 3}) - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False # turn off at switch await send_attributes_report(zha_gateway, cluster, {"window_detection_function": 5}) - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True # turn on from HA with patch( @@ -690,15 +690,15 @@ async def test_switch_configurable_custom_on_off_values_inverter_attribute( entity = get_entity(zha_device, platform=Platform.SWITCH) - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True # turn on at switch await send_attributes_report(zha_gateway, cluster, {"window_detection_function": 3}) - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False # turn off at switch await send_attributes_report(zha_gateway, cluster, {"window_detection_function": 5}) - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True # turn on from HA with patch( @@ -764,13 +764,13 @@ async def test_cover_inversion_switch(zha_gateway: Gateway) -> None: await entity.async_update() await zha_gateway.async_block_till_done() assert cluster.read_attributes.call_count == prev_call_count + 1 - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False # test to see the state remains after tilting to 0% await send_attributes_report( zha_gateway, cluster, {WCAttrs.current_position_tilt_percentage.id: 0} ) - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False with patch( "zigpy.zcl.Cluster.write_attributes", return_value=[0x1, zcl_f.Status.SUCCESS] @@ -791,7 +791,7 @@ async def test_cover_inversion_switch(zha_gateway: Gateway) -> None: manufacturer=UNDEFINED, ) - assert bool(entity.state.state) is True + assert bool(entity.state.is_on) is True cluster.write_attributes.reset_mock() @@ -807,7 +807,7 @@ async def test_cover_inversion_switch(zha_gateway: Gateway) -> None: manufacturer=UNDEFINED, ) - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False cluster.write_attributes.reset_mock() @@ -816,7 +816,7 @@ async def test_cover_inversion_switch(zha_gateway: Gateway) -> None: await zha_gateway.async_block_till_done() assert cluster.write_attributes.call_count == 0 - assert bool(entity.state.state) is False + assert bool(entity.state.is_on) is False async def test_cover_inversion_switch_not_created(zha_gateway: Gateway) -> None: @@ -863,7 +863,7 @@ async def test_binary_output_cluster(zha_gateway: Gateway) -> None: cluster.update_attribute(BinaryOutput.AttributeDefs.present_value.id, None) assert switch_entity.state.fallback_name == "Entity Description" - assert switch_entity.state.state is False + assert switch_entity.state.is_on is False # Turn it on cluster.write_attributes.reset_mock() @@ -871,7 +871,7 @@ async def test_binary_output_cluster(zha_gateway: Gateway) -> None: assert cluster.write_attributes.mock_calls == [ call({"present_value": True}, manufacturer=UNDEFINED) ] - assert switch_entity.state.state is True + assert switch_entity.state.is_on is True # Turn it off cluster.write_attributes.reset_mock() @@ -879,7 +879,7 @@ async def test_binary_output_cluster(zha_gateway: Gateway) -> None: assert cluster.write_attributes.mock_calls == [ call({"present_value": False}, manufacturer=UNDEFINED) ] - assert switch_entity.state.state is False + assert switch_entity.state.is_on is False # Report an attribute change await send_attributes_report( @@ -887,14 +887,14 @@ async def test_binary_output_cluster(zha_gateway: Gateway) -> None: cluster, {BinaryOutput.AttributeDefs.present_value.id: t.Bool(False)}, ) - assert switch_entity.state.state is False + assert switch_entity.state.is_on is False # Force an update cluster.read_attributes.reset_mock() cluster.PLUGGED_ATTR_READS = {BinaryOutput.AttributeDefs.present_value.name: True} await switch_entity.async_update() - assert switch_entity.state.state is True + assert switch_entity.state.is_on is True assert cluster.read_attributes.mock_calls == [ call( diff --git a/zha/application/platforms/alarm_control_panel/__init__.py b/zha/application/platforms/alarm_control_panel/__init__.py index 7f58006ff..b1e5e5e4f 100644 --- a/zha/application/platforms/alarm_control_panel/__init__.py +++ b/zha/application/platforms/alarm_control_panel/__init__.py @@ -49,7 +49,7 @@ class AlarmControlPanelState(BaseEntityState): """State for alarm control panel entities.""" - state: AlarmState + alarm_state: AlarmState code_arm_required: bool code_format: CodeFormat supported_features: int @@ -65,7 +65,7 @@ def state(self) -> AlarmControlPanelState: """Get the state of the alarm control panel.""" return AlarmControlPanelState( **super().state.__dict__, - state=self.alarm_state, + alarm_state=self.alarm_state, code_arm_required=self.code_arm_required, code_format=self.code_format, supported_features=self.supported_features, diff --git a/zha/application/platforms/binary_sensor/__init__.py b/zha/application/platforms/binary_sensor/__init__.py index 99fa69fa2..91823e13a 100644 --- a/zha/application/platforms/binary_sensor/__init__.py +++ b/zha/application/platforms/binary_sensor/__init__.py @@ -57,7 +57,7 @@ class BinarySensorState(BaseEntityState): """State for binary sensor entities.""" - state: bool + is_on: bool attribute_name: str @@ -84,7 +84,7 @@ def state(self) -> BinarySensorState: """Return the state of the binary sensor.""" return BinarySensorState( **super().state.__dict__, - state=self.is_on, + is_on=self.is_on, attribute_name=self._attribute_name, ) diff --git a/zha/application/platforms/cover/__init__.py b/zha/application/platforms/cover/__init__.py index d1dfd47f0..7256db53c 100644 --- a/zha/application/platforms/cover/__init__.py +++ b/zha/application/platforms/cover/__init__.py @@ -71,7 +71,6 @@ class CoverEntityState(BaseEntityState): current_position: int | None current_tilt_position: int | None - state: CoverState | None is_opening: bool | None is_closing: bool | None is_closed: bool | None @@ -309,7 +308,6 @@ def state(self) -> CoverEntityState: **super().state.__dict__, current_position=self.current_cover_position, current_tilt_position=self.current_cover_tilt_position, - state=self._state, is_opening=self.is_opening, is_closing=self.is_closing, is_closed=self.is_closed, @@ -895,15 +893,10 @@ def on_add(self) -> None: @property def state(self) -> CoverEntityState: """Get the state of the cover.""" - if (closed := self.is_closed) is None: - state = None - else: - state = CoverState.CLOSED if closed else CoverState.OPEN return CoverEntityState( **super().state.__dict__, current_position=self.current_cover_position, current_tilt_position=self.current_cover_tilt_position, - state=state, is_opening=self.is_opening, is_closing=self.is_closing, is_closed=self.is_closed, diff --git a/zha/application/platforms/number/__init__.py b/zha/application/platforms/number/__init__.py index 88767f386..31d67af9d 100644 --- a/zha/application/platforms/number/__init__.py +++ b/zha/application/platforms/number/__init__.py @@ -56,7 +56,7 @@ class NumberState(BaseEntityState): """State for number entities.""" - state: float | None + native_value: float | None mode: NumberMode native_max_value: float native_min_value: float @@ -88,7 +88,7 @@ def state(self) -> NumberState: """Return the state of the entity.""" return NumberState( **super().state.__dict__, - state=self.native_value, + native_value=self.native_value, mode=self.mode, native_max_value=self.native_max_value, native_min_value=self.native_min_value, diff --git a/zha/application/platforms/select.py b/zha/application/platforms/select.py index efaef26c8..2f6fd932d 100644 --- a/zha/application/platforms/select.py +++ b/zha/application/platforms/select.py @@ -72,7 +72,7 @@ class SelectState(BaseEntityState): """State for select entities.""" - state: str | None + current_option: str | None @dataclass(frozen=True, kw_only=True) @@ -100,7 +100,7 @@ def state(self) -> SelectState: """Return the state of the select.""" return SelectState( **super().state.__dict__, - state=self.current_option, + current_option=self.current_option, ) @property diff --git a/zha/application/platforms/sensor/__init__.py b/zha/application/platforms/sensor/__init__.py index 9842158bc..6ff78215b 100644 --- a/zha/application/platforms/sensor/__init__.py +++ b/zha/application/platforms/sensor/__init__.py @@ -167,7 +167,7 @@ class SensorState(BaseEntityState): """State for sensor entities.""" - state: date | datetime | str | int | float | None + native_value: date | datetime | str | int | float | None suggested_display_precision: int | None = None unit: str | None = None @@ -176,7 +176,7 @@ class SensorState(BaseEntityState): class DeviceCounterSensorState(BaseEntityState): """State for device counter sensor entities.""" - state: int | None + native_value: int | None suggested_display_precision: int counter: str counter_value: int @@ -216,7 +216,7 @@ def state(self) -> SensorState: """Return the state for this sensor.""" return SensorState( **super().state.__dict__, - state=self.native_value, + native_value=self.native_value, suggested_display_precision=self.suggested_display_precision, unit=self.native_unit_of_measurement, ) @@ -469,7 +469,7 @@ def state(self) -> DeviceCounterSensorState: """Return the state for this sensor.""" return DeviceCounterSensorState( **super().state.__dict__, - state=self._zigpy_counter.value, + native_value=self._zigpy_counter.value, suggested_display_precision=self._attr_suggested_display_precision, counter=self._zigpy_counter.name, counter_value=self._zigpy_counter.value, diff --git a/zha/application/platforms/siren.py b/zha/application/platforms/siren.py index 04659484a..2e4579db6 100644 --- a/zha/application/platforms/siren.py +++ b/zha/application/platforms/siren.py @@ -60,7 +60,7 @@ class SirenEntityFeature(IntFlag): class SirenState(BaseEntityState): """State for siren entities.""" - state: bool + is_on: bool available_tones: dict[int, str] supported_features: SirenEntityFeature @@ -79,7 +79,7 @@ def state(self) -> SirenState: """Get the state of the siren.""" return SirenState( **super().state.__dict__, - state=self.is_on, + is_on=self.is_on, available_tones=self.available_tones, supported_features=self.supported_features, ) diff --git a/zha/application/platforms/switch.py b/zha/application/platforms/switch.py index fc7016214..f5fc14212 100644 --- a/zha/application/platforms/switch.py +++ b/zha/application/platforms/switch.py @@ -60,7 +60,7 @@ class SwitchState(BaseEntityState): """State for switch entities.""" - state: bool + is_on: bool @dataclass(frozen=True, kw_only=True) @@ -85,7 +85,7 @@ def state(self) -> SwitchState: """Return the state of the switch.""" return SwitchState( **super().state.__dict__, - state=self.is_on, + is_on=self.is_on, ) @property @@ -384,7 +384,7 @@ def update(self, _: Any | None = None) -> None: self.debug( "All platform entity states for group entity members: %s", all_states ) - on_states = [state for state in all_states if state.state] + on_states = [state for state in all_states if state.is_on] self._state = len(on_states) > 0 @@ -488,7 +488,7 @@ def state(self) -> ConfigurableAttributeSwitchState: """Return the state of the switch.""" return ConfigurableAttributeSwitchState( **super().state.__dict__, - state=self.is_on, + is_on=self.is_on, inverted=self.inverted, attribute_name=self._attribute_name, invert_attribute_name=self._inverter_attribute_name, From aeea167c11f7766c6f2536abacc5a539477fef7e Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Fri, 26 Jun 2026 15:02:45 -0400 Subject: [PATCH 4/9] Expose more fan fields used by Core --- zha/application/platforms/fan/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zha/application/platforms/fan/__init__.py b/zha/application/platforms/fan/__init__.py index 5d8f8e712..ed37f19dd 100644 --- a/zha/application/platforms/fan/__init__.py +++ b/zha/application/platforms/fan/__init__.py @@ -70,6 +70,8 @@ class FanState(BaseEntityState): supported_features: FanEntityFeature speed_count: int speed_list: list[str] + speed_range: tuple[int, int] + default_on_percentage: int class BaseFan(BaseEntity, ABC): @@ -170,6 +172,8 @@ def state(self) -> FanState: supported_features=self.supported_features, speed_count=self.speed_count, speed_list=self.speed_list, + speed_range=self.speed_range, + default_on_percentage=self.default_on_percentage, ) async def async_turn_on( From 443881c197da823cfe053bedfd517ae6462dc324 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Fri, 26 Jun 2026 15:02:19 -0400 Subject: [PATCH 5/9] Expose `max_attribute_name` --- zha/application/platforms/sensor/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zha/application/platforms/sensor/__init__.py b/zha/application/platforms/sensor/__init__.py index 6ff78215b..235a9e593 100644 --- a/zha/application/platforms/sensor/__init__.py +++ b/zha/application/platforms/sensor/__init__.py @@ -807,6 +807,7 @@ class ElectricalMeasurementState(SensorState): measurement_type: str | None = None max_value: float | int | None = None + max_attribute_name: str | None = None class BaseElectricalMeasurement(Sensor): @@ -860,6 +861,7 @@ def state(self) -> ElectricalMeasurementState: **super().state.__dict__, measurement_type=self._measurement_type, max_value=max_value, + max_attribute_name=self._attr_max_attribute_name, ) @property From 746bd283c070586a0768a8c1c8541170b3402ad5 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Fri, 26 Jun 2026 13:19:25 -0400 Subject: [PATCH 6/9] Emit state diffs --- zha/application/platforms/__init__.py | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/zha/application/platforms/__init__.py b/zha/application/platforms/__init__.py index fa2998c9f..12ba11934 100644 --- a/zha/application/platforms/__init__.py +++ b/zha/application/platforms/__init__.py @@ -234,6 +234,22 @@ class EntityStateChangedEvent: device_ieee: EUI64 | None = None endpoint_id: int | None = None group_id: int | None = None + state_diff: dict[str, Any] + + +def compute_state_diff( + old: BaseEntityState | None, new: BaseEntityState +) -> dict[str, Any]: + """Return the fields of `new` that differ from `old`.""" + new_values = new.__dict__ + + if old is None: + return dict(new_values) + + old_values = old.__dict__ + return { + name: value for name, value in new_values.items() if old_values[name] != value + } class BaseEntity(LogMixin, EventBase): @@ -448,9 +464,14 @@ async def on_remove(self) -> None: def maybe_emit_state_changed_event(self) -> None: """Send the state of this platform entity.""" state = self.state - if self.__previous_state != state: + previous_state = self.__previous_state + if previous_state != state: self.emit( - STATE_CHANGED, EntityStateChangedEvent(**self.identifiers.__dict__) + STATE_CHANGED, + EntityStateChangedEvent( + **self.identifiers.__dict__, + state_diff=compute_state_diff(previous_state, state), + ), ) self.__previous_state = state From 3f538d644e32de77df929199d7b13919e3ef43e5 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Fri, 26 Jun 2026 14:04:53 -0400 Subject: [PATCH 7/9] Account for entity capabilities changing during add --- zha/zigbee/device.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/zha/zigbee/device.py b/zha/zigbee/device.py index 1ec3919cc..364fb93c7 100644 --- a/zha/zigbee/device.py +++ b/zha/zigbee/device.py @@ -1185,11 +1185,17 @@ async def _add_pending_entities(self, *, emit_event: bool = True) -> None: for entity in new_entities.values(): self._add_entity(entity, emit_event=emit_event) - # Computing the primary entity changes the `primary` field, which is now part - # of the entity state. Absorb that change into each entity's previous-state - # baseline without emitting spurious state-changed events. + # New entities have no listener yet (consumers capture their initial state when + # the add event registers them), so silence their changes with suppress_events(): - for entity in all_entities.values(): + for entity in new_entities.values(): + entity.maybe_emit_state_changed_event() + + # `_compute_primary_entity` above can flip `primary` on an existing entity, and + # the caller may have recomputed their capabilities beforehand; emit so those + # changes reach consumers. + for key, entity in all_entities.items(): + if key not in new_entities: entity.maybe_emit_state_changed_event() async def recompute_entities(self) -> None: From 799d88ce141dcdd7d979d9b8ce8a9ae99254851e Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Fri, 26 Jun 2026 15:03:58 -0400 Subject: [PATCH 8/9] Regenerate diagnostics --- tests/data/devices/adeo-sin-4-fp-21-equ.json | 475 +- .../adeo-zb-watersensor-d0001-0x21120002.json | 300 +- ...durosmart-eria-ad-rgbw3001-0x00000001.json | 675 +- .../adurosmart-eria-adurolight-csc.json | 242 +- .../adurosmart-eria-vms-adurolight.json | 244 +- tests/data/devices/aeotec-zga004.json | 561 +- tests/data/devices/alab-alab-co2-1-1.json | 286 +- .../aqara-lumi-airrtc-aeu001-0x00000a1a.json | 808 +- .../aqara-lumi-airrtc-aeu005-0x00001227.json | 562 +- .../devices/aqara-lumi-curtain-acn04.json | 303 +- .../aqara-lumi-light-acn132-0x00001a1a.json | 1061 +- .../aqara-lumi-light-agl003-0x0000001b.json | 671 +- .../aqara-lumi-light-agl005-0x0000001b.json | 671 +- .../data/devices/aqara-lumi-lunar-acn01.json | 202 +- .../aqara-lumi-motion-ac01-0x00000035.json | 502 +- ...ra-lumi-sensor-occupy-agl1-0x0000001a.json | 584 +- ...ra-lumi-sensor-occupy-agl8-0x00003422.json | 396 +- ...ra-lumi-sensor-occupy-agl8-0x00003a29.json | 399 +- ...ra-lumi-sensor-occupy-agl8-0x0000412a.json | 399 +- .../aqara-lumi-switch-acn047-0x0000001c.json | 769 +- .../aqara-lumi-switch-aeu003-0x00000e14.json | 467 +- .../aqara-lumi-switch-agl007-0x00001116.json | 566 +- .../aqara-lumi-switch-agl010-0x00001315.json | 397 +- ...atlantic-group-adapter-zigbee-fujitsu.json | 399 +- ...inkhaus-gmbh-co-kg-fm-v-zb-0x00000011.json | 300 +- .../data/devices/aurora-doublesocket50au.json | 936 +- tests/data/devices/awox-ercu-ws-zm.json | 145 +- tests/data/devices/awox-esmlfzm-w6-dimm.json | 393 +- tests/data/devices/awox-tlsr82xx.json | 145 +- ...en-kg-smart-dimmable-light-0x00990be9.json | 715 +- .../data/devices/bitron-video-902010-24a.json | 536 +- .../data/devices/bituo-technik-spm01x001.json | 681 +- .../bosch-rbsh-mms-zb-eu-0x11136760.json | 1340 ++- .../bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json | 1703 ++-- .../bosch-rbsh-rth0-zb-eu-0x03036a30.json | 1696 ++-- .../bosch-rbsh-trv0-zb-eu-0x32051514.json | 1277 ++- .../bosch-rbsh-trv0-zb-eu-0x38011514.json | 1336 ++- .../bosch-rbsh-us4btn-zb-eu-0x100d6a30.json | 256 +- tests/data/devices/busch-jaeger-rb01.json | 151 +- tests/data/devices/bweetech-semote.json | 198 +- .../candeo-c-zb-lc20-dim-0x29013001.json | 397 +- .../candeo-c-zb-lc20-rgb-0x31013001.json | 405 +- .../devices/centralite-3300-0x1f075310.json | 350 +- .../devices/centralite-3310-g-0x11015310.json | 352 +- .../centralite-3315-seu-0x1f085310.json | 350 +- tests/data/devices/centralite-3320-l.json | 350 +- .../devices/centralite-3326-l-0x1c005310.json | 350 +- tests/data/devices/centralite-3326-l.json | 350 +- .../devices/centralite-3405-l-0x10025310.json | 399 +- ...centralite-systems-3156105-0x1418468c.json | 679 +- .../climaxtechnology-sd8sc-00-00-03-12tc.json | 479 +- tests/data/devices/computime-slr2b.json | 949 +- .../devices/computime-slt3c-0x02040105.json | 512 +- tests/data/devices/d5x84yu-et093wrg.json | 1108 +-- tests/data/devices/danfoss-0x8040.json | 699 +- .../devices/danfoss-etrv0103-0x00000014.json | 2061 ++-- tests/data/devices/datek-pop.json | 623 +- tests/data/devices/datek-ssds.json | 303 +- ...zhemi-zigbee-external-meter-interface.json | 257 +- tests/data/devices/digi-xbee3.json | 986 +- ...codim-bv-eco-dim-05-zigbee-0x00000001.json | 535 +- .../devices/ecodim-bv-ecodim-zigbee-3-0.json | 535 +- .../devices/ecolink-4655bc0-r-0x20160921.json | 350 +- tests/data/devices/enktro-acmidea.json | 352 +- .../ericsity-gl-c-008p-0x25013001.json | 463 +- .../ericsity-gl-c-009p-0x25013001.json | 452 +- .../devices/espressif-zigbeeanalogdevice.json | 245 +- .../espressif-zigbeebinaryanalogdevice.json | 188 +- .../espressif-zigbeecarbondioxidesensor.json | 192 +- .../eurotronic-spzb0001-0x4501001f.json | 661 +- ...l702-al-01-7009-z102lg03-1-0x00001200.json | 569 +- ...l702-al-01-7009-z102lg03-1-0x00001203.json | 569 +- ...nk-ck-tlsr8656-ss5-01-7000-0x00001102.json | 256 +- tests/data/devices/ewelink-ds01.json | 244 +- tests/data/devices/ewelink-ms01.json | 244 +- tests/data/devices/ewelink-sa-003-zigbee.json | 188 +- .../devices/ewelink-snzb-01p-0x00002000.json | 256 +- .../devices/ewelink-snzb-01p-0x00002200.json | 256 +- .../devices/ewelink-snzb-02p-0x00002100.json | 349 +- .../devices/ewelink-snzb-03p-0x00002201.json | 399 +- .../devices/ewelink-snzb-04p-0x00002200.json | 346 +- tests/data/devices/ewelink-th01.json | 293 +- tests/data/devices/ewelink-wb01.json | 199 +- tests/data/devices/ewelink-zb-sw01.json | 228 +- tests/data/devices/ewelink-zb-sw02.json | 311 +- .../ezviz-cs-t55-r100-g-0x00000002.json | 586 +- .../feibit-inc-co-fzb56-zcw27lx1-0.json | 243 +- .../frient-a-s-aqszb-110-0x00040001.json | 399 +- .../frient-a-s-emizb-141-0x00030102.json | 468 +- .../frient-a-s-emizb-151-0x00030107.json | 910 +- .../frient-a-s-flszb-110-0x00040001.json | 395 +- .../frient-a-s-hmszb-120-0x00040001.json | 352 +- .../frient-a-s-iomzb-110-0x00020001.json | 468 +- .../frient-a-s-kepzb-110-0x0001060a.json | 352 +- .../frient-a-s-kepzb-110-0x00020005.json | 352 +- .../frient-a-s-moszb-140-0x00040006.json | 487 +- .../frient-a-s-moszb-153-0x00020006.json | 548 +- .../frient-a-s-sbtzb-110-0x00020002.json | 303 +- .../frient-a-s-scazb-141-0x00010803.json | 579 +- .../frient-a-s-sirzb-111-0x00020004.json | 538 +- .../frient-a-s-smszb-120-0x00040008.json | 397 +- tests/data/devices/frient-a-s-smszb-120.json | 395 +- .../frient-a-s-splzb-141-0x00020009.json | 622 +- .../frient-a-s-wiszb-131-0x00020006.json | 395 +- .../gledopto-gl-b-008p-0x00000006.json | 463 +- tests/data/devices/gledopto-gl-b-008z.json | 243 +- .../gledopto-gl-c-009p-0x17013001.json | 452 +- .../gledopto-gl-c-009p-0x25013001.json | 397 +- .../gledopto-gl-c-009p-0x29013001.json | 397 +- .../gledopto-gl-sd-301p-0x26013001.json | 452 +- tests/data/devices/gledpopto-gl-c-007p.json | 463 +- ...zigbee-smart-rotary-dimmer-0x00000002.json | 340 +- tests/data/devices/heiman-smokesensor-em.json | 301 +- tests/data/devices/hive-mbr1-0x01047320.json | 202 +- tests/data/devices/hobeian-zg-101zl.json | 356 +- tests/data/devices/hobeian-zg-102zm.json | 244 +- tests/data/devices/hobeian-zg-204zk.json | 246 +- tests/data/devices/hobeian-zg-204zv.json | 385 +- tests/data/devices/hobeian-zg-229z.json | 339 +- tests/data/devices/homr-hrmsn01.json | 872 +- .../horn-zone-haier-hs-22zw-0000011216.json | 190 +- ...dring-water-leakage-sensor-0x01000007.json | 303 +- ...tur-block-out-roller-blind-0x23088631.json | 412 +- ...eden-inspelning-smart-plug-0x02040045.json | 630 +- ...f-sweden-ormanas-led-strip-0x01010010.json | 569 +- ...arasoll-door-window-sensor-0x01000019.json | 303 +- ...praktlysing-cellular-blind-0x23088631.json | 412 +- .../ikea-of-sweden-remote-control-n2.json | 257 +- ...ea-of-sweden-rodret-dimmer-0x01000047.json | 258 +- ...ea-of-sweden-rodret-dimmer-0x01000057.json | 258 +- ...den-rodret-wireless-dimmer-0x01000057.json | 258 +- ...den-somrig-shortcut-button-0x01000021.json | 258 +- ...den-starkvind-air-purifier-0x00011001.json | 629 +- ...arkvind-air-purifier-table-0x00011001.json | 629 +- ...ymfonisk-sound-remote-gen2-0x00010012.json | 258 +- ...fri-bulb-e12-w-op-ch-400lm-0x23094631.json | 503 +- ...fri-bulb-e12-ws-opal-400lm-0x23087631.json | 558 +- ...ri-bulb-e14-ws-globe-470lm-0x01010020.json | 558 +- ...adfri-bulb-e26-opal-1000lm-0x23094631.json | 503 +- ...fri-bulb-e26-w-opal-1000lm-0x23094631.json | 503 +- ...fri-bulb-e26-ws-opal-980lm-0x23095631.json | 558 +- ...i-bulb-e27-ws-globe-1055lm-0x02040005.json | 558 +- ...i-bulb-e27-ww-g95-cl-470lm-0x00011006.json | 503 +- ...tradfri-bulb-gu10-ws-400lm-0x23095631.json | 558 +- ...of-sweden-tradfri-bulb-gu10-ww-345lm8.json | 503 +- ...tradfri-bulb-gu10-ww-400lm-0x23093631.json | 503 +- ...den-tradfri-control-outlet-0x23089631.json | 302 +- .../ikea-of-sweden-tradfri-motion-sensor.json | 303 +- .../ikea-of-sweden-tradfri-on-off-switch.json | 258 +- ...-tradfri-open-close-remote-0x23079631.json | 258 +- ...ikea-of-sweden-tradfri-remote-control.json | 258 +- ...kea-of-sweden-tradfri-shortcut-button.json | 258 +- ...kea-of-sweden-tradfri-wireless-dimmer.json | 258 +- ...orn-wireless-motion-sensor-0x01000064.json | 609 +- .../devices/imagic-by-greatstar-1112-s.json | 446 +- .../devices/innr-ae-280-c-0x20026a30.json | 569 +- .../devices/innr-rb-285-c-0x10051567.json | 463 +- .../data/devices/innr-rc-250-0x21086500.json | 258 +- .../devices/innr-rs-232-c-0x22151511.json | 675 +- .../data/devices/innr-sp-120-0x11040002.json | 516 +- .../data/devices/innr-sp-234-0x31016610.json | 520 +- .../data/devices/innr-sp-240-0x191e3685.json | 520 +- .../data/devices/innr-sp-242-0x17173685.json | 785 +- .../devices/inovelli-vzm30-sn-0x01100100.json | 959 +- tests/data/devices/inovelli-vzm30-sn.json | 1703 ++-- .../devices/inovelli-vzm31-sn-0x01020212.json | 2369 ++--- .../devices/inovelli-vzm35-sn-0x02020107.json | 2488 +++-- tests/data/devices/isilentllc-dog-feeder.json | 325 +- tests/data/devices/isilentllc-doorbell.json | 233 +- .../devices/isilentllc-freezer-monitor.json | 237 +- .../isilentllc-home-energy-monitor.json | 8798 ++++++++--------- ...isilentllc-masterbed-light-controller.json | 477 +- tests/data/devices/isilentllc-safe.json | 371 +- .../data/devices/isilentllc-test-device.json | 231 +- tests/data/devices/isilentllc-test-mule.json | 190 +- .../data/devices/isilentllc-water-heater.json | 395 +- .../jasco-products-45856-0x00000006.json | 397 +- .../jasco-products-45857-0x00000006.json | 452 +- ...-tradfri-open-close-remote-0x22010631.json | 258 +- ...n-home-inc-sv01-410-mp-1-1-0x10235121.json | 402 +- .../keen-home-inc-sv02-610-mp-1-3.json | 402 +- .../keen-home-inc-sv02-612-mp-1-3.json | 402 +- ...ns-inc-hbuniversalcfremote-0x0000000f.json | 418 +- ...-fans-inc-hdc52eastwindfan-0x0000000f.json | 418 +- .../data/devices/konke-3afe140103020000.json | 294 +- .../data/devices/konke-3afe220103020000.json | 294 +- .../data/devices/konke-3afe270104020015.json | 245 +- .../data/devices/konke-3afe280100510001.json | 200 +- .../data/devices/konke-3afe28010402000d.json | 290 +- ...set-smartcode-convert-gen1-0x30a07a06.json | 348 +- .../lds-zb-onoffplug-d0005-0x21186230.json | 519 +- .../lds-zbt-cctswitch-d0001-0x21000006.json | 258 +- .../ledvance-a60s-rgbw-0x02146550.json | 459 +- .../ledvance-flex-rgbw-0x00102428.json | 562 +- ...e-outdoor-accent-light-rgb-0x00102428.json | 562 +- .../devices/ledvance-plug-0x00102101.json | 245 +- tests/data/devices/legrand-contactor.json | 608 +- ...-dimmer-switch-w-o-neutral-0x004d45ff.json | 752 +- .../legrand-double-gangs-remote-switch.json | 301 +- ...-light-switch-with-neutral-0x001c4203.json | 497 +- .../legrand-light-switch-with-neutral.json | 497 +- .../legrand-mobile-outlet-0x006545ff.json | 608 +- .../devices/level-home-b2-0x0300001a.json | 301 +- .../devices/level-home-bolt-0x03020006.json | 301 +- .../devices/lixee-zlinky-tic-0x00000011.json | 1140 +-- .../data/devices/lk-zb-doorsensor-d0003.json | 303 +- .../lk-zbt-dimswitch-d0001-0x22166500.json | 258 +- .../lk-zbt-onoffplug-d0001-0x22036610.json | 461 +- .../devices/lumi-lumi-airmonitor-acn01.json | 399 +- .../lumi-lumi-airrtc-agl001-0x0000001e.json | 954 +- .../data/devices/lumi-lumi-ctrl-neutral2.json | 421 +- .../lumi-lumi-curtain-acn002-0x00000e1f.json | 605 +- .../lumi-lumi-curtain-acn002-0x00000f20.json | 605 +- .../devices/lumi-lumi-curtain-acn003.json | 405 +- .../lumi-lumi-curtain-agl001-0x00000018.json | 655 +- .../devices/lumi-lumi-curtain-hagl04.json | 354 +- .../lumi-lumi-flood-acn001-0x00000004.json | 303 +- .../lumi-lumi-flood-agl02-0x00000020.json | 303 +- .../lumi-lumi-light-aqcn02-0x00000017.json | 342 +- tests/data/devices/lumi-lumi-magnet-ac01.json | 358 +- .../lumi-lumi-magnet-acn001-0x00000004.json | 303 +- .../lumi-lumi-magnet-agl02-0x0000001e.json | 302 +- tests/data/devices/lumi-lumi-motion-ac02.json | 558 +- .../data/devices/lumi-lumi-motion-agl02.json | 395 +- .../lumi-lumi-motion-agl04-0x00000019.json | 503 +- .../lumi-lumi-plug-maeu01-0x0000002d.json | 553 +- tests/data/devices/lumi-lumi-plug-maeu01.json | 614 +- .../lumi-lumi-plug-maus01-0x0000000b.json | 765 +- .../lumi-lumi-relay-c2acn01-0x00000024.json | 737 +- .../devices/lumi-lumi-remote-b286opcn01.json | 201 +- .../data/devices/lumi-lumi-remote-b28ac1.json | 307 +- .../devices/lumi-lumi-remote-b486opcn01.json | 201 +- .../devices/lumi-lumi-remote-b686opcn01.json | 201 +- .../lumi-lumi-remote-cagl02-0x0000001c.json | 257 +- .../data/devices/lumi-lumi-remote-cagl02.json | 258 +- .../data/devices/lumi-lumi-sen-ill-agl01.json | 248 +- .../data/devices/lumi-lumi-sen-ill-mgl01.json | 248 +- .../data/devices/lumi-lumi-sensor-86sw2.json | 305 +- .../devices/lumi-lumi-sensor-ht-agl02.json | 399 +- .../devices/lumi-lumi-sensor-magnet-aq2.json | 293 +- .../devices/lumi-lumi-sensor-motion-aq2.json | 442 +- ...mi-lumi-sensor-smoke-acn03-0x00000011.json | 660 +- .../data/devices/lumi-lumi-sensor-smoke.json | 350 +- .../devices/lumi-lumi-sensor-switch-aq2.json | 197 +- .../devices/lumi-lumi-sensor-switch-aq3.json | 197 +- .../data/devices/lumi-lumi-sensor-switch.json | 258 +- .../devices/lumi-lumi-switch-b1lacn02.json | 378 +- .../lumi-lumi-switch-b1laus01-0x00000020.json | 332 +- .../lumi-lumi-switch-b1naus01-0x0000001f.json | 442 +- .../devices/lumi-lumi-switch-b2naus01.json | 549 +- .../data/devices/lumi-lumi-switch-b2nc01.json | 415 +- .../lumi-lumi-switch-l1aeu1-0x00000e0b.json | 332 +- .../lumi-lumi-switch-l2aeu1-0x00000e0b.json | 415 +- .../lumi-lumi-switch-n0agl1-0x0000001e.json | 567 +- .../data/devices/lumi-lumi-switch-n0agl1.json | 567 +- .../data/devices/lumi-lumi-switch-n1aeu1.json | 456 +- .../lumi-lumi-vibration-agl01-0x0000001c.json | 346 +- .../data/devices/lumi-lumi-vibration-aq1.json | 350 +- tests/data/devices/lumi-lumi-weather.json | 342 +- .../devices/lutron-lzl4bwhl01-remote.json | 94 +- .../devices/lutron-z3-1brl-0x00000c08.json | 256 +- .../mli-tint-extendedcolor-0x10012001.json | 406 +- .../mli-zbt-remote-all-rgbw-0x11010022.json | 202 +- tests/data/devices/namron-as-1402790.json | 398 +- .../devices/namron-as-4512785-0x0000000e.json | 611 +- .../neuhaus-lighting-group-nlg-remote.json | 145 +- .../niko-nv-battery-switch-2-button.json | 258 +- ...nv-battery-switch-4-button-0x21046760.json | 258 +- ...nnectable-motor-control-3a-0x21160006.json | 303 +- tests/data/devices/nodon-sin-4-fp-21.json | 475 +- .../devices/nodon-sin-4-rs-20-0x00010300.json | 570 +- .../occam-temp-sensor-v1-2-jan-19-2026.json | 293 +- ...vibo-250bccf66c41421b91b5e3242942c164.json | 501 +- .../osram-switch-4x-lightify-0x01000000.json | 205 +- ...i-bo-cf31218e11c547179c9c9ade6a492799.json | 241 +- .../devices/paulmann-licht-gmbh-501-34.json | 371 +- .../devices/philips-7602031u7-0x01001d00.json | 463 +- .../philips-915005988601-0x01002000.json | 463 +- .../devices/philips-lct014-0x01001a02.json | 463 +- tests/data/devices/philips-lct026.json | 463 +- .../devices/philips-llc020-0x42006734.json | 463 +- .../devices/philips-lst002-0x01001700.json | 300 +- .../devices/philips-rom001-0x02002f08.json | 256 +- .../devices/philips-rwl020-0x420045b6.json | 301 +- tests/data/devices/philips-rwl020.json | 301 +- .../devices/philips-rwl021-0x43007305.json | 301 +- .../devices/philips-sml001-0x42006bb7.json | 550 +- .../devices/philips-sml001-0x43007305.json | 550 +- .../devices/philips-sml001-0x43007401.json | 550 +- ...aid-systems-ps-sprzms-slp3-0x00000001.json | 352 +- tests/data/devices/ptvo-info-ptvo-switch.json | 716 +- .../devices/samjin-button-0x00000011.json | 348 +- .../data/devices/samjin-multi-0x0000000b.json | 393 +- tests/data/devices/samjin-water.json | 348 +- ...chneider-electric-eko07259-0x01001d00.json | 1899 ++-- ...r-electric-evsckt-outlet-1-0x020a00ff.json | 522 +- .../devices/schneider-electric-lk-dimmer.json | 499 +- ...electric-nhmotion-unidim-1-0x020b0fff.json | 485 +- .../schneider-electric-puck-dimmer-1.json | 393 +- ...er-electric-puck-shutter-1-0x020c02ff.json | 570 +- ...schneider-electric-s520619-0x01003500.json | 815 +- ...r-electric-socket-outlet-1-0x020612ff.json | 522 +- ...r-electric-socket-outlet-2-0x020612ff.json | 522 +- .../data/devices/securifi-ltd-unk-model.json | 515 +- .../devices/sengled-e11-g13-0x00000009.json | 452 +- .../devices/sengled-e12-n14-0x00000004.json | 452 +- .../devices/sengled-e12-n1e-0x0000001e.json | 409 +- tests/data/devices/sengled-e1c-nb6.json | 245 +- .../devices/sengled-e1c-nb7-0x0000001a.json | 414 +- .../devices/sengled-e1f-n9g-0x00000020.json | 452 +- .../devices/sengled-e1g-g8e-0x0000000e.json | 409 +- .../devices/sengled-e21-n1ea-0x00000026.json | 568 +- .../sengled-z01-a19nae26-0x00000020.json | 454 +- .../devices/sercomm-corp-sz-esw01-au.json | 670 +- tests/data/devices/shelly-1pm.json | 516 +- tests/data/devices/shelly-2pm.json | 246 +- tests/data/devices/shelly-dimmer.json | 664 +- tests/data/devices/shelly-ecowitt-ws90.json | 667 +- tests/data/devices/shelly-mini1pm.json | 516 +- .../devices/shyugj-dimmer-switch-zb3-0.json | 340 +- ...ify-netherlands-b-v-lca001-0x01002802.json | 463 +- ...ify-netherlands-b-v-lca005-0x01002402.json | 463 +- ...ify-netherlands-b-v-lca007-0x01001f0a.json | 463 +- ...ify-netherlands-b-v-lcb001-0x01002800.json | 463 +- ...ify-netherlands-b-v-lcb002-0x01001f0a.json | 463 +- ...ify-netherlands-b-v-lce001-0x01002404.json | 463 +- ...ify-netherlands-b-v-lcg006-0x01002502.json | 463 +- ...ify-netherlands-b-v-lcx004-0x01001802.json | 463 +- ...ify-netherlands-b-v-lta010-0x01002402.json | 452 +- ...ify-netherlands-b-v-ltb003-0x01001f0a.json | 452 +- ...ify-netherlands-b-v-lwa003-0x01001f0a.json | 397 +- ...ify-netherlands-b-v-rdm001-0x0000041a.json | 256 +- ...ify-netherlands-b-v-rdm002-0x02003b13.json | 256 +- ...ify-netherlands-b-v-rdm002-0x02003b19.json | 256 +- ...ify-netherlands-b-v-rdm004-0x02004d23.json | 256 +- .../signify-netherlands-b-v-rdm004.json | 256 +- ...ify-netherlands-b-v-rdm005-0x02005301.json | 256 +- ...ify-netherlands-b-v-rwl022-0x02002d02.json | 256 +- ...ify-netherlands-b-v-rwl022-0x02004d27.json | 256 +- ...ify-netherlands-b-v-sml003-0x02003506.json | 554 +- ...ify-netherlands-b-v-sml004-0x02003506.json | 554 +- .../devices/sinope-technologies-va4220zb.json | 594 +- .../devices/smarthjemmet-dk-quad-zig-sw.json | 148 +- .../devices/smarthjemmet-dk-quad-zig-sw2.json | 373 +- .../smartthings-multiv4-0x0000001b.json | 438 +- .../devices/smartthings-tagv4-0x00000019.json | 346 +- .../smartwings-wm25-l-z-0x00000002.json | 412 +- .../somfy-situo-4-zigbee-0x00011a00.json | 435 +- ...onesse-28-wf-li-ion-roller-0x4100e158.json | 411 +- .../somfy-ysia-5-hp-zigbee-0x00e00041.json | 480 +- tests/data/devices/sonoff-01minizb.json | 285 +- tests/data/devices/sonoff-basiczbr3.json | 228 +- tests/data/devices/sonoff-dongle-e-r.json | 590 +- .../devices/sonoff-mini-zbdim-0x00001005.json | 506 +- .../devices/sonoff-mini-zbrbs-0x00001005.json | 550 +- .../devices/sonoff-s26r2zb-0x00002000.json | 245 +- tests/data/devices/sonoff-s31-lite-zb.json | 188 +- .../devices/sonoff-s60zbtpg-0x00001002.json | 520 +- .../devices/sonoff-snzb-01m-0x00001005.json | 255 +- .../devices/sonoff-snzb-02d-0x00002300.json | 720 +- .../devices/sonoff-snzb-04pr2-0x00001001.json | 300 +- .../devices/sonoff-snzb-05p-0x00001002.json | 301 +- .../devices/sonoff-snzb-06p-0x00001006.json | 402 +- tests/data/devices/sonoff-swv-0x00001002.json | 491 +- tests/data/devices/sonoff-swv-0x00001003.json | 491 +- .../data/devices/sonoff-trvzb-0x00001201.json | 1335 ++- .../data/devices/sonoff-trvzb-0x00001400.json | 1335 ++- .../data/devices/sonoff-trvzb-0x00001401.json | 1335 ++- .../devices/sonoff-zbmicro-0x00001005.json | 302 +- .../devices/sonoff-zbminil2-0x0000100e.json | 355 +- .../devices/sonoff-zbminir2-0x00001004.json | 569 +- .../devices/sunricher-hk-dim-0x00000036.json | 746 +- .../sunricher-hk-ln-dim-a-0x00000039.json | 503 +- .../sunricher-on-off-2ch-0x00000004.json | 754 +- .../devices/texasinstruments-ti-router.json | 198 +- ...-ecosmart-zbt-a19-cct-bulb-0x21036500.json | 558 +- ...ird-reality-inc-3rap0149bz-0x0000000e.json | 350 +- .../devices/third-reality-inc-3rds17bz.json | 303 +- ...third-reality-inc-3rms16bz-0x0000004f.json | 303 +- ...hird-reality-inc-3rsb015bz-0x00000048.json | 494 +- .../devices/third-reality-inc-3rsb22bz.json | 260 +- ...hird-reality-inc-3rsm0147z-0x0000001f.json | 405 +- ...rd-reality-inc-3rsnl02043z-0x0000003c.json | 661 +- ...hird-reality-inc-3rsp019bz-0x1001301e.json | 302 +- ...rd-reality-inc-3rsp02028bz-0x10013058.json | 718 +- ...ird-reality-inc-3rsp02064z-0x0000002f.json | 823 +- .../devices/third-reality-inc-3rss007z.json | 245 +- ...third-reality-inc-3rss009z-0x0000001d.json | 354 +- ...hird-reality-inc-3rths24bz-0x00000015.json | 405 +- ...ird-reality-inc-3rvs01031z-0x00000028.json | 250 +- ...third-reality-inc-3rws18bz-0x00000038.json | 403 +- ...third-reality-inc-3rws18bz-0x00000049.json | 403 +- ...st-international-b-v-zll-colortempera.json | 387 +- .../data/devices/tubeszb-tubeszb-router.json | 145 +- .../data/devices/tuyatec-gqhxixyk-rh3052.json | 293 +- .../data/devices/tuyatec-r9hgssol-rh3001.json | 244 +- .../data/devices/tuyatec-rkqiqvcs-rh3001.json | 244 +- .../data/devices/tuyatec-yg5dcbfu-rh3052.json | 293 +- .../data/devices/tyst11-czk78ptr-zk78ptr.json | 607 +- .../tyst11-i5j6ifxj-5j6ifxj-0x00000049.json | 247 +- .../data/devices/tyzb01-1xktopx6-ts0041a.json | 248 +- .../data/devices/tyzb01-8scntis1-ts0216.json | 536 +- .../data/devices/tyzb01-mtunwanm-ts011f.json | 194 +- .../tyzb01-o63ssaah-ts0207-0x00000043.json | 301 +- .../tyzb01-qm6djpta-ts0215-0x00000046.json | 350 +- .../tyzb01-rifa0wlb-ts0011-0x00000041.json | 234 +- .../data/devices/tyzb01-vkwryfdr-ts0115.json | 366 +- .../data/devices/tyzb01-zanh6v1o-ts0121.json | 460 +- .../data/devices/tz2000-k4yr34vv-sm0301.json | 415 +- .../tz3000-09gto2zn-ts0013-0x00000050.json | 451 +- .../data/devices/tz3000-09gto2zn-ts0013.json | 451 +- .../tz3000-1dd0d5yi-ts130f-0x00000047.json | 248 +- .../data/devices/tz3000-1dd0d5yi-ts130f.json | 205 +- .../tz3000-1o6x1bl0-ts0201-0x00000041.json | 303 +- .../data/devices/tz3000-2putqrmw-ts011f.json | 513 +- .../data/devices/tz3000-2xlvlnez-ts011f.json | 444 +- .../data/devices/tz3000-303avxxt-ts011f.json | 625 +- .../tz3000-3ias4w4o-ts011f-0x0000004e.json | 460 +- .../data/devices/tz3000-5e235jpa-ts0042.json | 344 +- .../data/devices/tz3000-5fkufhn1-ts0502a.json | 297 +- .../data/devices/tz3000-5ity3zyu-ts0121.json | 460 +- .../data/devices/tz3000-6l1pjfqe-ts011f.json | 460 +- .../tz3000-8nkb7mof-ts0121-0x00000042.json | 625 +- .../data/devices/tz3000-8nyaanzb-ts011f.json | 288 +- .../data/devices/tz3000-8yhypbo7-ts0203.json | 346 +- .../data/devices/tz3000-a37eix1s-ts0004.json | 534 +- .../data/devices/tz3000-a9buwvb7-ts0726.json | 460 +- .../data/devices/tz3000-adkvzooy-ts0042.json | 343 +- .../data/devices/tz3000-aghwaexm-ts0001.json | 228 +- .../tz3000-bgsigers-ts0201-0x00000040.json | 350 +- .../tz3000-bguser20-ts0201-0x00000045.json | 350 +- .../data/devices/tz3000-bjawzodf-ty0201.json | 304 +- .../tz3000-cehuw1lw-ts011f-0x0000004d.json | 460 +- .../data/devices/tz3000-cfnprab5-ts011f.json | 560 +- .../tz3000-cicwjqth-ts011f-0x74013001.json | 404 +- .../data/devices/tz3000-dbou1ap4-ts0505a.json | 297 +- .../data/devices/tz3000-dowj6gyi-ts0201.json | 350 +- .../tz3000-drc9tuqb-ts0001-0x00000047.json | 395 +- .../data/devices/tz3000-e2uieqop-ts0001.json | 285 +- .../tz3000-eamtuojw-ts0201-0x00000041.json | 299 +- .../data/devices/tz3000-empogkya-ts0003.json | 451 +- .../tz3000-f2bw0b6k-ts0201-0x00000046.json | 350 +- .../tz3000-famkxci2-ts0043-0x00000044.json | 313 +- .../data/devices/tz3000-fdxihpp7-ts0001.json | 441 +- .../tz3000-gbm10jnj-ts0043-0x00000042.json | 442 +- .../tz3000-gjpgagal-ts0049-0x00000049.json | 299 +- .../data/devices/tz3000-gjrubzje-ts0001.json | 553 +- .../data/devices/tz3000-gwkzibhs-ts004f.json | 256 +- .../tz3000-hafsqare-ts0011-0x00000050.json | 245 +- .../tz3000-idhkkbqj-ts0012-0x00000041.json | 317 +- .../tz3000-isw9u95y-ts0201-0x00000040.json | 442 +- .../tz3000-itnrsufe-ts0201-0x00000042.json | 350 +- .../tz3000-j1xl73iw-ts130f-0x00000046.json | 259 +- .../tz3000-ja5osu5g-ts004f-0x00000041.json | 256 +- .../data/devices/tz3000-kjfzuycl-ts004f.json | 256 +- .../data/devices/tz3000-kmsbwdol-ts130f.json | 306 +- .../tz3000-kqvb5akv-ts0001-0x0000004a.json | 500 +- .../data/devices/tz3000-lepzuhto-ts011f.json | 513 +- .../data/devices/tz3000-lf56vpxj-ts0202.json | 345 +- .../data/devices/tz3000-llfaquvp-ts0012.json | 368 +- .../data/devices/tz3000-lotmgthb-ts011f.json | 513 +- .../data/devices/tz3000-lrgccsxm-ts0013.json | 451 +- .../data/devices/tz3000-ltiqubue-ts130f.json | 246 +- .../data/devices/tz3000-mg4dy6z6-ts0202.json | 346 +- .../tz3000-mgusv51k-ts0052-0x00000044.json | 340 +- .../tz3000-mkhkxx1p-ts0001-0x00000048.json | 500 +- .../tz3000-mugyhz0q-ts0207-0x00000041.json | 301 +- .../tz3000-mw1pqqqt-ts0003-0x0000004a.json | 776 +- .../data/devices/tz3000-npzfdcof-ts0001.json | 500 +- .../tz3000-o1jzcxou-ts011f-0x00000043.json | 245 +- .../tz3000-o4mkahkc-ts0202-0x00000046.json | 346 +- .../data/devices/tz3000-okaz9tjs-ts011f.json | 460 +- .../tz3000-p26flek3-ts0001-0x00000053.json | 395 +- .../tz3000-pl5v1yyy-ts011f-0x00000050.json | 632 +- .../data/devices/tz3000-qa8s8vca-ts130f.json | 252 +- .../tz3000-qdnrzbd3-ts0202-0x00000046.json | 346 +- .../data/devices/tz3000-qqdbccb3-ts130f.json | 303 +- .../data/devices/tz3000-r6buo8ba-ts011f.json | 458 +- .../data/devices/tz3000-rbl8c85w-ts0012.json | 368 +- .../tz3000-sgb0xhwn-ts011f-0x00000050.json | 668 +- .../data/devices/tz3000-snq47izk-ts0013.json | 451 +- .../data/devices/tz3000-tgddllx4-ts0001.json | 442 +- .../tz3000-tqlv4ug4-ts0001-0x00000048.json | 610 +- .../tz3000-typdpbpg-ts011f-0x10013607.json | 682 +- .../tz3000-u3oupgdy-ts0004-0x00000050.json | 644 +- .../tz3000-u4kojtqz-ts0002-0x10013607.json | 539 +- .../tz3000-uwkja6z1-ts011f-0x00000045.json | 718 +- .../tz3000-vw8pawxa-ts130f-0x00000048.json | 205 +- .../data/devices/tz3000-w0qqde0g-ts011f.json | 566 +- .../tz3000-wcgyhnp3-ts0222-0x00000045.json | 442 +- .../data/devices/tz3000-wkai4ga5-ts0044.json | 536 +- .../data/devices/tz3000-wkr3jqmr-ts0004.json | 699 +- .../tz3000-wn65ixz9-ts0001-0x00000051.json | 395 +- .../data/devices/tz3000-xa9g7rxs-ts1002.json | 256 +- .../data/devices/tz3000-xabckq1v-ts004f.json | 385 +- .../data/devices/tz3000-xkap8wtb-ts000f.json | 610 +- .../data/devices/tz3000-xr3htd96-ts0201.json | 350 +- .../data/devices/tz3000-xxacnuab-ts0004.json | 589 +- .../tz3000-yj6k7vfo-ts0041-0x00000044.json | 205 +- .../data/devices/tz3000-ynmowqk2-ts011f.json | 460 +- .../devices/tz3000-zl1kmjqx-0x10013001.json | 352 +- .../data/devices/tz3000-zl1kmjqx-ty0201.json | 305 +- .../data/devices/tz3000-zv6x8bt2-ts011f.json | 625 +- .../tz3000-zw7yf6yk-ts0001-0x00000048.json | 500 +- .../tz3002-vaq2bfcu-ts0726-0x00000051.json | 460 +- .../tz3002-zjuvw9zf-ts0726-0x00000055.json | 288 +- .../tz3040-bb6xaihh-ts0202-0x00000048.json | 348 +- .../tz3210-09hzmirw-ts0502b-0x0000005b.json | 342 +- .../data/devices/tz3210-0jxeoadc-ts0049.json | 349 +- .../tz3210-3mpwqzuu-ts110e-0x00000040.json | 372 +- .../tz3210-3ulg9kpo-ts0021-0x00000042.json | 250 +- .../data/devices/tz3210-3ulg9kpo-ts0021.json | 250 +- .../data/devices/tz3210-5rta89nj-ts0601.json | 301 +- .../tz3210-7vgttna6-ts0001-0x00000073.json | 194 +- .../tz3210-a04acm9s-ts0001-0x00000077.json | 194 +- .../data/devices/tz3210-bfwvfyx1-ts0505b.json | 460 +- .../tz3210-comkuwws-ts0502b-0x00000065.json | 289 +- .../tz3210-dwytrmda-ts130f-0x00000042.json | 205 +- .../tz3210-ehcanwyc-ts0502b-0x00000065.json | 289 +- .../data/devices/tz3210-ekjc2rzh-ts0225.json | 196 +- .../data/devices/tz3210-hxtfthp5-ts0505b.json | 350 +- .../tz3210-j4pdtz9v-ts0001-0x00000062.json | 571 +- .../tz3210-jaap6jeb-ts0505b-0x00000065.json | 297 +- .../tz3210-jtifm80b-ts0502b-0x00000065.json | 289 +- .../tz3210-k1msuvg6-ts110e-0x00000040.json | 287 +- .../tz3210-kjafhwd2-ts0210-0x00000044.json | 295 +- .../tz3210-klv2wul0-ts0505b-0x00000065.json | 297 +- .../tz3210-ncw88jfq-ts0201-0x00000083.json | 299 +- .../tz3210-qkj7rujp-ts0201-0x00000043.json | 299 +- .../tz3210-r5afgmkl-ts0505b-0x10013607.json | 619 +- .../tz3210-ru41azca-ts0049-0x00000040.json | 249 +- .../tz3210-sb8x2xci-ts0001-0x00000047.json | 245 +- .../data/devices/tz3210-sixywxvy-ts0505b.json | 297 +- .../tz3210-tgvtvdoc-ts0207-0x00000043.json | 485 +- .../tz3210-u1dreag7-ts0502b-0x00000065.json | 289 +- .../tz3210-ue9kyjnj-ts0502b-0x00000059.json | 342 +- .../data/devices/tz3210-umi6vbsz-ts0505b.json | 350 +- .../data/devices/tz3210-up3pngle-ts0205.json | 295 +- .../tz3210-wuhzzfqg-ts0202-0x000000a1.json | 499 +- .../tz3210-zdrhqmo0-ts0502b-0x00000064.json | 289 +- .../tz3218-7fiyo3kv-ts000f-0x00000051.json | 285 +- .../data/devices/tz3218-awarhusb-ts0225.json | 247 +- .../tz3218-t9ynfz4x-ts0225-0x00000045.json | 247 +- .../tz3218-ya5d6wth-ts000f-0x00000064.json | 534 +- ...90-7v1k4vufotpowp9z-ts1201-0x00000043.json | 245 +- .../tz3290-7v1k4vufotpowp9z-ts1201.json | 245 +- ...90-ot6ewjvmejq5ekhl-ts1201-0x00000043.json | 299 +- .../tz6210-duv6fhwt-ts0601-0x00000042.json | 500 +- .../tzb210-417ikxay-ts0505b-0x00000040.json | 350 +- .../tzb210-lmqquxus-ts0502b-0x00000040.json | 342 +- .../tzb210-rawkvnnm-ts0502b-0x00000040.json | 342 +- .../data/devices/tze200-1n2zev06-ts0601.json | 447 +- .../data/devices/tze200-2aaelwxk-ts0225.json | 1095 +- .../data/devices/tze200-2ekuz3dz-ts0601.json | 151 +- .../data/devices/tze200-2gtsuokt-ts0601.json | 151 +- .../tze200-2se8efxh-ts0601-0x00000048.json | 300 +- .../tze200-3t91nb6k-ts0601-0x00000046.json | 151 +- .../tze200-3towulqd-ts0601-0x00000046.json | 508 +- .../data/devices/tze200-3ylew7b4-ts0601.json | 151 +- .../tze200-4utwozi2-ts0601-0x00000043.json | 564 +- .../tze200-4vobcgd3-ts0601-0x00000053.json | 151 +- .../data/devices/tze200-4wxtg5y9-ts0601.json | 151 +- .../tze200-579lguh2-ts0601-0x00000044.json | 151 +- .../data/devices/tze200-68nvbio9-ts0601.json | 205 +- .../data/devices/tze200-6rdj8dzm-ts0601.json | 564 +- .../tze200-7bztmfm1-ts0601-0x00000046.json | 433 +- .../tze200-7iqgciln-ts0601-0x00000041.json | 151 +- .../tze200-7ytb3h8u-ts0601-0x00000048.json | 714 +- .../tze200-81isopgh-ts0601-0x00000048.json | 502 +- .../data/devices/tze200-86nbew0j-ts0601.json | 151 +- .../tze200-8whfphjv-ts0601-0x00000048.json | 151 +- .../tze200-9caxna4s-ts0301-0x00000049.json | 357 +- .../tze200-9xfjixap-ts0601-0x00000043.json | 564 +- .../data/devices/tze200-a0syesf5-ts0601.json | 236 +- .../data/devices/tze200-a1dia7ml-ts0601.json | 151 +- .../tze200-a7sghmms-ts0601-0x00000048.json | 714 +- .../data/devices/tze200-a7sghmms-ts0601.json | 714 +- .../tze200-abatw3kj-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-agumlajc-ts0601.json | 151 +- .../data/devices/tze200-akjefhj5-ts0601.json | 151 +- .../data/devices/tze200-aoclfnxz-ts0601.json | 454 +- .../tze200-b6wax7g0-ts0601-0x00000043.json | 605 +- .../data/devices/tze200-bcusnqt8-ts0601.json | 151 +- .../tze200-bkkmqmyo-ts0601-0x00000041.json | 461 +- .../data/devices/tze200-bvrlmajk-ts0601.json | 151 +- .../data/devices/tze200-byzdayie-ts0601.json | 364 +- .../tze200-c88teujp-ts0601-0x00000055.json | 776 +- .../tze200-cirvgep4-ts0601-0x00000048.json | 353 +- .../data/devices/tze200-cpbo62rn-ts0601.json | 252 +- .../data/devices/tze200-cpmgn2cf-ts0601.json | 1041 +- .../tze200-crq3r3la-ck-bl702-mws-01-7016.json | 826 +- .../data/devices/tze200-dwcarsat-ts0601.json | 433 +- .../data/devices/tze200-e5hpkc6d-ts0601.json | 151 +- .../data/devices/tze200-eevqq1uv-ts0601.json | 151 +- .../data/devices/tze200-ewxhg6o9-ts0601.json | 364 +- .../data/devices/tze200-f1pvdgoh-ts0601.json | 151 +- .../data/devices/tze200-fvldku9h-ts0601.json | 151 +- .../tze200-g9a3awaj-ts0601-0x00000048.json | 348 +- .../data/devices/tze200-gaj531w3-ts0601.json | 205 +- .../tze200-gjldowol-ts0601-0x00000050.json | 459 +- .../data/devices/tze200-gkfbdvyx-ts0601.json | 553 +- .../data/devices/tze200-gubdgai2-ts0601.json | 252 +- .../tze200-guvc7pdy-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-h4cgnbzg-ts0601.json | 625 +- .../tze200-hhrtiq0x-ts0601-0x00000055.json | 556 +- .../data/devices/tze200-hl0ss9oa-ts0225.json | 237 +- .../tze200-hr0tdd47-ts0601-0x00000048.json | 400 +- .../data/devices/tze200-iba1ckek-ts0601.json | 244 +- .../data/devices/tze200-icka1clh-ts0601.json | 205 +- .../data/devices/tze200-ijey4q29-ts0601.json | 291 +- .../data/devices/tze200-iuk8kupi-ts0601.json | 151 +- .../tze200-js3mgbjb-ts0601-0x00000044.json | 151 +- .../data/devices/tze200-jva8ink8-ts0601.json | 604 +- .../tze200-jwsjbxjs-ts0601-0x00000046.json | 566 +- .../data/devices/tze200-kb5noeto-ts0601.json | 707 +- .../data/devices/tze200-khozatfx-ts0601.json | 151 +- .../data/devices/tze200-kyfqmmyl-ts0601.json | 400 +- .../data/devices/tze200-la2c2uo9-ts0601.json | 236 +- .../data/devices/tze200-laqjm8qd-ts0601.json | 151 +- .../data/devices/tze200-libht6ua-ts0601.json | 151 +- .../tze200-locansqn-ts0601-0x00000048.json | 871 +- .../data/devices/tze200-m9skfctm-ts0601.json | 196 +- .../tze200-mgxy2d9f-ts0601-0x00000043.json | 151 +- .../data/devices/tze200-mja3fuja-ts0601.json | 386 +- .../tze200-moycceze-ts0601-0x00000043.json | 151 +- .../tze200-mudxchsu-ts0601-0x00000045.json | 911 +- .../tze200-myd45weu-ts0601-0x00000048.json | 300 +- .../data/devices/tze200-mz5y07w2-ts0601.json | 654 +- .../data/devices/tze200-mzik0ov2-ts0601.json | 151 +- .../tze200-nklqjk62-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-nklqjk62-ts0601.json | 151 +- .../data/devices/tze200-nojsjtj2-ts0601.json | 244 +- .../data/devices/tze200-npj9bug3-ts0601.json | 293 +- .../tze200-nqaqq4cf-ts0601-0x00000044.json | 151 +- .../data/devices/tze200-ntcy3xu1-ts0601.json | 296 +- .../data/devices/tze200-ny94onlb-ts0601.json | 1159 +-- .../data/devices/tze200-nyvavzbj-ts0601.json | 151 +- .../data/devices/tze200-pay2byax-ts0601.json | 293 +- .../tze200-pl31aqf5-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-pw7mji0l-ts0601.json | 252 +- .../data/devices/tze200-qhlxve78-ts0601.json | 151 +- .../data/devices/tze200-qrztc3ev-ts0601.json | 871 +- .../tze200-qyflbnbj-ts0601-0x00000046.json | 300 +- .../tze200-r32ctezx-ts0601-0x00000046.json | 236 +- .../tze200-r5ksy7qo-ts0601-0x00000043.json | 151 +- .../data/devices/tze200-rccxox8p-ts0601.json | 196 +- .../data/devices/tze200-rk1wojce-ts0601.json | 151 +- .../data/devices/tze200-rks0sgb7-ts0601.json | 151 +- .../tze200-rmymn92d-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-rtrmfadk-ts0601.json | 151 +- .../data/devices/tze200-rxq4iti9-ts0601.json | 670 +- .../data/devices/tze200-s6hzw8g2-ts0601.json | 151 +- .../tze200-sur6q7ko-ts0601-0x00000045.json | 995 +- .../data/devices/tze200-t1blo2bj-ts0601.json | 442 +- .../data/devices/tze200-t6gq6nju-ts0601.json | 151 +- .../data/devices/tze200-udank5zs-ts0601.json | 151 +- .../tze200-uf1qujxj-ts0601-0x00000048.json | 151 +- .../data/devices/tze200-v1jqz5cy-ts0601.json | 151 +- .../data/devices/tze200-v9hkz2yn-ts0601.json | 790 +- .../data/devices/tze200-vdiuwbkq-ts0601.json | 205 +- .../data/devices/tze200-viy9ihs7-ts0601.json | 841 +- .../data/devices/tze200-vuqzj1ej-ts0601.json | 385 +- .../tze200-vvmbj46n-ts0601-0x00000048.json | 871 +- .../tze200-wdfurkoa-ts0601-0x00000041.json | 151 +- .../tze200-wfxuhoea-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-wktrysab-ts0601.json | 815 +- .../data/devices/tze200-wqashyqo-ts0601.json | 293 +- .../data/devices/tze200-xu4a5rhj-ts0601.json | 151 +- .../data/devices/tze200-ya4ft0w4-ts0601.json | 553 +- .../tze200-yia0p3tr-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-yjjdcqsq-ts0601.json | 353 +- .../data/devices/tze200-yojqa8xn-ts0601.json | 547 +- .../data/devices/tze200-yvx5lh6k-ts0601.json | 245 +- .../tze200-yw7cahqs-ts0601-0x00000055.json | 776 +- .../data/devices/tze200-ztvwu4nk-ts0601.json | 151 +- .../data/devices/tze204-1fuxihti-ts0601.json | 252 +- .../tze204-1v1dxkck-ts0601-0x0000004a.json | 406 +- .../tze204-1youk3hj-ts0601-0x0000004a.json | 765 +- .../tze204-4fblxpma-ts0601-0x00000049.json | 204 +- .../tze204-58of2pfn-ts0601-0x0000004a.json | 483 +- .../tze204-5slehgeo-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-5toc8efa-ts0601.json | 151 +- .../data/devices/tze204-7ytb3h8u-ts0601.json | 714 +- .../tze204-81yrt3lo-ts0601-0x0000004a.json | 1348 ++- .../data/devices/tze204-9yapgbuv-ts0601.json | 353 +- .../tze204-a2jcoyuk-ts0601-0x0000004a.json | 151 +- .../tze204-ai4rqhky-ts0601-0x00000049.json | 151 +- .../tze204-aoclfnxz-ts0601-0x0000004a.json | 151 +- .../tze204-b8vxct9l-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-bkkmqmyo-ts0601.json | 471 +- .../data/devices/tze204-bxoo2swd-ts0601.json | 321 +- .../tze204-c2fmom5z-ts0601-0x0000004a.json | 433 +- .../data/devices/tze204-chbyv06x-ts0601.json | 547 +- .../tze204-cirvgep4-ts0601-0x00000049.json | 353 +- .../data/devices/tze204-cjbofhxw-ts0601.json | 204 +- .../tze204-d6i25bwg-ts0601-0x0000004a.json | 245 +- .../data/devices/tze204-dqolcpcp-ts0601.json | 151 +- .../data/devices/tze204-dtzziy1e-ts0601.json | 1036 +- .../tze204-dwcarsat-ts0601-0x0000004a.json | 433 +- .../tze204-eekpf0ft-ts0601-0x0000004a.json | 151 +- .../tze204-ex3rcdha-ts0601-0x0000004a.json | 879 +- .../tze204-fhvdgeuh-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-g2ki0ejr-ts0601.json | 151 +- .../tze204-goecjd1t-ts0601-0x0000004a.json | 151 +- .../tze204-gops3slb-ts0601-0x0000004a.json | 894 +- .../tze204-guvc7pdy-ts0601-0x0000004a.json | 205 +- .../data/devices/tze204-hlx9tnzb-ts0601.json | 236 +- .../tze204-iaeejhvf-ts0601-0x0000004a.json | 1348 ++- .../data/devices/tze204-ijxvkhd0-ts0601.json | 151 +- .../tze204-jrcfsaa3-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-k7mfgaen-ts0601.json | 493 +- .../data/devices/tze204-kobbcyum-ts0601.json | 151 +- .../data/devices/tze204-kyhbrfyl-ts0601.json | 502 +- .../data/devices/tze204-l8xiyymq-ts0601.json | 151 +- .../tze204-lb0fsvba-ts0601-0x0000004a.json | 151 +- .../tze204-lbbg34rj-ts0601-0x0000004a.json | 151 +- .../tze204-lpedvtvr-ts0601-0x0000004a.json | 407 +- .../tze204-lsanae15-ts0601-0x0000004a.json | 151 +- .../tze204-ltwbm23f-ts0601-0x0000004a.json | 1149 +-- .../tze204-ltwbm23f-ts0601-0x0000004e.json | 1149 +-- .../data/devices/tze204-lzriup1j-ts0601.json | 841 +- .../tze204-m64smti7-ts0601-0x0000004a.json | 151 +- .../tze204-m9dzckna-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-mpbki2zm-ts0601.json | 151 +- .../tze204-mtoaryre-ts0601-0x0000004a.json | 1036 +- .../data/devices/tze204-muvkrjr5-ts0601.json | 447 +- .../tze204-mwomyz5n-ts0601-0x0000004a.json | 151 +- .../tze204-nbkshs6k-ts0601-0x0000004a.json | 151 +- .../tze204-nklqjk62-ts0601-0x0000004a.json | 151 +- .../tze204-nlrfgpny-ts0601-0x00000049.json | 661 +- .../tze204-nqqylykc-ts0601-0x0000004a.json | 236 +- .../tze204-nvxorhcj-ts0601-0x0000004a.json | 151 +- .../tze204-ogx8u5z6-ts0601-0x0000004a.json | 564 +- .../data/devices/tze204-p3lqqy2r-ts0601.json | 964 +- .../tze204-pcdmj88b-ts0601-0x00000049.json | 151 +- .../data/devices/tze204-ptaqh9tk-ts0601.json | 234 +- .../tze204-pxbjch8m-ts0601-0x0000004a.json | 151 +- .../tze204-qasjif9e-ts0601-0x0000004a.json | 555 +- .../tze204-qtnjuoae-ts0601-0x00000049.json | 151 +- .../tze204-qvxrkeif-ts0601-0x0000004a.json | 331 +- .../tze204-qyr2m29i-ts0601-0x0000004a.json | 1149 +-- .../tze204-r32ctezx-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-rhblgy0z-ts0601.json | 151 +- .../tze204-rtrmfadk-ts0601-0x00000049.json | 768 +- .../data/devices/tze204-rtrmfadk-ts0601.json | 768 +- .../data/devices/tze204-sooucan5-ts0601.json | 604 +- .../data/devices/tze204-srmahpwl-ts0601.json | 151 +- .../data/devices/tze204-sxm7l9xa-ts0601.json | 555 +- .../tze204-tagezcph-ts0601-0x0000004a.json | 151 +- .../tze204-tdhnhhiy-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-ue3rzddr-ts0601.json | 151 +- .../data/devices/tze204-upagmta9-ts0601.json | 353 +- .../tze204-uxllnywp-ts0601-0x0000004a.json | 557 +- .../tze204-vjpaih9f-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-vmcgja59-ts0601.json | 151 +- .../tze204-w1wwxoja-ts0601-0x0000004a.json | 151 +- .../tze204-wbhaespm-ts0601-0x0000004a.json | 151 +- .../tze204-x8fp01wi-ts0601-0x0000004a.json | 151 +- .../tze204-x9usygq1-ts0601-0x0000004a.json | 151 +- .../tze204-xalsoe3m-ts0601-0x0000004a.json | 662 +- .../tze204-xlppj4f5-ts0601-0x0000004a.json | 355 +- .../tze204-xnbkhhdr-ts0601-0x0000004a.json | 841 +- .../tze204-xu4a5rhj-ts0601-0x0000004a.json | 151 +- .../tze204-ya4ft0w4-ts0601-0x0000004a.json | 610 +- .../data/devices/tze204-yjjdcqsq-ts0601.json | 353 +- .../tze204-yvx5lh6k-ts0601-0x0000004a.json | 433 +- .../data/devices/tze204-zenj4lxv-ts0601.json | 321 +- .../tze204-ztqnh5cg-ts0601-0x0000004a.json | 555 +- .../data/devices/tze204-zxkwaztm-ts0601.json | 301 +- .../tze20c-xbexmf8h-ts130f-0x00000040.json | 151 +- .../tze20c-zka46xbw-ts0601-0x00000051.json | 290 +- .../data/devices/tze284-0zaf1cr8-ts0601.json | 296 +- .../tze284-2gi1hy8s-ts0601-0x00000050.json | 151 +- .../tze284-3mzb0sdz-ts0601-0x00000050.json | 585 +- .../data/devices/tze284-432zhuwe-ts0601.json | 151 +- .../data/devices/tze284-6fopvb6v-ts0601.json | 151 +- .../tze284-6hrnp30w-ts0601-0x00000050.json | 151 +- .../data/devices/tze284-6ocnqlhn-ts0601.json | 151 +- .../data/devices/tze284-6uyu20xu-ts0601.json | 151 +- .../tze284-6ycgarab-ts0601-0x00000050.json | 151 +- .../tze284-78ioiaml-ts0601-0x0000004a.json | 151 +- .../tze284-7gy9mqca-ts0601-0x0000004e.json | 151 +- .../tze284-7zazvlyn-ts0601-0x00000045.json | 151 +- .../tze284-81yrt3lo-ts0601-0x0000004e.json | 151 +- .../tze284-8b9zpaav-ts0601-0x0000004e.json | 151 +- .../tze284-8se38w3c-ts0601-0x0000004d.json | 151 +- .../tze284-a2xewxoo-ts0601-0x0000004e.json | 151 +- .../tze284-aao3yzhs-ts0601-0x0000004d.json | 300 +- .../data/devices/tze284-aao3yzhs-ts0601.json | 300 +- .../tze284-c6wv4xyo-ts0601-0x0000004d.json | 564 +- .../tze284-cf4b5ktf-ts0601-0x0000004e.json | 151 +- .../data/devices/tze284-cjbofhxw-ts0601.json | 151 +- .../data/devices/tze284-dikb3dp6-ts0601.json | 1369 ++- .../tze284-dmckrsxg-ts0601-0x0000004e.json | 151 +- .../tze284-f5efvtbv-ts0601-0x0000004e.json | 151 +- .../data/devices/tze284-fhvpaltk-ts0601.json | 610 +- .../data/devices/tze284-fzo2pocs-ts0601.json | 151 +- .../tze284-g2e6cpnw-ts0601-0x0000004d.json | 151 +- .../tze284-hodyryli-ts0601-0x00000050.json | 151 +- .../tze284-iadro9bf-ts0601-0x0000004e.json | 151 +- .../tze284-idvyees9-ts0601-0x0000004e.json | 151 +- .../tze284-kyyu8rbj-ts0601-0x0000004d.json | 512 +- .../tze284-l8xiyymq-ts0601-0x0000004a.json | 151 +- .../tze284-lq0ffndf-ts0601-0x00000046.json | 151 +- .../tze284-ltwbm23f-ts0601-0x0000004d.json | 151 +- .../tze284-myd45weu-ts0601-0x0000004d.json | 300 +- .../data/devices/tze284-ne4pikwm-ts0601.json | 729 +- .../tze284-nklqjk62-ts0601-0x0000004e.json | 151 +- .../tze284-nnhwcvbk-ts0601-0x0000004d.json | 151 +- .../tze284-o3x45p96-ts0601-0x0000004d.json | 564 +- .../tze284-o9ofysmo-ts0601-0x00000050.json | 151 +- .../tze284-ogx8u5z6-ts0601-0x0000004d.json | 564 +- .../tze284-oitavov2-ts0601-0x00000050.json | 300 +- .../tze284-pcdmj88b-ts0601-0x0000004d.json | 151 +- .../tze284-qyflbnbj-ts0601-0x0000004d.json | 300 +- .../tze284-rjxqso4a-ts0601-0x0000004d.json | 400 +- .../tze284-rlytpmij-ts0601-0x00000051.json | 151 +- .../data/devices/tze284-rqcuwlsa-ts0601.json | 347 +- .../tze284-rvnbnvw8-ts0601-0x0000004e.json | 151 +- .../tze284-sgabhwa6-ts0601-0x0000004d.json | 300 +- .../tze284-upagmta9-ts0601-0x0000004d.json | 353 +- .../tze284-vawy74yh-ts0601-0x0000004d.json | 151 +- .../tze284-vuwtqx0t-ts0601-0x00000050.json | 151 +- .../tze284-wtikaxzs-ts0601-0x0000004d.json | 151 +- .../tze284-xnbkhhdr-ts0601-0x0000004d.json | 894 +- .../tze284-zjhoqbrd-ts0601-0x0000004d.json | 151 +- .../tze284-zm8zpwas-ts0601-0x00000050.json | 151 +- .../tze284-znvwzxkq-ts0601-0x0000004a.json | 151 +- .../tze284-zp8xakad-ts0601-0x0000004d.json | 151 +- ...28c1000000-alh14edn-ts0601-0x00000048.json | 256 +- .../data/devices/tze600-iypcp4py-ts0105.json | 202 +- .../tze608-c75zqghm-ts0603-0x00000040.json | 202 +- .../devices/ubisys-s1-5501-0x02600460.json | 955 +- .../uiot-uiot-windowcovring2-0402.json | 505 +- ...tronics-inc-urc4460bc0-x-r-0x20160921.json | 350 +- .../devices/unk-manufacturer-unk-model.json | 248 +- tests/data/devices/visonic-mct-340-sma.json | 350 +- tests/data/devices/xiaomi-lywsd03mmc.json | 778 +- .../xiaoyan-terncy-sd01-0x0000001a.json | 255 +- tests/data/devices/xyzroe-diy-zintercom.json | 139 +- .../devices/yale-yrd256-tsdb-0x0105002b.json | 301 +- .../devices/yooksmart-d10110-0x12046780.json | 411 +- tests/data/devices/yunding-ford.json | 300 +- tests/data/devices/zbeacon-ts0001.json | 285 +- tests/data/devices/zbeacon-ts0505.json | 988 +- ...ux-andigny-alcantara2-d1-00p1-02z1-00.json | 532 +- .../zemismart-spm02-3z3-0x0000000e.json | 1197 ++- .../devices/zen-within-zen-01-0x0000021f.json | 683 +- 848 files changed, 161068 insertions(+), 196840 deletions(-) diff --git a/tests/data/devices/adeo-sin-4-fp-21-equ.json b/tests/data/devices/adeo-sin-4-fp-21-equ.json index 81c8e8c2f..ecfb7ca0c 100644 --- a/tests/data/devices/adeo-sin-4-fp-21-equ.json +++ b/tests/data/devices/adeo-sin-4-fp-21-equ.json @@ -280,297 +280,250 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] }, { - "info_object": { - "fallback_name": "Pilot wire mode", - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-pilot_wire_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "pilot_wire_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "NodOnPilotWireMode", - "options": [ - "Off", - "Comfort", - "Eco", - "FrostProtection", - "ComfortMinus1", - "ComfortMinus2" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Pilot wire mode", + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-pilot_wire_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "pilot_wire_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "NodOnPilotWireMode", + "options": [ + "Off", + "Comfort", + "Eco", + "FrostProtection", + "ComfortMinus1", + "ComfortMinus2" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 1028, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1028, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 39.737, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 39.737, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/adeo-zb-watersensor-d0001-0x21120002.json b/tests/data/devices/adeo-zb-watersensor-d0001-0x21120002.json index b25eb645b..72637c660 100644 --- a/tests/data/devices/adeo-zb-watersensor-d0001-0x21120002.json +++ b/tests/data/devices/adeo-zb-watersensor-d0001-0x21120002.json @@ -169,189 +169,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x21120002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x21120002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/adurosmart-eria-ad-rgbw3001-0x00000001.json b/tests/data/devices/adurosmart-eria-ad-rgbw3001-0x00000001.json index b9bcbc9ca..c6aae06ac 100644 --- a/tests/data/devices/adurosmart-eria-ad-rgbw3001-0x00000001.json +++ b/tests/data/devices/adurosmart-eria-ad-rgbw3001-0x00000001.json @@ -316,410 +316,341 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.4669871061264973, - 0.3839932860303655 - ], - "color_temp": 397, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.4669871061264973, + 0.3839932860303655 + ], + "color_temp": 397, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/adurosmart-eria-adurolight-csc.json b/tests/data/devices/adurosmart-eria-adurolight-csc.json index d0673a595..6e3af57e6 100644 --- a/tests/data/devices/adurosmart-eria-adurolight-csc.json +++ b/tests/data/devices/adurosmart-eria-adurolight-csc.json @@ -256,154 +256,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 60.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 60.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": true, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true } ] }, diff --git a/tests/data/devices/adurosmart-eria-vms-adurolight.json b/tests/data/devices/adurosmart-eria-vms-adurolight.json index 69e1a1836..7f6209e18 100644 --- a/tests/data/devices/adurosmart-eria-vms-adurolight.json +++ b/tests/data/devices/adurosmart-eria-vms-adurolight.json @@ -184,155 +184,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:07:5b:40:90-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:8d:00:07:5b:40:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:07:5b:40:90-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:07:5b:40:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:07:5b:40:90-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:07:5b:40:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:07:5b:40:90-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:07:5b:40:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:07:5b:40:90-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:07:5b:40:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:07:5b:40:90-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:07:5b:40:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:07:5b:40:90-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:07:5b:40:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:07:5b:40:90-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:07:5b:40:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:07:5b:40:90-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:07:5b:40:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 90.0, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:07:5b:40:90-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:8d:00:07:5b:40:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 90.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.9 } ] }, diff --git a/tests/data/devices/aeotec-zga004.json b/tests/data/devices/aeotec-zga004.json index 5a3adbf94..16aa0fb32 100644 --- a/tests/data/devices/aeotec-zga004.json +++ b/tests/data/devices/aeotec-zga004.json @@ -552,343 +552,286 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-2-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shutter", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": null, - "current_tilt_position": 0, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 240 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-2-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shutter", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_position": null, + "current_tilt_position": 0, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 240 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 0.41 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.41, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-2-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Shutter" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-2-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": "Shutter", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-2-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-2-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/alab-alab-co2-1-1.json b/tests/data/devices/alab-alab-co2-1-1.json index da85a7702..bd652e7d3 100644 --- a/tests/data/devices/alab-alab-co2-1-1.json +++ b/tests/data/devices/alab-alab-co2-1-1.json @@ -194,176 +194,146 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20.1, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 35.92 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.92, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "CarbonDioxideConcentration", - "available": true, - "state": 812000000.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 812000000.0, + "suggested_display_precision": 0, + "unit": "ppm" } ] }, diff --git a/tests/data/devices/aqara-lumi-airrtc-aeu001-0x00000a1a.json b/tests/data/devices/aqara-lumi-airrtc-aeu001-0x00000a1a.json index d773ad64f..e471c38a6 100644 --- a/tests/data/devices/aqara-lumi-airrtc-aeu001-0x00000a1a.json +++ b/tests/data/devices/aqara-lumi-airrtc-aeu001-0x00000a1a.json @@ -729,495 +729,411 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 35.0, - "min_temp": 5.0, - "supported_features": 387, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat_cool", - "cool", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 23.3, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "off", - "hvac_mode": "off", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[0]/off", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2600, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 23.3, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "off", + "hvac_mode": "off", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 35.0, + "min_temp": 5.0, + "supported_features": 387, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat_cool", + "cool", + "heat" + ], + "sys_mode": "[0]/off", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2600, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "ThermostatLocalTempCalibration", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 1.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 35.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.0, + "mode": "box", + "native_max_value": 1.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 0.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 0.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 184 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 184, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -54 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -54, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": -0.01 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -0.01, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 51.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 51.0, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "off", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000a1a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000a1a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-airrtc-aeu005-0x00001227.json b/tests/data/devices/aqara-lumi-airrtc-aeu005-0x00001227.json index d25acc4f9..8f674b2cc 100644 --- a/tests/data/devices/aqara-lumi-airrtc-aeu005-0x00001227.json +++ b/tests/data/devices/aqara-lumi-airrtc-aeu005-0x00001227.json @@ -431,343 +431,283 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 32.0, - "min_temp": 5.0, - "supported_features": 387, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat_cool", - "cool", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 18.0, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": 20.0, - "hvac_action": "idle", - "hvac_mode": "heat_cool", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[1]/heat_cool", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 18.0, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": 20.0, + "hvac_action": "idle", + "hvac_mode": "heat_cool", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 32.0, + "min_temp": 5.0, + "supported_features": 387, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat_cool", + "cool", + "heat" + ], + "sys_mode": "[1]/heat_cool", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "ThermostatLocalTempCalibration", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": 7.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": 7.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 168 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 168, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -69 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -69, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001227", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001227", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-curtain-acn04.json b/tests/data/devices/aqara-lumi-curtain-acn04.json index b05426a9a..5d022a2ff 100644 --- a/tests/data/devices/aqara-lumi-curtain-acn04.json +++ b/tests/data/devices/aqara-lumi-curtain-acn04.json @@ -158,189 +158,158 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 78, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 78, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-light-acn132-0x00001a1a.json b/tests/data/devices/aqara-lumi-light-acn132-0x00001a1a.json index 4154ef790..95825e5aa 100644 --- a/tests/data/devices/aqara-lumi-light-acn132-0x00001a1a.json +++ b/tests/data/devices/aqara-lumi-light-acn132-0x00001a1a.json @@ -275,634 +275,531 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 370 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 41, - "xy_color": [ - 0.312993057145037, - 0.20999465934233616 - ], - "color_temp": 154, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 41, + "xy_color": [ + 0.312993057145037, + 0.20999465934233616 + ], + "color_temp": 154, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 370 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 370, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 250 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 250, + "mode": "auto", + "native_max_value": 370, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Length", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-length", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "length", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 1, - "native_step": 0.2, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Length", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-length", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "length", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 1, + "native_step": 0.2, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Maximum brightness", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-max_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 1, - "native_step": 1.0, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum brightness", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-max_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 1, + "native_step": 1.0, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Minimum brightness", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-min_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 99, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Minimum brightness", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-min_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 99, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Speed", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-speed", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "speed", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Speed", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-speed", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "speed", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": "Audio", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-audio", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "audio", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "LedStripT1Audio", - "options": [ - "Off", - "On" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Audio", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-audio", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "audio", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "LedStripT1Audio", + "options": [ + "Off", + "On" + ] }, { - "info_object": { - "fallback_name": "Audio effect", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-audio_effect", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "audio_effect", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "LedStripT1AudioEffect", - "options": [ - "Random", - "Blink", - "Rainbow", - "Wave" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Audio effect", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-audio_effect", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "audio_effect", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "LedStripT1AudioEffect", + "options": [ + "Random", + "Blink", + "Rainbow", + "Wave" + ] }, { - "info_object": { - "fallback_name": "Audio sensitivity", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-audio_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "audio_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "LedStripT1AudioSensitivity", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Audio sensitivity", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-audio_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "audio_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "LedStripT1AudioSensitivity", + "options": [ + "Low", + "Medium", + "High" + ] }, { - "info_object": { - "fallback_name": "Power on state", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "LedStripT1PowerOnStateMode", - "options": [ - "On", - "Previous", - "Off", - "Toggle" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Power on state", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "LedStripT1PowerOnStateMode", + "options": [ + "On", + "Previous", + "Off", + "Toggle" + ] }, { - "info_object": { - "fallback_name": "Preset", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-preset", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "LedStripT1Preset", - "options": [ - "Breathe", - "Rainbow", - "Sweep", - "Flashing", - "Strobe", - "ReversedRainbow", - "Colorful", - "Scan" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Preset", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-preset", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "LedStripT1Preset", + "options": [ + "Breathe", + "Rainbow", + "Sweep", + "Flashing", + "Strobe", + "ReversedRainbow", + "Colorful", + "Scan" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 168 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 168, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001a1a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001a1a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-light-agl003-0x0000001b.json b/tests/data/devices/aqara-lumi-light-agl003-0x0000001b.json index 3bde2c529..b84dad24f 100644 --- a/tests/data/devices/aqara-lumi-light-agl003-0x0000001b.json +++ b/tests/data/devices/aqara-lumi-light-agl003-0x0000001b.json @@ -624,410 +624,343 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 111, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 1, - "xy_color": [ - 0.3125963225757229, - 0.32767223620965896 - ], - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 1, + "xy_color": [ + 0.3125963225757229, + 0.32767223620965896 + ], + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 111, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 111, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 153 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 153, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 111, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 15, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 15, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 15, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 65 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-light-agl005-0x0000001b.json b/tests/data/devices/aqara-lumi-light-agl005-0x0000001b.json index b458d38cd..eb5af42b4 100644 --- a/tests/data/devices/aqara-lumi-light-agl005-0x0000001b.json +++ b/tests/data/devices/aqara-lumi-light-agl005-0x0000001b.json @@ -630,410 +630,343 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 111, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.1359884031433585, - 0.03999389639124132 - ], - "color_temp": 111, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.1359884031433585, + 0.03999389639124132 + ], + "color_temp": 111, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 111, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 111, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 153 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 153, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 111, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 15, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 15, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 15, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 65 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-lunar-acn01.json b/tests/data/devices/aqara-lumi-lunar-acn01.json index 65627fac2..8423ee43c 100644 --- a/tests/data/devices/aqara-lumi-lunar-acn01.json +++ b/tests/data/devices/aqara-lumi-lunar-acn01.json @@ -127,127 +127,107 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:21:5f:8c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:21:5f:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:21:5f:8c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:21:5f:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:21:5f:8c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:21:5f:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:21:5f:8c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:21:5f:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:21:5f:8c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:21:5f:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:21:5f:8c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:21:5f:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:21:5f:8c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:21:5f:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:21:5f:8c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:21:5f:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-motion-ac01-0x00000035.json b/tests/data/devices/aqara-lumi-motion-ac01-0x00000035.json index f1e28f60b..f791b5e01 100644 --- a/tests/data/devices/aqara-lumi-motion-ac01-0x00000035.json +++ b/tests/data/devices/aqara-lumi-motion-ac01-0x00000035.json @@ -195,308 +195,258 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "occupancy" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-reset_no_presence_status", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "NoPresenceStatusResetButton", - "translation_key": "reset_no_presence_status", - "translation_placeholders": null, - "device_class": "restart", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "reset_no_presence_status", - "attribute_value": 1 - }, - "state": { - "class_name": "NoPresenceStatusResetButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-reset_no_presence_status", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "NoPresenceStatusResetButton", + "translation_key": "reset_no_presence_status", + "translation_placeholders": null, + "device_class": "restart", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "reset_no_presence_status", + "attribute_value": 1 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-approach_distance", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraApproachDistance", - "translation_key": "approach_distance", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "AqaraApproachDistances", - "options": [ - "Far", - "Medium", - "Near" - ] - }, - "state": { - "class_name": "AqaraApproachDistance", - "available": true, - "state": "Far" - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-approach_distance", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraApproachDistance", + "translation_key": "approach_distance", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Far", + "enum": "AqaraApproachDistances", + "options": [ + "Far", + "Medium", + "Near" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-monitoring_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraMonitoringMode", - "translation_key": "monitoring_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "AqaraMonitoringModess", - "options": [ - "Undirected", - "Left Right" - ] - }, - "state": { - "class_name": "AqaraMonitoringMode", - "available": true, - "state": "Left Right" - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-monitoring_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraMonitoringMode", + "translation_key": "monitoring_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Left Right", + "enum": "AqaraMonitoringModess", + "options": [ + "Undirected", + "Left Right" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraMotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "AqaraMotionSensitivities", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "AqaraMotionSensitivity", - "available": true, - "state": "High" - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraMotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "High", + "enum": "AqaraMotionSensitivities", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 27.0 - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 27.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000035", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000035", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-sensor-occupy-agl1-0x0000001a.json b/tests/data/devices/aqara-lumi-sensor-occupy-agl1-0x0000001a.json index 664a3382e..c425cc312 100644 --- a/tests/data/devices/aqara-lumi-sensor-occupy-agl1-0x0000001a.json +++ b/tests/data/devices/aqara-lumi-sensor-occupy-agl1-0x0000001a.json @@ -165,360 +165,300 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} }, { - "info_object": { - "fallback_name": "Presence status reset", - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-reset_no_presence_status", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "reset_no_presence_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "reset_no_presence_status", - "attribute_value": 1 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Presence status reset", + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-reset_no_presence_status", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "reset_no_presence_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "reset_no_presence_status", + "attribute_value": 1 }, { - "info_object": { - "fallback_name": "Restart device", - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-restart_device", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "restart_device", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "restart_device", - "attribute_value": 0 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Restart device", + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-restart_device", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "restart_device", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "restart_device", + "attribute_value": 0 } ], "number": [ { - "info_object": { - "fallback_name": "Approach distance", - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-approach_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "approach_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Approach distance", + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-approach_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "approach_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "m" } ], "select": [ { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "AqaraMotionSensitivity", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "AqaraMotionSensitivity", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": "Motion distance", - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-motion_distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "motion_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Motion distance", + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-motion_distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "motion_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003422.json b/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003422.json index 161586c7d..d94e5d8c8 100644 --- a/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003422.json +++ b/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003422.json @@ -435,244 +435,206 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 176 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 176, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -67 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -67, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 23.65 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 23.65, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 52.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 52.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00003422", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00003422", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003a29.json b/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003a29.json index ae5661b2a..a4e14dd5f 100644 --- a/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003a29.json +++ b/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003a29.json @@ -204,247 +204,206 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 58 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 58, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": 3.03 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": 3.03 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 2 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 21.75 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 21.75, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 39.98 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 39.98, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00003a29", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00003a29", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x0000412a.json b/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x0000412a.json index acf9adf89..e5e487870 100644 --- a/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x0000412a.json +++ b/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x0000412a.json @@ -204,247 +204,206 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 196 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 196, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -51 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -51, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": 0.32 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": 0.32 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 27.34 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 27.34, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 45.99 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 45.99, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000412a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000412a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-switch-acn047-0x0000001c.json b/tests/data/devices/aqara-lumi-switch-acn047-0x0000001c.json index a11774c1e..dfec90939 100644 --- a/tests/data/devices/aqara-lumi-switch-acn047-0x0000001c.json +++ b/tests/data/devices/aqara-lumi-switch-acn047-0x0000001c.json @@ -793,469 +793,398 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-decoupled_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraT2RelayDecoupledMode", - "translation_key": "decoupled_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "DecoupledMode", - "options": [ - "Decoupled", - "ControlRelay" - ] - }, - "state": { - "class_name": "AqaraT2RelayDecoupledMode", - "available": true, - "state": "ControlRelay" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-decoupled_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraT2RelayDecoupledMode", + "translation_key": "decoupled_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "ControlRelay", + "enum": "DecoupledMode", + "options": [ + "Decoupled", + "ControlRelay" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-startup_on_off", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraT2RelayStartupOnOff", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartupOnOff", - "options": [ - "On", - "Previous", - "Off", - "Toggle" - ] - }, - "state": { - "class_name": "AqaraT2RelayStartupOnOff", - "available": true, - "state": "Previous" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-startup_on_off", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraT2RelayStartupOnOff", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Previous", + "enum": "StartupOnOff", + "options": [ + "On", + "Previous", + "Off", + "Toggle" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-switch_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraT2RelaySwitchMode", - "translation_key": "switch_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SwitchMode", - "options": [ - "Power", - "Pulse", - "Dry" - ] - }, - "state": { - "class_name": "AqaraT2RelaySwitchMode", - "available": true, - "state": "Power" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-switch_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraT2RelaySwitchMode", + "translation_key": "switch_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Power", + "enum": "SwitchMode", + "options": [ + "Power", + "Pulse", + "Dry" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-switch_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraT2RelaySwitchType", - "translation_key": "switch_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SwitchType", - "options": [ - "Toggle", - "Momentary", - "NoSwitch" - ] - }, - "state": { - "class_name": "AqaraT2RelaySwitchType", - "available": true, - "state": "Toggle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-switch_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraT2RelaySwitchType", + "translation_key": "switch_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Toggle", + "enum": "SwitchType", + "options": [ + "Toggle", + "Momentary", + "NoSwitch" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-2-64704-decoupled_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraT2RelayDecoupledMode", - "translation_key": "decoupled_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "enum": "DecoupledMode", - "options": [ - "Decoupled", - "ControlRelay" - ] - }, - "state": { - "class_name": "AqaraT2RelayDecoupledMode", - "available": true, - "state": "ControlRelay" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-2-64704-decoupled_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraT2RelayDecoupledMode", + "translation_key": "decoupled_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_option": "ControlRelay", + "enum": "DecoupledMode", + "options": [ + "Decoupled", + "ControlRelay" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 108 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 108, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -84 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -84, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 35.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 789.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 789.9, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001c", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001c", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-switch-aeu003-0x00000e14.json b/tests/data/devices/aqara-lumi-switch-aeu003-0x00000e14.json index 96170d567..1fdc0432f 100644 --- a/tests/data/devices/aqara-lumi-switch-aeu003-0x00000e14.json +++ b/tests/data/devices/aqara-lumi-switch-aeu003-0x00000e14.json @@ -706,291 +706,246 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 196 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 196, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -62 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -62, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000e14", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000e14", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-switch-agl007-0x00001116.json b/tests/data/devices/aqara-lumi-switch-agl007-0x00001116.json index a95479219..4acb8a956 100644 --- a/tests/data/devices/aqara-lumi-switch-agl007-0x00001116.json +++ b/tests/data/devices/aqara-lumi-switch-agl007-0x00001116.json @@ -795,349 +795,295 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 144 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 144, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -64 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -64, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001116", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001116", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aqara-lumi-switch-agl010-0x00001315.json b/tests/data/devices/aqara-lumi-switch-agl010-0x00001315.json index 2ebe1ffb8..a433746c1 100644 --- a/tests/data/devices/aqara-lumi-switch-agl010-0x00001315.json +++ b/tests/data/devices/aqara-lumi-switch-agl010-0x00001315.json @@ -724,249 +724,210 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 81 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 81, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001315", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001315", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/atlantic-group-adapter-zigbee-fujitsu.json b/tests/data/devices/atlantic-group-adapter-zigbee-fujitsu.json index 50a0157b0..1468d8bda 100644 --- a/tests/data/devices/atlantic-group-adapter-zigbee-fujitsu.json +++ b/tests/data/devices/atlantic-group-adapter-zigbee-fujitsu.json @@ -335,244 +335,199 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 16.0, - "supported_features": 395, - "fan_modes": [ - "auto", - "on" - ], - "preset_modes": [], - "hvac_modes": [ - "off", - "heat_cool", - "cool", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 20.0, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "off", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[0]/off", - "occupancy": null, - "occupied_cooling_setpoint": 2600, - "occupied_heating_setpoint": 2300, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 20.0, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "off", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 16.0, + "supported_features": 395, + "fan_modes": [ + "auto", + "on" + ], + "preset_modes": [], + "hvac_modes": [ + "off", + "heat_cool", + "cool", + "heat" + ], + "sys_mode": "[0]/off", + "occupancy": null, + "occupied_cooling_setpoint": 2600, + "occupied_heating_setpoint": 2300, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ] }, diff --git a/tests/data/devices/aug-winkhaus-gmbh-co-kg-fm-v-zb-0x00000011.json b/tests/data/devices/aug-winkhaus-gmbh-co-kg-fm-v-zb-0x00000011.json index 099ddff58..b68d4702b 100644 --- a/tests/data/devices/aug-winkhaus-gmbh-co-kg-fm-v-zb-0x00000011.json +++ b/tests/data/devices/aug-winkhaus-gmbh-co-kg-fm-v-zb-0x00000011.json @@ -175,189 +175,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000011", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000011", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/aurora-doublesocket50au.json b/tests/data/devices/aurora-doublesocket50au.json index 6083e6d81..671e5a2a8 100644 --- a/tests/data/devices/aurora-doublesocket50au.json +++ b/tests/data/devices/aurora-doublesocket50au.json @@ -503,573 +503,495 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 50.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 50.0, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": null, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 6.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 6.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 246.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 246.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 50.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 50.0, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": null, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 3.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 3.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 246.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 246.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/awox-ercu-ws-zm.json b/tests/data/devices/awox-ercu-ws-zm.json index 105f8639f..07956003a 100644 --- a/tests/data/devices/awox-ercu-ws-zm.json +++ b/tests/data/devices/awox-ercu-ws-zm.json @@ -206,92 +206,77 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:50:b9:32:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:b9:32:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:50:b9:32:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 208 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:b9:32:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 208, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:50:b9:32:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -59 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:b9:32:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -59, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/awox-esmlfzm-w6-dimm.json b/tests/data/devices/awox-esmlfzm-w6-dimm.json index dda552e81..3fe300bc9 100644 --- a/tests/data/devices/awox-esmlfzm-w6-dimm.json +++ b/tests/data/devices/awox-esmlfzm-w6-dimm.json @@ -352,246 +352,203 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0, - 0 - ], - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0, + 0 + ], + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/awox-tlsr82xx.json b/tests/data/devices/awox-tlsr82xx.json index a283f7ae9..b879bab46 100644 --- a/tests/data/devices/awox-tlsr82xx.json +++ b/tests/data/devices/awox-tlsr82xx.json @@ -206,92 +206,77 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:01:9c:d6:df:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:9c:d6:df:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:01:9c:d6:df:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:9c:d6:df:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:01:9c:d6:df:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:9c:d6:df:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json b/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json index ee2058d26..b19c0092f 100644 --- a/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json +++ b/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json @@ -441,434 +441,361 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 94, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 94, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "DefaultMoveRateConfigurationEntity", - "available": true, - "state": 75 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 75, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 10 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 10 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-switchable_white", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "BegaColorTemperatureChannelSelect", - "translation_key": "color_temperature_channel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BegaColorTemperatureChannel", - "options": [ - "Warm white", - "Cool white" - ] - }, - "state": { - "class_name": "BegaColorTemperatureChannelSelect", - "available": true, - "state": "Warm white" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-switchable_white", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "BegaColorTemperatureChannelSelect", + "translation_key": "color_temperature_channel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Warm white", + "enum": "BegaColorTemperatureChannel", + "options": [ + "Warm white", + "Cool white" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 172 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 172, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -57 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -57, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00990be9", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00990be9", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/bitron-video-902010-24a.json b/tests/data/devices/bitron-video-902010-24a.json index 16b7ac90d..464d7cc8e 100644 --- a/tests/data/devices/bitron-video-902010-24a.json +++ b/tests/data/devices/bitron-video-902010-24a.json @@ -178,328 +178,278 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-SirenLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultSirenLevelSelectEntity", - "translation_key": "default_siren_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SirenLevel", - "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" - ] - }, - "state": { - "class_name": "DefaultSirenLevelSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-SirenLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultSirenLevelSelectEntity", + "translation_key": "default_siren_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "SirenLevel", + "options": [ + "Low level sound", + "Medium level sound", + "High level sound", + "Very high level sound" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-Strobe", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeSelectEntity", - "translation_key": "default_strobe", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "Strobe", - "options": [ - "No Strobe", - "Strobe" - ] - }, - "state": { - "class_name": "DefaultStrobeSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-Strobe", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeSelectEntity", + "translation_key": "default_strobe", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "Strobe", + "options": [ + "No Strobe", + "Strobe" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-StrobeLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeLevelSelectEntity", - "translation_key": "default_strobe_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StrobeLevel", - "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" - ] - }, - "state": { - "class_name": "DefaultStrobeLevelSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-StrobeLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeLevelSelectEntity", + "translation_key": "default_strobe_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "StrobeLevel", + "options": [ + "Low level strobe", + "Medium level strobe", + "High level strobe", + "Very high level strobe" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-WarningMode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultToneSelectEntity", - "translation_key": "default_siren_tone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "WarningMode", - "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" - ] - }, - "state": { - "class_name": "DefaultToneSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-WarningMode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultToneSelectEntity", + "translation_key": "default_siren_tone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "WarningMode", + "options": [ + "Stop", + "Burglar", + "Fire", + "Emergency", + "Police Panic", + "Fire Panic", + "Emergency Panic" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "siren": [ { - "info_object": { - "fallback_name": "Siren", - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "AdvancedSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "available_tones": { - "1": "Burglar", - "2": "Fire", - "3": "Emergency", - "4": "Police Panic", - "5": "Fire Panic", - "6": "Emergency Panic" - }, - "supported_features": 31 + "fallback_name": "Siren", + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "AdvancedSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "available_tones": { + "1": "Burglar", + "2": "Fire", + "3": "Emergency", + "4": "Police Panic", + "5": "Fire Panic", + "6": "Emergency Panic" }, - "state": { - "class_name": "AdvancedSiren", - "available": true, - "state": false - } + "supported_features": 31 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-4-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 4, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-4-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 4, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/bituo-technik-spm01x001.json b/tests/data/devices/bituo-technik-spm01x001.json index 66a288e63..bad1d514d 100644 --- a/tests/data/devices/bituo-technik-spm01x001.json +++ b/tests/data/devices/bituo-technik-spm01x001.json @@ -303,417 +303,368 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": null - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 10.0, - "zcl_unit_of_measurement": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10.0, + "suggested_display_precision": 3, + "unit": null, + "device_type": null, + "status": null, + "zcl_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": null - }, - "state": { - "class_name": "SmartEnergySummationReceived", - "available": true, - "state": 0.0, - "zcl_unit_of_measurement": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": null, + "device_type": null, + "status": null, + "zcl_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 4992.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4992.0, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 100 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 24178.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 24178.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/bosch-rbsh-mms-zb-eu-0x11136760.json b/tests/data/devices/bosch-rbsh-mms-zb-eu-0x11136760.json index 18191dd34..ad72b031d 100644 --- a/tests/data/devices/bosch-rbsh-mms-zb-eu-0x11136760.json +++ b/tests/data/devices/bosch-rbsh-mms-zb-eu-0x11136760.json @@ -647,813 +647,675 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "blind", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": 100, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "blind", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": 100, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 255 } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": "Long press duration", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_button_hold_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "long_press_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 2, - "native_min_value": 0.1, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Long press duration", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_button_hold_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "long_press_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 2, + "native_min_value": 0.1, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Closing duration", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_closing_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "closing_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 90, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Closing duration", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_closing_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "closing_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 90, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Motor start delay", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_motor_start_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "motor_start_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 20, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motor start delay", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_motor_start_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "motor_start_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 20, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Opening duration", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_opening_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "opening_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 90, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Opening duration", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_opening_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "opening_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 90, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" } ], "select": [ { - "info_object": { - "fallback_name": "Device mode", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-device_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "device_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschDeviceMode", - "options": [ - "Disabled", - "Cover", - "Light" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Device mode", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-device_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "device_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BoschDeviceMode", + "options": [ + "Disabled", + "Cover", + "Light" + ] }, { - "info_object": { - "fallback_name": "Switch type", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-switch_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "switch_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschSwitchType", - "options": [ - "Button", - "Button key change", - "Rocker switch", - "Rocker switch key change" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Switch type", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-switch_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "switch_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BoschSwitchType", + "options": [ + "Button", + "Button key change", + "Rocker switch", + "Rocker switch key change" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-2-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 2, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-2-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-3-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 3, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-3-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 3, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 2.21, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2.21, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Tilt_blind_tilt_and_lift" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Tilt_blind_tilt_and_lift", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": "Motor state", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-motor_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "motor_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Motor state", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-motor_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "motor_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-2-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-2-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-3-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 3, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-3-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x11136760", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x11136760", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json b/tests/data/devices/bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json index 69c057474..5491f2e04 100644 --- a/tests/data/devices/bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json +++ b/tests/data/devices/bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json @@ -343,1021 +343,852 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Valve state", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-valve_state", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "valve_state", - "translation_placeholders": null, - "device_class": "running", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "valve_state" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Valve state", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-valve_state", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "valve_state", + "translation_placeholders": null, + "device_class": "running", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "valve_state" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "cool", - "heat", - "off" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 21.8, - "outdoor_temperature": null, - "target_temperature": 17.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": 0, - "occupied_cooling_setpoint": 2300, - "occupied_heating_setpoint": 1700, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 21.8, + "outdoor_temperature": null, + "target_temperature": 17.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "cool", + "heat", + "off" + ], + "sys_mode": "[4]/heat", + "occupancy": 0, + "occupied_cooling_setpoint": 2300, + "occupied_heating_setpoint": 1700, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "BoschThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 5.0, - "native_min_value": -5.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "BoschThermostatLocalTempCalibration", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "BoschThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "box", + "native_max_value": 5.0, + "native_min_value": -5.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-display_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-display_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Display on-time", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-display_on_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_on_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Display on-time", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-display_on_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_on_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Max cool setpoint limit", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-max_cool_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_cool_setpoint_limit", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 3000, - "native_min_value": -500, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 30.0 - } + "fallback_name": "Max cool setpoint limit", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-max_cool_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_cool_setpoint_limit", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "auto", + "native_max_value": 3000, + "native_min_value": -500, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Min cool setpoint limit", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-min_cool_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_cool_setpoint_limit", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 3000, - "native_min_value": -500, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 5.0 - } + "fallback_name": "Min cool setpoint limit", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-min_cool_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_cool_setpoint_limit", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "auto", + "native_max_value": 3000, + "native_min_value": -500, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Outdoor temperature", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-outdoor_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "outdoor_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 32767, - "native_min_value": -32768, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Outdoor temperature", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-outdoor_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "outdoor_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 32767, + "native_min_value": -32768, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] }, { - "info_object": { - "fallback_name": "Actuator type", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-actuator_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "actuator_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschActuatorType", - "options": [ - "NormallyClosed", - "NormallyOpen" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Actuator type", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-actuator_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "actuator_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BoschActuatorType", + "options": [ + "NormallyClosed", + "NormallyOpen" + ] }, { - "info_object": { - "fallback_name": "Heater type", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-heater_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "heater_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschHeaterType", - "options": [ - "UnderfloorHeating", - "Boiler", - "Radiator", - "CentralHeating" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Heater type", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-heater_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "heater_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BoschHeaterType", + "options": [ + "UnderfloorHeating", + "Boiler", + "Radiator", + "CentralHeating" + ] }, { - "info_object": { - "fallback_name": "Operating mode", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-operating_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "operating_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschOperatingMode", - "options": [ - "Schedule", - "Manual", - "Pause" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Operating mode", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-operating_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "operating_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BoschOperatingMode", + "options": [ + "Schedule", + "Manual", + "Pause" + ] }, { - "info_object": { - "fallback_name": "Sensor connection", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-sensor_connection", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_connection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschSensorConnection", - "options": [ - "NotUsed", - "WithoutRegulation", - "WithRegulation" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Sensor connection", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-sensor_connection", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_connection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BoschSensorConnection", + "options": [ + "NotUsed", + "WithoutRegulation", + "WithRegulation" + ] }, { - "info_object": { - "fallback_name": "Temperature display mode", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-temperature_display_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "temperature_display_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TemperatureDisplayMode", - "options": [ - "Metric", - "Imperial" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Temperature display mode", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-temperature_display_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "temperature_display_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TemperatureDisplayMode", + "options": [ + "Metric", + "Imperial" + ] }, { - "info_object": { - "fallback_name": "Valve status LED", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-valve_status_led", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "valve_status_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschValveStatusLed", - "options": [ - "Off", - "Normal", - "On" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Valve status LED", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-valve_status_led", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "valve_status_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BoschValveStatusLed", + "options": [ + "Off", + "Normal", + "On" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -43 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -43, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_voltage": 6.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 6.2 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 53.26 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 53.26, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": "Manual" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Manual", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Error code", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-error_code", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "error_code", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Error code", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-error_code", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "error_code", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "External temperature", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-external_temperature", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "external_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "External temperature", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-external_temperature", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "external_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": "Heating demand", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Heating demand", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": "Local temperature", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-local_temperature", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "local_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 21.8 - } + "fallback_name": "Local temperature", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-local_temperature", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "local_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 21.8, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "switch": [ { - "info_object": { - "fallback_name": "Boost heating", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-boost_heating", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "boost_heating", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "boost_heating", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Boost heating", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-boost_heating", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "boost_heating", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "boost_heating", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-window_open", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_open", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_open", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-window_open", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_open", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "window_open", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02086a30", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x02086a30", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/bosch-rbsh-rth0-zb-eu-0x03036a30.json b/tests/data/devices/bosch-rbsh-rth0-zb-eu-0x03036a30.json index 0e9f05416..c1a6073a8 100644 --- a/tests/data/devices/bosch-rbsh-rth0-zb-eu-0x03036a30.json +++ b/tests/data/devices/bosch-rbsh-rth0-zb-eu-0x03036a30.json @@ -469,1015 +469,845 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Valve state", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-valve_state", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "valve_state", - "translation_placeholders": null, - "device_class": "running", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "valve_state" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Valve state", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-valve_state", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "valve_state", + "translation_placeholders": null, + "device_class": "running", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "valve_state" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "cool", - "heat", - "off" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 22.95, - "outdoor_temperature": null, - "target_temperature": 21.5, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "cooling", - "hvac_mode": "cool", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[3]/cool", - "occupancy": 0, - "occupied_cooling_setpoint": 2150, - "occupied_heating_setpoint": 2150, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 22.95, + "outdoor_temperature": null, + "target_temperature": 21.5, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "cooling", + "hvac_mode": "cool", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "cool", + "heat", + "off" + ], + "sys_mode": "[3]/cool", + "occupancy": 0, + "occupied_cooling_setpoint": 2150, + "occupied_heating_setpoint": 2150, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "BoschThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 5.0, - "native_min_value": -5.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "BoschThermostatLocalTempCalibration", - "available": true, - "state": -0.9 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "BoschThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -0.9, + "mode": "box", + "native_max_value": 5.0, + "native_min_value": -5.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-display_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 7 - } + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-display_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 7, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Display on-time", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-display_on_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_on_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": "Display on-time", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-display_on_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_on_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Max cool setpoint limit", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-max_cool_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_cool_setpoint_limit", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 3000, - "native_min_value": -500, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 30.0 - } + "fallback_name": "Max cool setpoint limit", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-max_cool_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_cool_setpoint_limit", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "auto", + "native_max_value": 3000, + "native_min_value": -500, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Min cool setpoint limit", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-min_cool_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_cool_setpoint_limit", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 3000, - "native_min_value": -500, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 5.0 - } + "fallback_name": "Min cool setpoint limit", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-min_cool_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_cool_setpoint_limit", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "auto", + "native_max_value": 3000, + "native_min_value": -500, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Outdoor temperature", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-outdoor_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "outdoor_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 32767, - "native_min_value": -32768, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Outdoor temperature", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-outdoor_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "outdoor_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 32767, + "native_min_value": -32768, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] }, { - "info_object": { - "fallback_name": "Actuator type", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-actuator_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "actuator_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschActuatorType", - "options": [ - "NormallyClosed", - "NormallyOpen" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Actuator type", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-actuator_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "actuator_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BoschActuatorType", + "options": [ + "NormallyClosed", + "NormallyOpen" + ] }, { - "info_object": { - "fallback_name": "Heater type", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-heater_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "heater_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschHeaterType", - "options": [ - "UnderfloorHeating", - "Boiler", - "Radiator", - "CentralHeating" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Heater type", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-heater_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "heater_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BoschHeaterType", + "options": [ + "UnderfloorHeating", + "Boiler", + "Radiator", + "CentralHeating" + ] }, { - "info_object": { - "fallback_name": "Operating mode", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-operating_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "operating_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschOperatingMode", - "options": [ - "Schedule", - "Manual", - "Pause" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Manual" - } + "fallback_name": "Operating mode", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-operating_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "operating_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Manual", + "enum": "BoschOperatingMode", + "options": [ + "Schedule", + "Manual", + "Pause" + ] }, { - "info_object": { - "fallback_name": "Sensor connection", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-sensor_connection", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_connection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschSensorConnection", - "options": [ - "NotUsed", - "WithoutRegulation", - "WithRegulation" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Sensor connection", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-sensor_connection", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_connection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BoschSensorConnection", + "options": [ + "NotUsed", + "WithoutRegulation", + "WithRegulation" + ] }, { - "info_object": { - "fallback_name": "Temperature display mode", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-temperature_display_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "temperature_display_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TemperatureDisplayMode", - "options": [ - "Metric", - "Imperial" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Metric" - } + "fallback_name": "Temperature display mode", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-temperature_display_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "temperature_display_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Metric", + "enum": "TemperatureDisplayMode", + "options": [ + "Metric", + "Imperial" + ] }, { - "info_object": { - "fallback_name": "Valve status LED", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-valve_status_led", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "valve_status_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschValveStatusLed", - "options": [ - "Off", - "Normal", - "On" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Valve status LED", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-valve_status_led", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "valve_status_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BoschValveStatusLed", + "options": [ + "Off", + "Normal", + "On" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 164 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 164, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -70 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -70, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 51.98 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 51.98, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "cooling" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "cooling", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": "External" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "External", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Error code", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-error_code", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "error_code", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Error code", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-error_code", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "error_code", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "External temperature", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-external_temperature", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "external_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "External temperature", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-external_temperature", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "external_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": "Heating demand", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Heating demand", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": "Local temperature", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-local_temperature", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "local_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 22.95 - } + "fallback_name": "Local temperature", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-local_temperature", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "local_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.95, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "switch": [ { - "info_object": { - "fallback_name": "Boost heating", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-boost_heating", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "boost_heating", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "boost_heating", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Boost heating", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-boost_heating", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "boost_heating", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "boost_heating", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-window_open", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_open", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_open", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-window_open", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_open", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "window_open", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x03036a30", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x03036a30", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x32051514.json b/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x32051514.json index 1fadc3bb9..e81c435ce 100644 --- a/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x32051514.json +++ b/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x32051514.json @@ -378,771 +378,640 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} }, { - "info_object": { - "fallback_name": "Calibrate valve", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-calibrate_valve", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "Button", - "translation_key": "calibrate_valve", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "calibrate_valve", - "args": [], - "kwargs": {} - }, - "state": { - "class_name": "Button", - "available": true - } + "fallback_name": "Calibrate valve", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-calibrate_valve", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "Button", + "translation_key": "calibrate_valve", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "calibrate_valve", + "args": [], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 21.7, - "outdoor_temperature": null, - "target_temperature": 18.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": 2300, - "occupied_heating_setpoint": 1800, - "pi_heating_demand": 0, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 21.7, + "outdoor_temperature": null, + "target_temperature": 18.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": 2300, + "occupied_heating_setpoint": 1800, + "pi_heating_demand": 0, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "BoschThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 5.0, - "native_min_value": -5.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "BoschThermostatLocalTempCalibration", - "available": true, - "state": -0.6000000000000001 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "BoschThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -0.6000000000000001, + "mode": "box", + "native_max_value": 5.0, + "native_min_value": -5.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 7 - } + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 7, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Display on-time", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_on_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_on_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 10 - } + "fallback_name": "Display on-time", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_on_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_on_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Remote temperature", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-remote_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 0.1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0.0 - } + "fallback_name": "Remote temperature", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-remote_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 0.1, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": "Control sequence", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-ctrl_sequence_of_oper", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "ctrl_sequence_of_oper", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschControlSequenceOfOperation", - "options": [ - "Cooling", - "Heating" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Heating" - } + "fallback_name": "Control sequence", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-ctrl_sequence_of_oper", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "ctrl_sequence_of_oper", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Heating", + "enum": "BoschControlSequenceOfOperation", + "options": [ + "Cooling", + "Heating" + ] }, { - "info_object": { - "fallback_name": "Display orientation", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_orientation", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_orientation", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschDisplayOrientation", - "options": [ - "Normal", - "Flipped" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Normal" - } + "fallback_name": "Display orientation", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_orientation", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_orientation", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Normal", + "enum": "BoschDisplayOrientation", + "options": [ + "Normal", + "Flipped" + ] }, { - "info_object": { - "fallback_name": "Displayed temperature", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-displayed_temperature", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "displayed_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschDisplayedTemperature", - "options": [ - "Target", - "Measured" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Target" - } + "fallback_name": "Displayed temperature", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-displayed_temperature", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "displayed_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Target", + "enum": "BoschDisplayedTemperature", + "options": [ + "Target", + "Measured" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 8.0, - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 2.7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 8.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 2.7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": "External" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "External", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Operating mode", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-operating_mode", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "operating_mode", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": "Manual" - } + "fallback_name": "Operating mode", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-operating_mode", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "operating_mode", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Manual", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Valve adaptation status", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-valve_adapt_status", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "valve_adapt_status", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Valve adaptation status", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-valve_adapt_status", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "valve_adapt_status", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Boost heating", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-boost_heating", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "boost_heating", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "boost_heating", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Boost heating", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-boost_heating", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "boost_heating", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "boost_heating", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-window_open", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_open", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_open", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-window_open", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_open", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "window_open", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x32051514", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x32051514", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x38011514.json b/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x38011514.json index 56eaf445e..d64b0bde1 100644 --- a/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x38011514.json +++ b/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x38011514.json @@ -377,805 +377,669 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} }, { - "info_object": { - "fallback_name": "Calibrate valve", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-calibrate_valve", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "Button", - "translation_key": "calibrate_valve", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "calibrate_valve", - "args": [], - "kwargs": {} - }, - "state": { - "class_name": "Button", - "available": true - } + "fallback_name": "Calibrate valve", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-calibrate_valve", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "Button", + "translation_key": "calibrate_valve", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "calibrate_valve", + "args": [], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 19.8, - "outdoor_temperature": null, - "target_temperature": 21.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": 2300, - "occupied_heating_setpoint": 2100, - "pi_heating_demand": 0, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 19.8, + "outdoor_temperature": null, + "target_temperature": 21.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": 2300, + "occupied_heating_setpoint": 2100, + "pi_heating_demand": 0, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "BoschThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 5.0, - "native_min_value": -5.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "BoschThermostatLocalTempCalibration", - "available": true, - "state": -3.7 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "BoschThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -3.7, + "mode": "box", + "native_max_value": 5.0, + "native_min_value": -5.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 7 - } + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 7, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Display on-time", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_on_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_on_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 10 - } + "fallback_name": "Display on-time", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_on_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_on_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Remote temperature", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-remote_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 0.1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0.0 - } + "fallback_name": "Remote temperature", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-remote_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 0.1, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] }, { - "info_object": { - "fallback_name": "Control sequence", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-ctrl_sequence_of_oper", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "ctrl_sequence_of_oper", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschControlSequenceOfOperation", - "options": [ - "Cooling", - "Heating" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Heating" - } + "fallback_name": "Control sequence", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-ctrl_sequence_of_oper", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "ctrl_sequence_of_oper", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Heating", + "enum": "BoschControlSequenceOfOperation", + "options": [ + "Cooling", + "Heating" + ] }, { - "info_object": { - "fallback_name": "Display orientation", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_orientation", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_orientation", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschDisplayOrientation", - "options": [ - "Normal", - "Flipped" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Normal" - } + "fallback_name": "Display orientation", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_orientation", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_orientation", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Normal", + "enum": "BoschDisplayOrientation", + "options": [ + "Normal", + "Flipped" + ] }, { - "info_object": { - "fallback_name": "Displayed temperature", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-displayed_temperature", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "displayed_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BoschDisplayedTemperature", - "options": [ - "Target", - "Measured" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Measured" - } + "fallback_name": "Displayed temperature", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-displayed_temperature", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "displayed_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Measured", + "enum": "BoschDisplayedTemperature", + "options": [ + "Target", + "Measured" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 236 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 236, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -41 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -41, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 28.0, - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 2.6 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 28.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 2.6 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": "Manual" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Manual", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Operating mode", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-operating_mode", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "operating_mode", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": "Manual" - } + "fallback_name": "Operating mode", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-operating_mode", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "operating_mode", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Manual", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Valve adaptation status", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-valve_adapt_status", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "valve_adapt_status", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": "CalibrationInProgress" - } + "fallback_name": "Valve adaptation status", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-valve_adapt_status", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "valve_adapt_status", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "CalibrationInProgress", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Boost heating", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-boost_heating", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "boost_heating", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "boost_heating", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Boost heating", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-boost_heating", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "boost_heating", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "boost_heating", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-window_open", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_open", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_open", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-window_open", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_open", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "window_open", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x38011514", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x38011514", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/bosch-rbsh-us4btn-zb-eu-0x100d6a30.json b/tests/data/devices/bosch-rbsh-us4btn-zb-eu-0x100d6a30.json index 735a1db28..84e0d43ff 100644 --- a/tests/data/devices/bosch-rbsh-us4btn-zb-eu-0x100d6a30.json +++ b/tests/data/devices/bosch-rbsh-us4btn-zb-eu-0x100d6a30.json @@ -349,161 +349,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:78:47:04-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:78:47:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:78:47:04-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:78:47:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:78:47:04-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:78:47:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:78:47:04-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:78:47:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:78:47:04-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:78:47:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:78:47:04-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:78:47:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:78:47:04-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:78:47:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:78:47:04-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:55:78:47:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:78:47:04-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:78:47:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x100d6a30", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:78:47:04-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:78:47:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x100d6a30", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/busch-jaeger-rb01.json b/tests/data/devices/busch-jaeger-rb01.json index bcd39bc72..fca150ac0 100644 --- a/tests/data/devices/busch-jaeger-rb01.json +++ b/tests/data/devices/busch-jaeger-rb01.json @@ -158,95 +158,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:db:33:21-10-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:db:33:21", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:db:33:21-10-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:db:33:21", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:db:33:21-10-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:db:33:21", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:db:33:21-10-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:db:33:21", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:db:33:21-10-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:db:33:21", - "endpoint_id": 10, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:db:33:21-10-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:db:33:21", + "endpoint_id": 10, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/bweetech-semote.json b/tests/data/devices/bweetech-semote.json index 47ff59ee2..6e4d5d443 100644 --- a/tests/data/devices/bweetech-semote.json +++ b/tests/data/devices/bweetech-semote.json @@ -195,125 +195,107 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 104 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 104, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -85 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -85, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ] }, diff --git a/tests/data/devices/candeo-c-zb-lc20-dim-0x29013001.json b/tests/data/devices/candeo-c-zb-lc20-dim-0x29013001.json index e7a65b84a..52d79283a 100644 --- a/tests/data/devices/candeo-c-zb-lc20-dim-0x29013001.json +++ b/tests/data/devices/candeo-c-zb-lc20-dim-0x29013001.json @@ -202,248 +202,205 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 129 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 129, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x29013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x29013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/candeo-c-zb-lc20-rgb-0x31013001.json b/tests/data/devices/candeo-c-zb-lc20-rgb-0x31013001.json index 972562297..618da3d32 100644 --- a/tests/data/devices/candeo-c-zb-lc20-rgb-0x31013001.json +++ b/tests/data/devices/candeo-c-zb-lc20-rgb-0x31013001.json @@ -257,252 +257,209 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 158, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 2, - "xy_color": [ - 0.07499809262226291, - 0.8 - ], - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 2, + "xy_color": [ + 0.07499809262226291, + 0.8 + ], + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 158, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 196 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 196, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -51 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": -51, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x31013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x31013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/centralite-3300-0x1f075310.json b/tests/data/devices/centralite-3300-0x1f075310.json index 839702e8a..9c75c1f6a 100644 --- a/tests/data/devices/centralite-3300-0x1f075310.json +++ b/tests/data/devices/centralite-3300-0x1f075310.json @@ -231,220 +231,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 23.35 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 23.35, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x1f075310", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x1f075310", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/centralite-3310-g-0x11015310.json b/tests/data/devices/centralite-3310-g-0x11015310.json index b8e7aa4a2..de01968ab 100644 --- a/tests/data/devices/centralite-3310-g-0x11015310.json +++ b/tests/data/devices/centralite-3310-g-0x11015310.json @@ -240,219 +240,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 144 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 144, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -64 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -64, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 92.5, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 92.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 21.37 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 21.37, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-64581", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartThingsHumidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "SmartThingsHumidity", - "available": true, - "state": 59.87 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-64581", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartThingsHumidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 59.87, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x11015310", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x11015310", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/centralite-3315-seu-0x1f085310.json b/tests/data/devices/centralite-3315-seu-0x1f085310.json index ea8cc5475..d72f2d34e 100644 --- a/tests/data/devices/centralite-3315-seu-0x1f085310.json +++ b/tests/data/devices/centralite-3315-seu-0x1f085310.json @@ -275,220 +275,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 65 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 92.5, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 92.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.53 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20.53, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x1f085310", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x1f085310", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/centralite-3320-l.json b/tests/data/devices/centralite-3320-l.json index 8f303076b..a237cf6fb 100644 --- a/tests/data/devices/centralite-3320-l.json +++ b/tests/data/devices/centralite-3320-l.json @@ -261,220 +261,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.17 - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20.17, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/centralite-3326-l-0x1c005310.json b/tests/data/devices/centralite-3326-l-0x1c005310.json index 8de456146..eb42f461f 100644 --- a/tests/data/devices/centralite-3326-l-0x1c005310.json +++ b/tests/data/devices/centralite-3326-l-0x1c005310.json @@ -269,220 +269,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -71 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -71, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.9 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 15.62 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 15.62, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x1c005310", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x1c005310", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/centralite-3326-l.json b/tests/data/devices/centralite-3326-l.json index 4cd89d36f..63f4dbbb1 100644 --- a/tests/data/devices/centralite-3326-l.json +++ b/tests/data/devices/centralite-3326-l.json @@ -262,220 +262,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 84.5, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.6 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 84.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.6 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 18.38 - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 18.38, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/centralite-3405-l-0x10025310.json b/tests/data/devices/centralite-3405-l-0x10025310.json index a6adcea8b..a541c73f1 100644 --- a/tests/data/devices/centralite-3405-l-0x10025310.json +++ b/tests/data/devices/centralite-3405-l-0x10025310.json @@ -237,251 +237,210 @@ "zha_lib_entities": { "alarm_control_panel": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-1281", - "migrate_unique_ids": [], - "platform": "alarm_control_panel", - "class_name": "AlarmControlPanel", - "translation_key": "alarm_control_panel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "code_arm_required": false, - "code_format": "number", - "supported_features": 15 - }, - "state": { - "class_name": "AlarmControlPanel", - "available": true, - "state": "disarmed" - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-1281", + "migrate_unique_ids": [], + "platform": "alarm_control_panel", + "class_name": "AlarmControlPanel", + "translation_key": "alarm_control_panel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "alarm_state": "disarmed", + "code_arm_required": false, + "code_format": "number", + "supported_features": 15 } ], "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Other", - "battery_quantity": 2, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 2, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.81 - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.81, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x10025310", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x10025310", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/centralite-systems-3156105-0x1418468c.json b/tests/data/devices/centralite-systems-3156105-0x1418468c.json index 78e95611e..355b8d85c 100644 --- a/tests/data/devices/centralite-systems-3156105-0x1418468c.json +++ b/tests/data/devices/centralite-systems-3156105-0x1418468c.json @@ -396,415 +396,346 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 393, - "fan_modes": [ - "auto", - "on" - ], - "preset_modes": [], - "hvac_modes": [ - "cool", - "heat", - "off" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 20.05, - "outdoor_temperature": 0.0, - "target_temperature": 20.6, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": 0, - "occupied_cooling_setpoint": 2333, - "occupied_heating_setpoint": 2055, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": 2600, - "unoccupied_heating_setpoint": 2000 - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 20.05, + "outdoor_temperature": 0.0, + "target_temperature": 20.6, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 393, + "fan_modes": [ + "auto", + "on" + ], + "preset_modes": [], + "hvac_modes": [ + "cool", + "heat", + "off" + ], + "sys_mode": "[4]/heat", + "occupancy": 0, + "occupied_cooling_setpoint": 2333, + "occupied_heating_setpoint": 2055, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": 2600, + "unoccupied_heating_setpoint": 2000 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "ThermostatLocalTempCalibration", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": 7.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": 7.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": 7.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 7.0 - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 7.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": 7.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.9 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x1418468c", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x1418468c", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/climaxtechnology-sd8sc-00-00-03-12tc.json b/tests/data/devices/climaxtechnology-sd8sc-00-00-03-12tc.json index 99d3a6021..89895e6c6 100644 --- a/tests/data/devices/climaxtechnology-sd8sc-00-00-03-12tc.json +++ b/tests/data/devices/climaxtechnology-sd8sc-00-00-03-12tc.json @@ -155,293 +155,248 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-SirenLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultSirenLevelSelectEntity", - "translation_key": "default_siren_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SirenLevel", - "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" - ] - }, - "state": { - "class_name": "DefaultSirenLevelSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-SirenLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultSirenLevelSelectEntity", + "translation_key": "default_siren_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "SirenLevel", + "options": [ + "Low level sound", + "Medium level sound", + "High level sound", + "Very high level sound" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-Strobe", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeSelectEntity", - "translation_key": "default_strobe", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "Strobe", - "options": [ - "No Strobe", - "Strobe" - ] - }, - "state": { - "class_name": "DefaultStrobeSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-Strobe", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeSelectEntity", + "translation_key": "default_strobe", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "Strobe", + "options": [ + "No Strobe", + "Strobe" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-StrobeLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeLevelSelectEntity", - "translation_key": "default_strobe_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StrobeLevel", - "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" - ] - }, - "state": { - "class_name": "DefaultStrobeLevelSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-StrobeLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeLevelSelectEntity", + "translation_key": "default_strobe_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "StrobeLevel", + "options": [ + "Low level strobe", + "Medium level strobe", + "High level strobe", + "Very high level strobe" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-WarningMode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultToneSelectEntity", - "translation_key": "default_siren_tone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "WarningMode", - "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" - ] - }, - "state": { - "class_name": "DefaultToneSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-WarningMode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultToneSelectEntity", + "translation_key": "default_siren_tone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "WarningMode", + "options": [ + "Stop", + "Burglar", + "Fire", + "Emergency", + "Police Panic", + "Fire Panic", + "Emergency Panic" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "siren": [ { - "info_object": { - "fallback_name": "Siren", - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "AdvancedSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "available_tones": { - "1": "Burglar", - "2": "Fire", - "3": "Emergency", - "4": "Police Panic", - "5": "Fire Panic", - "6": "Emergency Panic" - }, - "supported_features": 31 + "fallback_name": "Siren", + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "AdvancedSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "available_tones": { + "1": "Burglar", + "2": "Fire", + "3": "Emergency", + "4": "Police Panic", + "5": "Fire Panic", + "6": "Emergency Panic" }, - "state": { - "class_name": "AdvancedSiren", - "available": true, - "state": false - } + "supported_features": 31 } ] }, diff --git a/tests/data/devices/computime-slr2b.json b/tests/data/devices/computime-slr2b.json index 4bccae7d7..c9b87b8ec 100644 --- a/tests/data/devices/computime-slr2b.json +++ b/tests/data/devices/computime-slr2b.json @@ -574,573 +574,468 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "max_temp": 32.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 18.64, - "outdoor_temperature": null, - "target_temperature": 19.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": 2100, - "occupied_heating_setpoint": 1900, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "current_temperature": 18.64, + "outdoor_temperature": null, + "target_temperature": 19.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 32.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": 2100, + "occupied_heating_setpoint": 1900, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 6, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 15.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 21.0, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "off", - "hvac_mode": "off", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[0]/off", - "occupancy": null, - "occupied_cooling_setpoint": 2100, - "occupied_heating_setpoint": 2200, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 6, + "available": true, + "group_id": null, + "current_temperature": 21.0, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "off", + "hvac_mode": "off", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 15.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[0]/off", + "occupancy": null, + "occupied_cooling_setpoint": 2100, + "occupied_heating_setpoint": 2200, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 32.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 32.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 32.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 32.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 6, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 15.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 15.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 6, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 15.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 15.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": "off", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-7-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 7, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-7-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 7, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-8-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 8, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-8-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/computime-slt3c-0x02040105.json b/tests/data/devices/computime-slt3c-0x02040105.json index 96418d753..c86d11a8c 100644 --- a/tests/data/devices/computime-slt3c-0x02040105.json +++ b/tests/data/devices/computime-slt3c-0x02040105.json @@ -367,316 +367,262 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.1, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 0.0, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": 26.0, - "target_temperature_low": 17.0, - "hvac_action": null, - "hvac_mode": "heat_cool", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[1]/heat_cool", - "occupancy": null, - "occupied_cooling_setpoint": 2600, - "occupied_heating_setpoint": 1700, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "current_temperature": 0.0, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": 26.0, + "target_temperature_low": 17.0, + "hvac_action": null, + "hvac_mode": "heat_cool", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.1, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[1]/heat_cool", + "occupancy": null, + "occupied_cooling_setpoint": 2600, + "occupied_heating_setpoint": 1700, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 136 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "native_value": 136, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -66 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "native_value": -66, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 32.0, - "battery_voltage": 4.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "native_value": 32.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 4.9 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 21.79 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "native_value": 21.79, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02040105", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "installed_version": "0x02040105", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/d5x84yu-et093wrg.json b/tests/data/devices/d5x84yu-et093wrg.json index f85abf36e..aa6d720f7 100644 --- a/tests/data/devices/d5x84yu-et093wrg.json +++ b/tests/data/devices/d5x84yu-et093wrg.json @@ -342,404 +342,316 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-heat_required", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "DanfossHeatRequired", - "translation_key": "heat_required", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "heat_required" - }, - "state": { - "class_name": "DanfossHeatRequired", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-heat_required", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "DanfossHeatRequired", + "translation_key": "heat_required", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "heat_required" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-mounting_mode_active", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "DanfossMountingModeActive", - "translation_key": "mounting_mode_active", - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "mounting_mode_active" - }, - "state": { - "class_name": "DanfossMountingModeActive", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-mounting_mode_active", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "DanfossMountingModeActive", + "translation_key": "mounting_mode_active", + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "mounting_mode_active" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-preheat_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "DanfossPreheatStatus", - "translation_key": "preheat_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "preheat_status" - }, - "state": { - "class_name": "DanfossPreheatStatus", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-preheat_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "DanfossPreheatStatus", + "translation_key": "preheat_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "preheat_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 35.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 15.37, - "outdoor_temperature": null, - "target_temperature": 11.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1100, - "pi_heating_demand": 1, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 15.37, + "outdoor_temperature": null, + "target_temperature": 11.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 35.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1100, + "pi_heating_demand": 1, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 35.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.0, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 99.0, - "battery_voltage": 3.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 99.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.2 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-2821-motor_step_counter", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossMotorStepCounter", - "translation_key": "motor_stepcount", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DanfossMotorStepCounter", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-2821-motor_step_counter", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossMotorStepCounter", + "translation_key": "motor_stepcount", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-2821-sw_error_code", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossSoftwareErrorCode", - "translation_key": "software_error", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DanfossSoftwareErrorCode", - "available": true, - "state": null, - "Top_pcb_sensor_error": false, - "Side_pcb_sensor_error": false, - "Non_volatile_memory_error": false, - "Unknown_hw_error": false, - "Motor_error": false, - "Invalid_internal_communication": false, - "Invalid_clock_information": false, - "Radio_communication_error": false, - "Encoder_jammed": false, - "Low_battery": false, - "Critical_low_battery": false - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-2821-sw_error_code", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossSoftwareErrorCode", + "translation_key": "software_error", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "Critical_low_battery", "Encoder_jammed", "Invalid_clock_information", @@ -751,274 +663,250 @@ "Side_pcb_sensor_error", "Top_pcb_sensor_error", "Unknown_hw_error" - ] + ], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null, + "bit_states": { + "Top_pcb_sensor_error": false, + "Side_pcb_sensor_error": false, + "Non_volatile_memory_error": false, + "Unknown_hw_error": false, + "Motor_error": false, + "Invalid_internal_communication": false, + "Invalid_clock_information": false, + "Radio_communication_error": false, + "Encoder_jammed": false, + "Low_battery": false, + "Critical_low_battery": false + } }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-adaptation_run_status", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossAdaptationRunStatus", - "translation_key": "adaptation_run_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DanfossAdaptationRunStatus", - "available": true, - "state": null, - "In_progress": false, - "Valve_characteristic_found": false, - "Valve_characteristic_lost": false - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-adaptation_run_status", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossAdaptationRunStatus", + "translation_key": "adaptation_run_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "In_progress", "Valve_characteristic_found", "Valve_characteristic_lost" - ] + ], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null, + "bit_states": { + "In_progress": false, + "Valve_characteristic_found": false, + "Valve_characteristic_lost": false + } }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "heating" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "heating", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-load_estimate", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossLoadEstimate", - "translation_key": "load_estimate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DanfossLoadEstimate", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-load_estimate", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossLoadEstimate", + "translation_key": "load_estimate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-open_window_detection", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossOpenWindowDetection", - "translation_key": "open_window_detected", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DanfossOpenWindowDetection", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-open_window_detection", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossOpenWindowDetection", + "translation_key": "open_window_detected", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-preheat_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossPreheatTime", - "translation_key": "preheat_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DanfossPreheatTime", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-preheat_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossPreheatTime", + "translation_key": "preheat_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": "External" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "External", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/danfoss-0x8040.json b/tests/data/devices/danfoss-0x8040.json index b0a2a62d6..61f2c5102 100644 --- a/tests/data/devices/danfoss-0x8040.json +++ b/tests/data/devices/danfoss-0x8040.json @@ -330,427 +330,354 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 35.0, - "min_temp": 4.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 23.92, - "outdoor_temperature": null, - "target_temperature": 21.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2100, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 23.92, + "outdoor_temperature": null, + "target_temperature": 21.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 35.0, + "min_temp": 4.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2100, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 35.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 4.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4.0, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 27.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 27.0, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/danfoss-etrv0103-0x00000014.json b/tests/data/devices/danfoss-etrv0103-0x00000014.json index e18a71021..1c805ca32 100644 --- a/tests/data/devices/danfoss-etrv0103-0x00000014.json +++ b/tests/data/devices/danfoss-etrv0103-0x00000014.json @@ -511,735 +511,597 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-heat_required", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "DanfossHeatRequired", - "translation_key": "heat_required", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "heat_required" - }, - "state": { - "class_name": "DanfossHeatRequired", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-heat_required", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "DanfossHeatRequired", + "translation_key": "heat_required", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "heat_required" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-mounting_mode_active", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "DanfossMountingModeActive", - "translation_key": "mounting_mode_active", - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "mounting_mode_active" - }, - "state": { - "class_name": "DanfossMountingModeActive", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-mounting_mode_active", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "DanfossMountingModeActive", + "translation_key": "mounting_mode_active", + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "mounting_mode_active" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-preheat_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "DanfossPreheatStatus", - "translation_key": "preheat_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "preheat_status" - }, - "state": { - "class_name": "DanfossPreheatStatus", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-preheat_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "DanfossPreheatStatus", + "translation_key": "preheat_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "preheat_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 35.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 20.14, - "outdoor_temperature": null, - "target_temperature": 5.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 500, - "pi_heating_demand": 0, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 20.14, + "outdoor_temperature": null, + "target_temperature": 5.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 35.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 500, + "pi_heating_demand": 0, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-exercise_trigger_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DanfossExerciseTriggerTime", - "translation_key": "exercise_trigger_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 1439, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "DanfossExerciseTriggerTime", - "available": true, - "state": 660 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-exercise_trigger_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DanfossExerciseTriggerTime", + "translation_key": "exercise_trigger_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 660, + "mode": "box", + "native_max_value": 1439, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "min" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-external_measured_room_sensor", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DanfossExternalMeasuredRoomSensor", - "translation_key": "external_temperature_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35, - "native_min_value": -80, - "native_step": 0.01, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "DanfossExternalMeasuredRoomSensor", - "available": true, - "state": 20.8 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-external_measured_room_sensor", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DanfossExternalMeasuredRoomSensor", + "translation_key": "external_temperature_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20.8, + "mode": "box", + "native_max_value": 35, + "native_min_value": -80, + "native_step": 0.01, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-load_room_mean", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DanfossLoadRoomMean", - "translation_key": "load_room_mean", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 2000, - "native_min_value": -8000, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "DanfossLoadRoomMean", - "available": true, - "state": -8000 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-load_room_mean", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DanfossLoadRoomMean", + "translation_key": "load_room_mean", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -8000, + "mode": "box", + "native_max_value": 2000, + "native_min_value": -8000, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 35.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.0, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-regulation_setpoint_offset", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DanfossRegulationSetpointOffset", - "translation_key": "regulation_setpoint_offset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "DanfossRegulationSetpointOffset", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-regulation_setpoint_offset", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DanfossRegulationSetpointOffset", + "translation_key": "regulation_setpoint_offset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-adaptation_run_control", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DanfossAdaptationRunControl", - "translation_key": "adaptation_run_command", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "DanfossAdaptationRunControlEnum", - "options": [ - "Nothing", - "Initiate", - "Cancel" - ] - }, - "state": { - "class_name": "DanfossAdaptationRunControl", - "available": true, - "state": "Nothing" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-adaptation_run_control", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DanfossAdaptationRunControl", + "translation_key": "adaptation_run_command", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Nothing", + "enum": "DanfossAdaptationRunControlEnum", + "options": [ + "Nothing", + "Initiate", + "Cancel" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-control_algorithm_scale_factor", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DanfossControlAlgorithmScaleFactor", - "translation_key": "setpoint_response_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "DanfossControlAlgorithmScaleFactorEnum", - "options": [ - "quick 5min", - "quick 10min", - "quick 15min", - "quick 25min", - "moderate 30min", - "moderate 40min", - "moderate 50min", - "moderate 60min", - "moderate 70min", - "slow 80min", - "quick open disabled" - ] - }, - "state": { - "class_name": "DanfossControlAlgorithmScaleFactor", - "available": true, - "state": "quick 5min" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-control_algorithm_scale_factor", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DanfossControlAlgorithmScaleFactor", + "translation_key": "setpoint_response_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "quick 5min", + "enum": "DanfossControlAlgorithmScaleFactorEnum", + "options": [ + "quick 5min", + "quick 10min", + "quick 15min", + "quick 25min", + "moderate 30min", + "moderate 40min", + "moderate 50min", + "moderate 60min", + "moderate 70min", + "slow 80min", + "quick open disabled" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-exercise_day_of_week", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DanfossExerciseDayOfTheWeek", - "translation_key": "exercise_day_of_week", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "DanfossExerciseDayOfTheWeekEnum", - "options": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Undefined" - ] - }, - "state": { - "class_name": "DanfossExerciseDayOfTheWeek", - "available": true, - "state": "Thursday" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-exercise_day_of_week", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DanfossExerciseDayOfTheWeek", + "translation_key": "exercise_day_of_week", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Thursday", + "enum": "DanfossExerciseDayOfTheWeekEnum", + "options": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Undefined" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-orientation", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DanfossOrientation", - "translation_key": "valve_orientation", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "DanfossOrientationEnum", - "options": [ - "Horizontal", - "Vertical" - ] - }, - "state": { - "class_name": "DanfossOrientation", - "available": true, - "state": "Horizontal" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-orientation", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DanfossOrientation", + "translation_key": "valve_orientation", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Horizontal", + "enum": "DanfossOrientationEnum", + "options": [ + "Horizontal", + "Vertical" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-516-viewing_direction", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DanfossViewingDirection", - "translation_key": "viewing_direction", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "DanfossViewingDirectionEnum", - "options": [ - "Default", - "Inverted" - ] - }, - "state": { - "class_name": "DanfossViewingDirection", - "available": true, - "state": "Default" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-516-viewing_direction", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DanfossViewingDirection", + "translation_key": "viewing_direction", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Default", + "enum": "DanfossViewingDirectionEnum", + "options": [ + "Default", + "Inverted" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 35.0, - "battery_voltage": 2.7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-2821-motor_step_counter", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossMotorStepCounter", - "translation_key": "motor_stepcount", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DanfossMotorStepCounter", - "available": true, - "state": 63774 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-2821-motor_step_counter", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossMotorStepCounter", + "translation_key": "motor_stepcount", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 63774, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-2821-sw_error_code", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossSoftwareErrorCode", - "translation_key": "software_error", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DanfossSoftwareErrorCode", - "available": true, - "state": "something", - "Top_pcb_sensor_error": false, - "Side_pcb_sensor_error": false, - "Non_volatile_memory_error": false, - "Unknown_hw_error": false, - "Motor_error": false, - "Invalid_internal_communication": false, - "Invalid_clock_information": true, - "Radio_communication_error": false, - "Encoder_jammed": false, - "Low_battery": false, - "Critical_low_battery": false - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-2821-sw_error_code", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossSoftwareErrorCode", + "translation_key": "software_error", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "Critical_low_battery", "Encoder_jammed", "Invalid_clock_information", @@ -1251,500 +1113,441 @@ "Side_pcb_sensor_error", "Top_pcb_sensor_error", "Unknown_hw_error" - ] + ], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "something", + "suggested_display_precision": null, + "unit": null, + "bit_states": { + "Top_pcb_sensor_error": false, + "Side_pcb_sensor_error": false, + "Non_volatile_memory_error": false, + "Unknown_hw_error": false, + "Motor_error": false, + "Invalid_internal_communication": false, + "Invalid_clock_information": true, + "Radio_communication_error": false, + "Encoder_jammed": false, + "Low_battery": false, + "Critical_low_battery": false + } }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-adaptation_run_status", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossAdaptationRunStatus", - "translation_key": "adaptation_run_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DanfossAdaptationRunStatus", - "available": true, - "state": "nothing", - "In_progress": false, - "Valve_characteristic_found": false, - "Valve_characteristic_lost": false - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-adaptation_run_status", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossAdaptationRunStatus", + "translation_key": "adaptation_run_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "In_progress", "Valve_characteristic_found", "Valve_characteristic_lost" - ] + ], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "nothing", + "suggested_display_precision": null, + "unit": null, + "bit_states": { + "In_progress": false, + "Valve_characteristic_found": false, + "Valve_characteristic_lost": false + } }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-load_estimate", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossLoadEstimate", - "translation_key": "load_estimate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DanfossLoadEstimate", - "available": true, - "state": 437 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-load_estimate", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossLoadEstimate", + "translation_key": "load_estimate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 437, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-open_window_detection", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossOpenWindowDetection", - "translation_key": "open_window_detected", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DanfossOpenWindowDetection", - "available": true, - "state": "Closed" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-open_window_detection", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossOpenWindowDetection", + "translation_key": "open_window_detected", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Closed", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-preheat_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossPreheatTime", - "translation_key": "preheat_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DanfossPreheatTime", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-preheat_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossPreheatTime", + "translation_key": "preheat_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": "External" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "External", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-adaptation_run_settings", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossAdaptationRunSettings", - "translation_key": "adaptation_run_enabled", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "adaptation_run_settings", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "DanfossAdaptationRunSettings", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-adaptation_run_settings", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossAdaptationRunSettings", + "translation_key": "adaptation_run_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "adaptation_run_settings", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-external_open_window_detected", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossExternalOpenWindowDetected", - "translation_key": "external_window_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "external_open_window_detected", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "DanfossExternalOpenWindowDetected", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-external_open_window_detected", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossExternalOpenWindowDetected", + "translation_key": "external_window_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "external_open_window_detected", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-heat_available", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossHeatAvailable", - "translation_key": "heat_available", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "heat_available", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "DanfossHeatAvailable", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-heat_available", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossHeatAvailable", + "translation_key": "heat_available", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "heat_available", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-load_balancing_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossLoadBalancingEnable", - "translation_key": "use_load_balancing", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "load_balancing_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "DanfossLoadBalancingEnable", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-load_balancing_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossLoadBalancingEnable", + "translation_key": "use_load_balancing", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "load_balancing_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-mounting_mode_control", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossMountingModeControl", - "translation_key": "mounting_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "mounting_mode_control", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "DanfossMountingModeControl", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-mounting_mode_control", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossMountingModeControl", + "translation_key": "mounting_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "mounting_mode_control", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-radiator_covered", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossRadiatorCovered", - "translation_key": "prioritize_external_temperature_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "radiator_covered", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "DanfossRadiatorCovered", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-radiator_covered", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossRadiatorCovered", + "translation_key": "prioritize_external_temperature_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "radiator_covered", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-window_open_feature", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossWindowOpenFeature", - "translation_key": "use_internal_window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_open_feature", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "DanfossWindowOpenFeature", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-window_open_feature", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossWindowOpenFeature", + "translation_key": "use_internal_window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "window_open_feature", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000014", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000014", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/datek-pop.json b/tests/data/devices/datek-pop.json index 8161ba1a7..a4226d73b 100644 --- a/tests/data/devices/datek-pop.json +++ b/tests/data/devices/datek-pop.json @@ -354,386 +354,327 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.38 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.38, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT", - "active_power_max": 2245.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": 2245.0, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 50.403, - "measurement_type": "ACTIVE_MEASUREMENT", - "ac_frequency_max": 54.824 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 50.403, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": 54.824, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT", - "rms_current_max": 9.591 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": 9.591, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 236.33, - "measurement_type": "ACTIVE_MEASUREMENT", - "rms_voltage_max": 242.54 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 236.33, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": 242.54, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/datek-ssds.json b/tests/data/devices/datek-ssds.json index 6b7f60cae..5cefefde3 100644 --- a/tests/data/devices/datek-ssds.json +++ b/tests/data/devices/datek-ssds.json @@ -201,189 +201,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_voltage": 25.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 25.5 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 24.35 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 24.35, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/develco-products-a-s-zhemi-zigbee-external-meter-interface.json b/tests/data/devices/develco-products-a-s-zhemi-zigbee-external-meter-interface.json index c8a827a73..e91c24db6 100644 --- a/tests/data/devices/develco-products-a-s-zhemi-zigbee-external-meter-interface.json +++ b/tests/data/devices/develco-products-a-s-zhemi-zigbee-external-meter-interface.json @@ -291,164 +291,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:57:64:bf:25-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:57:64:bf:25", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:57:64:bf:25-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:57:64:bf:25", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:57:64:bf:25-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:57:64:bf:25", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 87 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:57:64:bf:25-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:57:64:bf:25", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 87, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:57:64:bf:25-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:57:64:bf:25", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:57:64:bf:25-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:57:64:bf:25", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:57:64:bf:25-2-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:57:64:bf:25", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 1140, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:57:64:bf:25-2-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:57:64:bf:25", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 1140, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:57:64:bf:25-2-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:57:64:bf:25", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 42317.93, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:57:64:bf:25-2-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:57:64:bf:25", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 42317.93, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ] }, diff --git a/tests/data/devices/digi-xbee3.json b/tests/data/devices/digi-xbee3.json index c8d85941c..ded51c6a9 100644 --- a/tests/data/devices/digi-xbee3.json +++ b/tests/data/devices/digi-xbee3.json @@ -484,600 +484,490 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-218-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 218, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1023.0, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-218-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 218, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1023.0, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-219-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 219, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1023.0, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-219-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 219, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1023.0, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-208-12", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DigiAnalogInput", - "translation_key": "analog_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 208, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DigiAnalogInput", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-208-12", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DigiAnalogInput", + "translation_key": "analog_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 208, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-209-12", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DigiAnalogInput", - "translation_key": "analog_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 209, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DigiAnalogInput", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-209-12", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DigiAnalogInput", + "translation_key": "analog_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 209, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-210-12", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DigiAnalogInput", - "translation_key": "analog_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 210, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DigiAnalogInput", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-210-12", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DigiAnalogInput", + "translation_key": "analog_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 210, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-211-12", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DigiAnalogInput", - "translation_key": "analog_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 211, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DigiAnalogInput", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-211-12", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DigiAnalogInput", + "translation_key": "analog_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 211, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-215-12", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DigiAnalogInput", - "translation_key": "analog_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 215, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "DigiAnalogInput", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-215-12", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DigiAnalogInput", + "translation_key": "analog_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 215, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-208-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 208, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-208-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 208, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-209-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 209, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-209-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 209, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-210-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 210, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-210-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 210, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-211-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 211, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-211-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 211, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-212-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 212, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-212-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 212, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-213-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 213, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-213-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 213, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-214-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 214, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-214-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 214, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-215-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 215, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-215-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 215, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-216-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 216, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-216-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 216, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-217-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 217, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-217-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 217, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-218-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 218, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-218-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 218, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-219-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 219, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-219-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 219, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-220-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 220, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-220-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 220, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-221-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 221, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-221-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 221, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-222-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 222, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-222-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 222, + "available": true, + "group_id": null, + "is_on": false } ] }, diff --git a/tests/data/devices/ecodim-bv-eco-dim-05-zigbee-0x00000001.json b/tests/data/devices/ecodim-bv-eco-dim-05-zigbee-0x00000001.json index 2c9e40ce8..973e98a8e 100644 --- a/tests/data/devices/ecodim-bv-eco-dim-05-zigbee-0x00000001.json +++ b/tests/data/devices/ecodim-bv-eco-dim-05-zigbee-0x00000001.json @@ -355,328 +355,267 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-2-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-2-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 179 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 179, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -77 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -77, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ecodim-bv-ecodim-zigbee-3-0.json b/tests/data/devices/ecodim-bv-ecodim-zigbee-3-0.json index 2c178f528..1802c9951 100644 --- a/tests/data/devices/ecodim-bv-ecodim-zigbee-3-0.json +++ b/tests/data/devices/ecodim-bv-ecodim-zigbee-3-0.json @@ -365,328 +365,267 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 190, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 190, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 210, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": 210, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-2-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 210 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-2-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 210, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ecolink-4655bc0-r-0x20160921.json b/tests/data/devices/ecolink-4655bc0-r-0x20160921.json index de9e420d6..1e94cd8a0 100644 --- a/tests/data/devices/ecolink-4655bc0-r-0x20160921.json +++ b/tests/data/devices/ecolink-4655bc0-r-0x20160921.json @@ -249,220 +249,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": 2.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 25.0 - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x20160921", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x20160921", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/enktro-acmidea.json b/tests/data/devices/enktro-acmidea.json index 877d80c62..594bcb9e5 100644 --- a/tests/data/devices/enktro-acmidea.json +++ b/tests/data/devices/enktro-acmidea.json @@ -267,216 +267,176 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:10:2d:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:10:2d:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:10:2d:81-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f9:10:2d:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 17.0, - "supported_features": 395, - "fan_modes": [ - "auto", - "on" - ], - "preset_modes": [], - "hvac_modes": [ - "off", - "heat_cool", - "cool", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 24.5, - "outdoor_temperature": null, - "target_temperature": 20.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": 2600, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:10:2d:81-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:10:2d:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 24.5, + "outdoor_temperature": null, + "target_temperature": 20.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 17.0, + "supported_features": 395, + "fan_modes": [ + "auto", + "on" + ], + "preset_modes": [], + "hvac_modes": [ + "off", + "heat_cool", + "cool", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": 2600, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:10:2d:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:10:2d:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:10:2d:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:10:2d:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:10:2d:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:10:2d:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:10:2d:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:10:2d:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ] }, diff --git a/tests/data/devices/ericsity-gl-c-008p-0x25013001.json b/tests/data/devices/ericsity-gl-c-008p-0x25013001.json index 0491d2639..ce01eac6f 100644 --- a/tests/data/devices/ericsity-gl-c-008p-0x25013001.json +++ b/tests/data/devices/ericsity-gl-c-008p-0x25013001.json @@ -287,286 +287,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 158, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.14599832150759137, - 0.04798962386511025 - ], - "color_temp": 455, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.14599832150759137, + 0.04798962386511025 + ], + "color_temp": 455, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 158, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 158, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 158, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x25013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x25013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ericsity-gl-c-009p-0x25013001.json b/tests/data/devices/ericsity-gl-c-009p-0x25013001.json index 8a0cf6176..75d1b52bb 100644 --- a/tests/data/devices/ericsity-gl-c-009p-0x25013001.json +++ b/tests/data/devices/ericsity-gl-c-009p-0x25013001.json @@ -323,280 +323,232 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 158, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": 500, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": 500, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 158, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 158, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 158, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x25013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x25013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/espressif-zigbeeanalogdevice.json b/tests/data/devices/espressif-zigbeeanalogdevice.json index f118db1bb..90f5adc39 100644 --- a/tests/data/devices/espressif-zigbeeanalogdevice.json +++ b/tests/data/devices/espressif-zigbeeanalogdevice.json @@ -223,153 +223,128 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a2:73:55-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a2:73:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a2:73:55-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a2:73:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": "Fan Speed (RPM)", - "unique_id": "ab:cd:ef:12:39:a2:73:55-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a2:73:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1023, - "native_min_value": 0, - "native_step": null, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 0.0 - } + "fallback_name": "Fan Speed (RPM)", + "unique_id": "ab:cd:ef:12:39:a2:73:55-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a2:73:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "auto", + "native_max_value": 1023, + "native_min_value": 0, + "native_step": null, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a2:73:55-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a2:73:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a2:73:55-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a2:73:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a2:73:55-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a2:73:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a2:73:55-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a2:73:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": "Power Consumption (Watts)", - "unique_id": "ab:cd:ef:12:39:a2:73:55-1-12-analog_input", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AnalogInputSensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a2:73:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "W" - }, - "state": { - "class_name": "AnalogInputSensor", - "available": true, - "state": 280.0 - } + "fallback_name": "Power Consumption (Watts)", + "unique_id": "ab:cd:ef:12:39:a2:73:55-1-12-analog_input", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AnalogInputSensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a2:73:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 280.0, + "suggested_display_precision": null, + "unit": "W" } ] }, diff --git a/tests/data/devices/espressif-zigbeebinaryanalogdevice.json b/tests/data/devices/espressif-zigbeebinaryanalogdevice.json index a02fe39c0..9f3161fd5 100644 --- a/tests/data/devices/espressif-zigbeebinaryanalogdevice.json +++ b/tests/data/devices/espressif-zigbeebinaryanalogdevice.json @@ -120,120 +120,100 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a2:73:56-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a2:73:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a2:73:56-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a2:73:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a2:73:56-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a2:73:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a2:73:56-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a2:73:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a2:73:56-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a2:73:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a2:73:56-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a2:73:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": "Entity Description", - "unique_id": "ab:cd:ef:12:39:a2:73:56-1-16", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "BinaryOutputSwitch", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:39:a2:73:56", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "BinaryOutputSwitch", - "state": true, - "available": true - } + "fallback_name": "Entity Description", + "unique_id": "ab:cd:ef:12:39:a2:73:56-1-16", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "BinaryOutputSwitch", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a2:73:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true } ] }, diff --git a/tests/data/devices/espressif-zigbeecarbondioxidesensor.json b/tests/data/devices/espressif-zigbeecarbondioxidesensor.json index 1581a594d..01f61e874 100644 --- a/tests/data/devices/espressif-zigbeecarbondioxidesensor.json +++ b/tests/data/devices/espressif-zigbeecarbondioxidesensor.json @@ -114,120 +114,100 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:f5:bd:ff:fe:01:86:64", - "endpoint_id": 10, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:f5:bd:ff:fe:01:86:64", + "endpoint_id": 10, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f0:f5:bd:ff:fe:01:86:64", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:f5:bd:ff:fe:01:86:64", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f0:f5:bd:ff:fe:01:86:64", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:f5:bd:ff:fe:01:86:64", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "f0:f5:bd:ff:fe:01:86:64", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "CarbonDioxideConcentration", - "available": true, - "state": 323.9999932702631 - } + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "f0:f5:bd:ff:fe:01:86:64", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 323.9999932702631, + "suggested_display_precision": 0, + "unit": "ppm" } ] }, diff --git a/tests/data/devices/eurotronic-spzb0001-0x4501001f.json b/tests/data/devices/eurotronic-spzb0001-0x4501001f.json index 78ddfccc6..2fb042622 100644 --- a/tests/data/devices/eurotronic-spzb0001-0x4501001f.json +++ b/tests/data/devices/eurotronic-spzb0001-0x4501001f.json @@ -292,405 +292,334 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 28.5, - "min_temp": 7.5, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 22.5, - "outdoor_temperature": null, - "target_temperature": 20.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": 0, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": 2000 - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 22.5, + "outdoor_temperature": null, + "target_temperature": 20.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 28.5, + "min_temp": 7.5, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": 0, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": 2000 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "ThermostatLocalTempCalibration", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 7.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 28.5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 28.5, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 7.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 28.5, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 7.5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 7.5, + "mode": "box", + "native_max_value": 28.5, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 65.0, - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 22.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 22.9 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x4501001f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x4501001f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001200.json b/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001200.json index a360e22a4..02fb52976 100644 --- a/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001200.json +++ b/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001200.json @@ -305,348 +305,289 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 142, - "max_mireds": 500 - }, - "state": { - "class_name": "ForceOnLight", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.30452429999237046, - 0.3155870908674754 - ], - "color_temp": 142, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.30452429999237046, + 0.3155870908674754 + ], + "color_temp": 142, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 142, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 142, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 239 - } + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 239, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 142, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001200", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001200", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001203.json b/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001203.json index 67060caf3..650df450e 100644 --- a/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001203.json +++ b/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001203.json @@ -299,348 +299,289 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 142, - "max_mireds": 500 - }, - "state": { - "class_name": "ForceOnLight", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.31273365377279316, - 0.3286945906767376 - ], - "color_temp": 153, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.31273365377279316, + 0.3286945906767376 + ], + "color_temp": 153, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 142, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 142, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 142, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 108 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 108, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -84 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -84, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001203", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001203", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ewelink-ck-tlsr8656-ss5-01-7000-0x00001102.json b/tests/data/devices/ewelink-ck-tlsr8656-ss5-01-7000-0x00001102.json index e28a64c2c..11e21c58c 100644 --- a/tests/data/devices/ewelink-ck-tlsr8656-ss5-01-7000-0x00001102.json +++ b/tests/data/devices/ewelink-ck-tlsr8656-ss5-01-7000-0x00001102.json @@ -172,161 +172,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:82:43:82-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:82:43:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:82:43:82-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:82:43:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:82:43:82-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:82:43:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 196 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:82:43:82-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:82:43:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 196, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:82:43:82-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:82:43:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -51 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:82:43:82-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:82:43:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -51, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:82:43:82-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:82:43:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:82:43:82-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:40:82:43:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:82:43:82-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:82:43:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001102", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:82:43:82-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:82:43:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001102", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ewelink-ds01.json b/tests/data/devices/ewelink-ds01.json index 107e58bd5..48f979ddc 100644 --- a/tests/data/devices/ewelink-ds01.json +++ b/tests/data/devices/ewelink-ds01.json @@ -180,155 +180,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:39:cb:5d:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:cb:5d:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:cb:5d:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:cb:5d:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:cb:5d:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 232 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:cb:5d:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 232, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:cb:5d:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -53 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:cb:5d:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -53, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:cb:5d:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:39:cb:5d:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.9 } ] }, diff --git a/tests/data/devices/ewelink-ms01.json b/tests/data/devices/ewelink-ms01.json index 777aaacb3..7d14fc587 100644 --- a/tests/data/devices/ewelink-ms01.json +++ b/tests/data/devices/ewelink-ms01.json @@ -180,155 +180,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ] }, diff --git a/tests/data/devices/ewelink-sa-003-zigbee.json b/tests/data/devices/ewelink-sa-003-zigbee.json index 72ba880db..af908947c 100644 --- a/tests/data/devices/ewelink-sa-003-zigbee.json +++ b/tests/data/devices/ewelink-sa-003-zigbee.json @@ -140,120 +140,100 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:1d:8b:65:1c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:1d:8b:65:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:12:4b:00:1d:8b:65:1c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:1d:8b:65:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:1d:8b:65:1c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:1d:8b:65:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:1d:8b:65:1c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:1d:8b:65:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:1d:8b:65:1c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:1d:8b:65:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:1d:8b:65:1c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:1d:8b:65:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:1d:8b:65:1c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:12:4b:00:1d:8b:65:1c", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "00:12:4b:00:1d:8b:65:1c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:1d:8b:65:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ] }, diff --git a/tests/data/devices/ewelink-snzb-01p-0x00002000.json b/tests/data/devices/ewelink-snzb-01p-0x00002000.json index 59128b1b4..5b5aa87e9 100644 --- a/tests/data/devices/ewelink-snzb-01p-0x00002000.json +++ b/tests/data/devices/ewelink-snzb-01p-0x00002000.json @@ -178,161 +178,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "84:ba:20:ff:fe:d2:41:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "84:ba:20:ff:fe:d2:41:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "84:ba:20:ff:fe:d2:41:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "84:ba:20:ff:fe:d2:41:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "84:ba:20:ff:fe:d2:41:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "84:ba:20:ff:fe:d2:41:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "84:ba:20:ff:fe:d2:41:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "84:ba:20:ff:fe:d2:41:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.9 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "84:ba:20:ff:fe:d2:41:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00002000", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "84:ba:20:ff:fe:d2:41:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00002000", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ewelink-snzb-01p-0x00002200.json b/tests/data/devices/ewelink-snzb-01p-0x00002200.json index e2e88652d..7fe1be30e 100644 --- a/tests/data/devices/ewelink-snzb-01p-0x00002200.json +++ b/tests/data/devices/ewelink-snzb-01p-0x00002200.json @@ -178,161 +178,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:05:59:94-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:05:59:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:05:59:94-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:05:59:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:05:59:94-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:05:59:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 123 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:05:59:94-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:05:59:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 123, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:05:59:94-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:05:59:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:05:59:94-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:05:59:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:05:59:94-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:05:59:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:05:59:94-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:6a:05:59:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:05:59:94-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:05:59:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00002200", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:05:59:94-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:05:59:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00002200", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ewelink-snzb-02p-0x00002100.json b/tests/data/devices/ewelink-snzb-02p-0x00002100.json index 6684c2fbb..2dc728035 100644 --- a/tests/data/devices/ewelink-snzb-02p-0x00002100.json +++ b/tests/data/devices/ewelink-snzb-02p-0x00002100.json @@ -198,216 +198,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 24.2 - } + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 24.2, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 47.0 - } + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 47.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00002100", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00002100", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ewelink-snzb-03p-0x00002201.json b/tests/data/devices/ewelink-snzb-03p-0x00002201.json index 4f485d526..17d5670cb 100644 --- a/tests/data/devices/ewelink-snzb-03p-0x00002201.json +++ b/tests/data/devices/ewelink-snzb-03p-0x00002201.json @@ -237,250 +237,211 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1030-presence_detection_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "SonoffPresenceSenorTimeout", - "translation_key": "presence_detection_timeout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 60, - "native_min_value": 15, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "SonoffPresenceSenorTimeout", - "available": true, - "state": 60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1030-presence_detection_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "SonoffPresenceSenorTimeout", + "translation_key": "presence_detection_timeout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 60, + "mode": "box", + "native_max_value": 60, + "native_min_value": 15, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00002201", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00002201", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ewelink-snzb-04p-0x00002200.json b/tests/data/devices/ewelink-snzb-04p-0x00002200.json index 33b34ca0d..30c572146 100644 --- a/tests/data/devices/ewelink-snzb-04p-0x00002200.json +++ b/tests/data/devices/ewelink-snzb-04p-0x00002200.json @@ -249,217 +249,183 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:81:05:49-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:81:05:49-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:81:81:05:49-1-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "tamper" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:81:81:05:49-1-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "tamper" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:81:05:49-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:81:05:49-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:81:05:49-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:81:05:49-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:81:05:49-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:81:05:49-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:81:05:49-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:81:05:49-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:81:05:49-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00002200", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:81:05:49-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00002200", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ewelink-th01.json b/tests/data/devices/ewelink-th01.json index 29ecf120f..7773db1d7 100644 --- a/tests/data/devices/ewelink-th01.json +++ b/tests/data/devices/ewelink-th01.json @@ -166,182 +166,153 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:93:68:a8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:62:93:68:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:93:68:a8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:62:93:68:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:93:68:a8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:62:93:68:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 192 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:93:68:a8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:62:93:68:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 192, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:93:68:a8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:62:93:68:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -63 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:93:68:a8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:62:93:68:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -63, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:93:68:a8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:62:93:68:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:93:68:a8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:62:93:68:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:93:68:a8-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:62:93:68:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 26.6 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:93:68:a8-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:62:93:68:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 26.6, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:93:68:a8-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:62:93:68:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 57.75 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:93:68:a8-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:62:93:68:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 57.75, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/ewelink-wb01.json b/tests/data/devices/ewelink-wb01.json index b405c6961..21f9c4b81 100644 --- a/tests/data/devices/ewelink-wb01.json +++ b/tests/data/devices/ewelink-wb01.json @@ -146,126 +146,107 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:25:12:e0:f9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:25:12:e0:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:12:4b:00:25:12:e0:f9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:25:12:e0:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:25:12:e0:f9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:25:12:e0:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:25:12:e0:f9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:25:12:e0:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:25:12:e0:f9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:25:12:e0:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:25:12:e0:f9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:25:12:e0:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:25:12:e0:f9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:25:12:e0:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:12:4b:00:25:12:e0:f9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:12:4b:00:25:12:e0:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ] }, diff --git a/tests/data/devices/ewelink-zb-sw01.json b/tests/data/devices/ewelink-zb-sw01.json index 331104b3f..ec98e3e39 100644 --- a/tests/data/devices/ewelink-zb-sw01.json +++ b/tests/data/devices/ewelink-zb-sw01.json @@ -140,144 +140,116 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "ForceOnLight", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/ewelink-zb-sw02.json b/tests/data/devices/ewelink-zb-sw02.json index 76240d18a..efb599261 100644 --- a/tests/data/devices/ewelink-zb-sw02.json +++ b/tests/data/devices/ewelink-zb-sw02.json @@ -208,194 +208,153 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:23:b7:d0:ce-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:23:b7:d0:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:12:4b:00:23:b7:d0:ce-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:23:b7:d0:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:23:b7:d0:ce-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:23:b7:d0:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "ForceOnLight", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:12:4b:00:23:b7:d0:ce-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:23:b7:d0:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:23:b7:d0:ce-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:23:b7:d0:ce", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "ForceOnLight", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:12:4b:00:23:b7:d0:ce-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:23:b7:d0:ce", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:23:b7:d0:ce-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:23:b7:d0:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:23:b7:d0:ce-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:23:b7:d0:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:23:b7:d0:ce-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:23:b7:d0:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:23:b7:d0:ce-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:23:b7:d0:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/ezviz-cs-t55-r100-g-0x00000002.json b/tests/data/devices/ezviz-cs-t55-r100-g-0x00000002.json index 4708ebcb7..199549b28 100644 --- a/tests/data/devices/ezviz-cs-t55-r100-g-0x00000002.json +++ b/tests/data/devices/ezviz-cs-t55-r100-g-0x00000002.json @@ -395,364 +395,300 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 35, - "min_temp": 7, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": 35.0, - "hvac_action": null, - "hvac_mode": "heat_cool", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[1]/heat_cool", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 3500, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": 35.0, + "hvac_action": null, + "hvac_mode": "heat_cool", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 35, + "min_temp": 7, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off" + ], + "sys_mode": "[1]/heat_cool", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 3500, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 50.0, - "battery_voltage": 3.3 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 50.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.3 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 28.5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 28.5, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/feibit-inc-co-fzb56-zcw27lx1-0.json b/tests/data/devices/feibit-inc-co-fzb56-zcw27lx1-0.json index 1f1e39bbd..5a42ac20b 100644 --- a/tests/data/devices/feibit-inc-co-fzb56-zcw27lx1-0.json +++ b/tests/data/devices/feibit-inc-co-fzb56-zcw27lx1-0.json @@ -303,152 +303,123 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:1c:46:5f:b1-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:1c:46:5f:b1", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:12:4b:00:1c:46:5f:b1-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:1c:46:5f:b1", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:1c:46:5f:b1-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:12:4b:00:1c:46:5f:b1", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 210, - "max_mireds": 234 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 76, - "xy_color": [ - 0.6969863431754024, - 0.2979934386205844 - ], - "color_temp": 222, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:12:4b:00:1c:46:5f:b1-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:1c:46:5f:b1", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 76, + "xy_color": [ + 0.6969863431754024, + 0.2979934386205844 + ], + "color_temp": 222, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 210, + "max_mireds": 234 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:1c:46:5f:b1-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:1c:46:5f:b1", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:1c:46:5f:b1-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:1c:46:5f:b1", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:1c:46:5f:b1-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:1c:46:5f:b1", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:1c:46:5f:b1-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:1c:46:5f:b1", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/frient-a-s-aqszb-110-0x00040001.json b/tests/data/devices/frient-a-s-aqszb-110-0x00040001.json index 1e48f4138..0acc467a8 100644 --- a/tests/data/devices/frient-a-s-aqszb-110-0x00040001.json +++ b/tests/data/devices/frient-a-s-aqszb-110-0x00040001.json @@ -263,247 +263,206 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -55 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": -55, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 75.0, - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 75.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 2.9 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.6 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 20.6, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 41.8 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 41.8, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": "VOC level", - "unique_id": "00:15:bc:00:36:00:1f:ee-38-voc_level", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds_parts", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "ppb" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "VOC level", + "unique_id": "00:15:bc:00:36:00:1f:ee-38-voc_level", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds_parts", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "ppb" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00040001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "installed_version": "0x00040001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-emizb-141-0x00030102.json b/tests/data/devices/frient-a-s-emizb-141-0x00030102.json index f2b296e8f..8c51d73e8 100644 --- a/tests/data/devices/frient-a-s-emizb-141-0x00030102.json +++ b/tests/data/devices/frient-a-s-emizb-141-0x00030102.json @@ -328,295 +328,247 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} }, { - "info_object": { - "fallback_name": "Reset summation delivered", - "unique_id": "00:15:bc:00:1b:10:01:5c-2-current_summation", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "reset_summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "current_summation", - "attribute_value": 0 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Reset summation delivered", + "unique_id": "00:15:bc:00:1b:10:01:5c-2-current_summation", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "reset_summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "current_summation", + "attribute_value": 0 } ], "number": [ { - "info_object": { - "fallback_name": "Pulse configuration", - "unique_id": "00:15:bc:00:1b:10:01:5c-2-pulse_configuration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "pulse_configuration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 10000, - "native_min_value": 50, - "native_step": 1, - "native_unit_of_measurement": "pulses/kWh" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Pulse configuration", + "unique_id": "00:15:bc:00:1b:10:01:5c-2-pulse_configuration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "pulse_configuration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 10000, + "native_min_value": 50, + "native_step": 1, + "native_unit_of_measurement": "pulses/kWh" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -53 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": -53, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 3.1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00030102", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": "0x00030102", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-emizb-151-0x00030107.json b/tests/data/devices/frient-a-s-emizb-151-0x00030107.json index 15cd8f1c4..a39dac959 100644 --- a/tests/data/devices/frient-a-s-emizb-151-0x00030107.json +++ b/tests/data/devices/frient-a-s-emizb-151-0x00030107.json @@ -1172,565 +1172,487 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 1821, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 1821, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 41984.478, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 41984.478, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummationReceived", - "available": true, - "state": 9532.077, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 9532.077, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 517.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 517.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-active_power_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhB", - "translation_key": "active_power_ph_b", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePowerPhB", - "available": true, - "state": 1274.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-active_power_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhB", + "translation_key": "active_power_ph_b", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max_ph_b", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 1274.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-active_power_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhC", - "translation_key": "active_power_ph_c", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePowerPhC", - "available": true, - "state": 29.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-active_power_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhC", + "translation_key": "active_power_ph_c", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max_ph_c", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 29.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 5.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 5.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_current_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "translation_key": "rms_current_ph_b", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "available": true, - "state": 5.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_current_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "translation_key": "rms_current_ph_b", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max_ph_b" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 5.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_current_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "translation_key": "rms_current_ph_c", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_current_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "translation_key": "rms_current_ph_c", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max_ph_c" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 228.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 228.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_voltage_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "translation_key": "rms_voltage_ph_b", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "available": true, - "state": 228.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_voltage_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "translation_key": "rms_voltage_ph_b", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max_ph_b" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 228.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_voltage_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "translation_key": "rms_voltage_ph_c", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "available": true, - "state": 227.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_voltage_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "translation_key": "rms_voltage_ph_c", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max_ph_c" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 227.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 1821.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 1821.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00030107", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": "0x00030107", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-flszb-110-0x00040001.json b/tests/data/devices/frient-a-s-flszb-110-0x00040001.json index 7941fac59..ad568f03e 100644 --- a/tests/data/devices/frient-a-s-flszb-110-0x00040001.json +++ b/tests/data/devices/frient-a-s-flszb-110-0x00040001.json @@ -301,248 +301,209 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-35-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-35-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-35-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-35-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-35-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-35-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_voltage": 3.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.2 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 21.93 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 21.93, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "siren": [ { - "info_object": { - "fallback_name": "Siren", - "unique_id": "00:15:bc:00:33:00:76:9a-35-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "BasicSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "available_tones": {}, - "supported_features": 19 - }, - "state": { - "class_name": "BasicSiren", - "available": true, - "state": false - } + "fallback_name": "Siren", + "unique_id": "00:15:bc:00:33:00:76:9a-35-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "BasicSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": false, + "available_tones": {}, + "supported_features": 19 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00040001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "installed_version": "0x00040001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-hmszb-120-0x00040001.json b/tests/data/devices/frient-a-s-hmszb-120-0x00040001.json index ad7ab334b..bfc08b2f6 100644 --- a/tests/data/devices/frient-a-s-hmszb-120-0x00040001.json +++ b/tests/data/devices/frient-a-s-hmszb-120-0x00040001.json @@ -251,219 +251,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -55 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": -55, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.6 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 20.6, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 41.5 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 41.5, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00040001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "installed_version": "0x00040001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-iomzb-110-0x00020001.json b/tests/data/devices/frient-a-s-iomzb-110-0x00020001.json index a1883c25c..86ba482e4 100644 --- a/tests/data/devices/frient-a-s-iomzb-110-0x00020001.json +++ b/tests/data/devices/frient-a-s-iomzb-110-0x00020001.json @@ -521,291 +521,241 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "IN1", - "unique_id": "00:15:bc:00:42:00:09:1c-112-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "frient_in_1", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 112, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": "IN1", + "unique_id": "00:15:bc:00:42:00:09:1c-112-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "frient_in_1", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 112, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" }, { - "info_object": { - "fallback_name": "IN2", - "unique_id": "00:15:bc:00:42:00:09:1c-113-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "frient_in_2", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 113, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": "IN2", + "unique_id": "00:15:bc:00:42:00:09:1c-113-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "frient_in_2", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 113, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" }, { - "info_object": { - "fallback_name": "IN3", - "unique_id": "00:15:bc:00:42:00:09:1c-114-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "frient_in_3", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 114, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": "IN3", + "unique_id": "00:15:bc:00:42:00:09:1c-114-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "frient_in_3", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 114, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" }, { - "info_object": { - "fallback_name": "IN4", - "unique_id": "00:15:bc:00:42:00:09:1c-115-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "frient_in_4", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 115, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": "IN4", + "unique_id": "00:15:bc:00:42:00:09:1c-115-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "frient_in_4", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 115, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:42:00:09:1c-112-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 112, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:42:00:09:1c-112-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 112, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:42:00:09:1c-112-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 112, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:42:00:09:1c-112-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 112, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:42:00:09:1c-112-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 112, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:42:00:09:1c-112-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 112, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": "COM 1", - "unique_id": "00:15:bc:00:42:00:09:1c-116-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "frient_com_1", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 116, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": "COM 1", + "unique_id": "00:15:bc:00:42:00:09:1c-116-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "frient_com_1", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 116, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": "COM 2", - "unique_id": "00:15:bc:00:42:00:09:1c-117-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "frient_com_2", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 117, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": "COM 2", + "unique_id": "00:15:bc:00:42:00:09:1c-117-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "frient_com_2", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 117, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:42:00:09:1c-112-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 112, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00020001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:42:00:09:1c-112-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 112, + "available": true, + "group_id": null, + "installed_version": "0x00020001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-kepzb-110-0x0001060a.json b/tests/data/devices/frient-a-s-kepzb-110-0x0001060a.json index 76904592a..9d1f72791 100644 --- a/tests/data/devices/frient-a-s-kepzb-110-0x0001060a.json +++ b/tests/data/devices/frient-a-s-kepzb-110-0x0001060a.json @@ -240,223 +240,187 @@ "zha_lib_entities": { "alarm_control_panel": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-1281", - "migrate_unique_ids": [], - "platform": "alarm_control_panel", - "class_name": "AlarmControlPanel", - "translation_key": "alarm_control_panel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "code_arm_required": false, - "code_format": "number", - "supported_features": 15 - }, - "state": { - "class_name": "AlarmControlPanel", - "available": true, - "state": "disarmed" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-1281", + "migrate_unique_ids": [], + "platform": "alarm_control_panel", + "class_name": "AlarmControlPanel", + "translation_key": "alarm_control_panel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "alarm_state": "disarmed", + "code_arm_required": false, + "code_format": "number", + "supported_features": 15 } ], "binary_sensor": [ { - "info_object": { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 76 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "native_value": 76, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -92 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "native_value": -92, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 6.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 6.2 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0001060a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "installed_version": "0x0001060a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-kepzb-110-0x00020005.json b/tests/data/devices/frient-a-s-kepzb-110-0x00020005.json index eeb16c654..2f9e9bdc8 100644 --- a/tests/data/devices/frient-a-s-kepzb-110-0x00020005.json +++ b/tests/data/devices/frient-a-s-kepzb-110-0x00020005.json @@ -259,223 +259,187 @@ "zha_lib_entities": { "alarm_control_panel": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:43:00:4a:39-44-1281", - "migrate_unique_ids": [], - "platform": "alarm_control_panel", - "class_name": "AlarmControlPanel", - "translation_key": "alarm_control_panel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "code_arm_required": false, - "code_format": "number", - "supported_features": 15 - }, - "state": { - "class_name": "AlarmControlPanel", - "available": true, - "state": "disarmed" - } + "fallback_name": null, + "unique_id": "00:15:bc:00:43:00:4a:39-44-1281", + "migrate_unique_ids": [], + "platform": "alarm_control_panel", + "class_name": "AlarmControlPanel", + "translation_key": "alarm_control_panel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "alarm_state": "disarmed", + "code_arm_required": false, + "code_format": "number", + "supported_features": 15 } ], "binary_sensor": [ { - "info_object": { - "fallback_name": "Tamper", - "unique_id": "00:15:bc:00:43:00:4a:39-44-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": true - } + "fallback_name": "Tamper", + "unique_id": "00:15:bc:00:43:00:4a:39-44-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:43:00:4a:39-44-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:43:00:4a:39-44-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:43:00:4a:39-44-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:43:00:4a:39-44-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:43:00:4a:39-44-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:43:00:4a:39-44-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:43:00:4a:39-44-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 65.0, - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 5.3 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:43:00:4a:39-44-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "native_value": 65.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 5.3 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:43:00:4a:39-44-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00020005", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:43:00:4a:39-44-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "installed_version": "0x00020005", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-moszb-140-0x00040006.json b/tests/data/devices/frient-a-s-moszb-140-0x00040006.json index 91b84af22..40217239a 100644 --- a/tests/data/devices/frient-a-s-moszb-140-0x00040006.json +++ b/tests/data/devices/frient-a-s-moszb-140-0x00040006.json @@ -481,302 +481,251 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 34, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 34, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 35, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 35, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": true - } + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 34, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 34, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 34, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 192 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 34, + "available": true, + "group_id": null, + "native_value": 192, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 34, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -52 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 34, + "available": true, + "group_id": null, + "native_value": -52, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.43 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 20.43, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-39-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 39, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 446 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-39-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 39, + "available": true, + "group_id": null, + "native_value": 446, + "suggested_display_precision": null, + "unit": "lx" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 35, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00040006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 35, + "available": true, + "group_id": null, + "installed_version": "0x00040006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-moszb-153-0x00020006.json b/tests/data/devices/frient-a-s-moszb-153-0x00020006.json index 3834d4c85..58ee1b086 100644 --- a/tests/data/devices/frient-a-s-moszb-153-0x00020006.json +++ b/tests/data/devices/frient-a-s-moszb-153-0x00020006.json @@ -534,339 +534,283 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-34-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 34, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-34-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 34, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 35, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-34-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 34, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-34-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 34, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-34-1030-pir_o_to_u_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", - "translation_key": "pir_o_to_u_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 34, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", - "available": true, - "state": 240 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-34-1030-pir_o_to_u_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", + "translation_key": "pir_o_to_u_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 34, + "available": true, + "group_id": null, + "native_value": 240, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Sensitivity level", - "unique_id": "00:15:bc:00:1a:10:8a:e5-35-current_zone_sensitivity_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "sensitivity_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 35, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 4, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Sensitivity level", + "unique_id": "00:15:bc:00:1a:10:8a:e5-35-current_zone_sensitivity_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "sensitivity_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 4, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-34-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 34, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-34-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 34, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-34-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 34, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -55 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-34-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 34, + "available": true, + "group_id": null, + "native_value": -55, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 95.0, - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": 95.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 2.9 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.56 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 22.56, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-39-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 39, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 96 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-39-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 39, + "available": true, + "group_id": null, + "native_value": 96, + "suggested_display_precision": null, + "unit": "lx" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 35, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00020006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 35, + "available": true, + "group_id": null, + "installed_version": "0x00020006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-sbtzb-110-0x00020002.json b/tests/data/devices/frient-a-s-sbtzb-110-0x00020002.json index dea4b7a53..ce600f7e0 100644 --- a/tests/data/devices/frient-a-s-sbtzb-110-0x00020002.json +++ b/tests/data/devices/frient-a-s-sbtzb-110-0x00020002.json @@ -251,192 +251,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:39:00:52:cd-32-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:39:00:52:cd", - "endpoint_id": 32, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:15:bc:00:39:00:52:cd-32-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:39:00:52:cd", + "endpoint_id": 32, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:39:00:52:cd-32-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:39:00:52:cd", - "endpoint_id": 32, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:39:00:52:cd-32-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:39:00:52:cd", + "endpoint_id": 32, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:39:00:52:cd-32-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:39:00:52:cd", - "endpoint_id": 32, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:39:00:52:cd-32-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:39:00:52:cd", + "endpoint_id": 32, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:39:00:52:cd-32-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:39:00:52:cd", - "endpoint_id": 32, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:39:00:52:cd-32-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:39:00:52:cd", + "endpoint_id": 32, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:39:00:52:cd-32-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:39:00:52:cd", - "endpoint_id": 32, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 80.0, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:39:00:52:cd-32-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:bc:00:39:00:52:cd", + "endpoint_id": 32, + "available": true, + "group_id": null, + "native_value": 80.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.8 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:39:00:52:cd-32-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:39:00:52:cd", - "endpoint_id": 32, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00020002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:39:00:52:cd-32-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:39:00:52:cd", + "endpoint_id": 32, + "available": true, + "group_id": null, + "installed_version": "0x00020002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-scazb-141-0x00010803.json b/tests/data/devices/frient-a-s-scazb-141-0x00010803.json index 21b9b9fc0..e5dea06c2 100644 --- a/tests/data/devices/frient-a-s-scazb-141-0x00010803.json +++ b/tests/data/devices/frient-a-s-scazb-141-0x00010803.json @@ -466,359 +466,298 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": "Test", - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-test", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "test", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Test", + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-test", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "test", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-46-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 46, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-46-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 46, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 204 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": 204, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -49 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": -49, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.9 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.37 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 20.37, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-46-1036", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonMonoxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 46, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "CarbonMonoxideConcentration", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-46-1036", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonMonoxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 46, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 0, + "unit": "ppm" } ], "siren": [ { - "info_object": { - "fallback_name": "Siren", - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "BasicSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "available_tones": {}, - "supported_features": 19 - }, - "state": { - "class_name": "BasicSiren", - "available": true, - "state": false - } + "fallback_name": "Siren", + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "BasicSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": false, + "available_tones": {}, + "supported_features": 19 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00010803", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "installed_version": "0x00010803", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-sirzb-111-0x00020004.json b/tests/data/devices/frient-a-s-sirzb-111-0x00020004.json index 1bbf7d312..626178152 100644 --- a/tests/data/devices/frient-a-s-sirzb-111-0x00020004.json +++ b/tests/data/devices/frient-a-s-sirzb-111-0x00020004.json @@ -275,327 +275,277 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-SirenLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultSirenLevelSelectEntity", - "translation_key": "default_siren_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "enum": "SirenLevel", - "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" - ] - }, - "state": { - "class_name": "DefaultSirenLevelSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-SirenLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultSirenLevelSelectEntity", + "translation_key": "default_siren_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "current_option": null, + "enum": "SirenLevel", + "options": [ + "Low level sound", + "Medium level sound", + "High level sound", + "Very high level sound" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-Strobe", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeSelectEntity", - "translation_key": "default_strobe", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "enum": "Strobe", - "options": [ - "No Strobe", - "Strobe" - ] - }, - "state": { - "class_name": "DefaultStrobeSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-Strobe", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeSelectEntity", + "translation_key": "default_strobe", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "current_option": null, + "enum": "Strobe", + "options": [ + "No Strobe", + "Strobe" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-StrobeLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeLevelSelectEntity", - "translation_key": "default_strobe_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "enum": "StrobeLevel", - "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" - ] - }, - "state": { - "class_name": "DefaultStrobeLevelSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-StrobeLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeLevelSelectEntity", + "translation_key": "default_strobe_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "current_option": null, + "enum": "StrobeLevel", + "options": [ + "Low level strobe", + "Medium level strobe", + "High level strobe", + "Very high level strobe" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-WarningMode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultToneSelectEntity", - "translation_key": "default_siren_tone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "enum": "WarningMode", - "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" - ] - }, - "state": { - "class_name": "DefaultToneSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-WarningMode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultToneSelectEntity", + "translation_key": "default_siren_tone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "current_option": null, + "enum": "WarningMode", + "options": [ + "Stop", + "Burglar", + "Fire", + "Emergency", + "Police Panic", + "Fire Panic", + "Emergency Panic" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": "Battery", - "unique_id": "00:15:bc:00:41:00:6f:8e-43-battery", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 5.0 - } + "fallback_name": "Battery", + "unique_id": "00:15:bc:00:41:00:6f:8e-43-battery", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "native_value": 5.0, + "suggested_display_precision": null, + "unit": "%" } ], "siren": [ { - "info_object": { - "fallback_name": "Siren", - "unique_id": "00:15:bc:00:41:00:6f:8e-43", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "AdvancedSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "available_tones": { - "1": "Burglar", - "2": "Fire", - "3": "Emergency", - "4": "Police Panic", - "5": "Fire Panic", - "6": "Emergency Panic" - }, - "supported_features": 31 + "fallback_name": "Siren", + "unique_id": "00:15:bc:00:41:00:6f:8e-43", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "AdvancedSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "is_on": false, + "available_tones": { + "1": "Burglar", + "2": "Fire", + "3": "Emergency", + "4": "Police Panic", + "5": "Fire Panic", + "6": "Emergency Panic" }, - "state": { - "class_name": "AdvancedSiren", - "available": true, - "state": false - } + "supported_features": 31 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00020004", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "installed_version": "0x00020004", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-smszb-120-0x00040008.json b/tests/data/devices/frient-a-s-smszb-120-0x00040008.json index 3f407c905..f4fd5006d 100644 --- a/tests/data/devices/frient-a-s-smszb-120-0x00040008.json +++ b/tests/data/devices/frient-a-s-smszb-120-0x00040008.json @@ -324,250 +324,209 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-35-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-35-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-35-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-35-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-35-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-35-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 75.0, - "battery_size": "CR123A", - "battery_quantity": 1, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": 75.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR123A", + "battery_quantity": 1, + "battery_voltage": 2.9 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.81 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 22.81, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "siren": [ { - "info_object": { - "fallback_name": "Siren", - "unique_id": "00:15:bc:00:31:01:f8:92-35-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "BasicSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "available_tones": {}, - "supported_features": 19 - }, - "state": { - "class_name": "BasicSiren", - "available": true, - "state": false - } + "fallback_name": "Siren", + "unique_id": "00:15:bc:00:31:01:f8:92-35-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "BasicSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": false, + "available_tones": {}, + "supported_features": 19 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00040008", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "installed_version": "0x00040008", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-smszb-120.json b/tests/data/devices/frient-a-s-smszb-120.json index fd87f5f8a..7265780d6 100644 --- a/tests/data/devices/frient-a-s-smszb-120.json +++ b/tests/data/devices/frient-a-s-smszb-120.json @@ -306,248 +306,209 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 212 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": 212, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -47 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": -47, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.2 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 23.43 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 23.43, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "siren": [ { - "info_object": { - "fallback_name": "Siren", - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "BasicSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "available_tones": {}, - "supported_features": 19 - }, - "state": { - "class_name": "BasicSiren", - "available": true, - "state": false - } + "fallback_name": "Siren", + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "BasicSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": false, + "available_tones": {}, + "supported_features": 19 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-splzb-141-0x00020009.json b/tests/data/devices/frient-a-s-splzb-141-0x00020009.json index d04f1ddf2..a5d488a34 100644 --- a/tests/data/devices/frient-a-s-splzb-141-0x00020009.json +++ b/tests/data/devices/frient-a-s-splzb-141-0x00020009.json @@ -562,389 +562,329 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -56 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": -56, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 2.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 2.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.041, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0.041, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": "Device temperature", - "unique_id": "00:15:bc:00:2f:02:19:79-2-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 32 - } + "fallback_name": "Device temperature", + "unique_id": "00:15:bc:00:2f:02:19:79-2-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 32, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 2.0, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 2.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 59.986, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 59.986, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.037, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "rms_current_max": 0.27 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0.037, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": 0.27, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 123.08, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "rms_voltage_max": 125.01 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 123.08, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": 125.01, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00020009", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": "0x00020009", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/frient-a-s-wiszb-131-0x00020006.json b/tests/data/devices/frient-a-s-wiszb-131-0x00020006.json index 51cac87ae..d1abbd45e 100644 --- a/tests/data/devices/frient-a-s-wiszb-131-0x00020006.json +++ b/tests/data/devices/frient-a-s-wiszb-131-0x00020006.json @@ -322,247 +322,206 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": "Tamper", - "unique_id": "00:15:bc:00:44:01:11:f9-35-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Tamper", + "unique_id": "00:15:bc:00:44:01:11:f9-35-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-35-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-35-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-35-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-35-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-35-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -53 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-35-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": -53, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 90.0, - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "native_value": 90.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": 2.9 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 38, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.12 - } + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 38, + "available": true, + "group_id": null, + "native_value": 20.12, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00020006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "installed_version": "0x00020006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/gledopto-gl-b-008p-0x00000006.json b/tests/data/devices/gledopto-gl-b-008p-0x00000006.json index ffe8334fc..cda484bec 100644 --- a/tests/data/devices/gledopto-gl-b-008p-0x00000006.json +++ b/tests/data/devices/gledopto-gl-b-008p-0x00000006.json @@ -340,286 +340,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 158, - "max_mireds": 495 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.26890974288548103, - 0.6674143587396048 - ], - "color_temp": 158, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.26890974288548103, + 0.6674143587396048 + ], + "color_temp": 158, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 158, + "max_mireds": 495 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 495, - "native_min_value": 158, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 17476 - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 17476, + "mode": "auto", + "native_max_value": 495, + "native_min_value": 158, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 51 - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 51, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x00000006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/gledopto-gl-b-008z.json b/tests/data/devices/gledopto-gl-b-008z.json index a58e2a38d..77df1e2db 100644 --- a/tests/data/devices/gledopto-gl-b-008z.json +++ b/tests/data/devices/gledopto-gl-b-008z.json @@ -253,152 +253,123 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.19043259327077133, - 0.7200732433051041 - ], - "color_temp": 500, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.19043259327077133, + 0.7200732433051041 + ], + "color_temp": 500, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/gledopto-gl-c-009p-0x17013001.json b/tests/data/devices/gledopto-gl-c-009p-0x17013001.json index 67000a6cb..0366a21da 100644 --- a/tests/data/devices/gledopto-gl-c-009p-0x17013001.json +++ b/tests/data/devices/gledopto-gl-c-009p-0x17013001.json @@ -292,280 +292,232 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 158, - "max_mireds": 495 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 143, - "xy_color": null, - "color_temp": 158, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 143, + "xy_color": null, + "color_temp": 158, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 158, + "max_mireds": 495 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 495, - "native_min_value": 158, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 495, + "native_min_value": 158, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 204 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 204, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x17013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x17013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/gledopto-gl-c-009p-0x25013001.json b/tests/data/devices/gledopto-gl-c-009p-0x25013001.json index 30012337a..2a7d6deb8 100644 --- a/tests/data/devices/gledopto-gl-c-009p-0x25013001.json +++ b/tests/data/devices/gledopto-gl-c-009p-0x25013001.json @@ -203,248 +203,205 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 138, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": true, + "brightness": 138, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 112 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 112, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -72 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": -72, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x25013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x25013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/gledopto-gl-c-009p-0x29013001.json b/tests/data/devices/gledopto-gl-c-009p-0x29013001.json index 7879d3cc2..d472ffd17 100644 --- a/tests/data/devices/gledopto-gl-c-009p-0x29013001.json +++ b/tests/data/devices/gledopto-gl-c-009p-0x29013001.json @@ -203,248 +203,205 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 166, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 166, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 200 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 200, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -61 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": -61, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x29013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x29013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/gledopto-gl-sd-301p-0x26013001.json b/tests/data/devices/gledopto-gl-sd-301p-0x26013001.json index cb5b5da6d..11a69206f 100644 --- a/tests/data/devices/gledopto-gl-sd-301p-0x26013001.json +++ b/tests/data/devices/gledopto-gl-sd-301p-0x26013001.json @@ -292,280 +292,232 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 158, - "max_mireds": 495 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": 495, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": 495, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 158, + "max_mireds": 495 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 495, - "native_min_value": 158, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 495, + "native_min_value": 158, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 120 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 120, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -81 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": -81, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x26013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x26013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/gledpopto-gl-c-007p.json b/tests/data/devices/gledpopto-gl-c-007p.json index 764270c7e..b546dec15 100644 --- a/tests/data/devices/gledpopto-gl-c-007p.json +++ b/tests/data/devices/gledpopto-gl-c-007p.json @@ -352,286 +352,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 158, - "max_mireds": 495 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 211, - "xy_color": [ - 0.26890974288548103, - 0.6674143587396048 - ], - "color_temp": 495, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 211, + "xy_color": [ + 0.26890974288548103, + 0.6674143587396048 + ], + "color_temp": 495, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 158, + "max_mireds": 495 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 495, - "native_min_value": 158, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 158 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 158, + "mode": "auto", + "native_max_value": 495, + "native_min_value": 158, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/handshake-finland-agge-zigbee-smart-rotary-dimmer-0x00000002.json b/tests/data/devices/handshake-finland-agge-zigbee-smart-rotary-dimmer-0x00000002.json index e1898f823..76542efcf 100644 --- a/tests/data/devices/handshake-finland-agge-zigbee-smart-rotary-dimmer-0x00000002.json +++ b/tests/data/devices/handshake-finland-agge-zigbee-smart-rotary-dimmer-0x00000002.json @@ -237,213 +237,175 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:45:62:b6:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:45:62:b6:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:45:62:b6:0e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:45:62:b6:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 137, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:45:62:b6:0e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:45:62:b6:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 137, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:45:62:b6:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 229 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:45:62:b6:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 229, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:45:62:b6:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 136 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:45:62:b6:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 136, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:45:62:b6:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -66 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:45:62:b6:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -66, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:45:62:b6:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:45:62:b6:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/heiman-smokesensor-em.json b/tests/data/devices/heiman-smokesensor-em.json index 7f1fda32c..1b0655a49 100644 --- a/tests/data/devices/heiman-smokesensor-em.json +++ b/tests/data/devices/heiman-smokesensor-em.json @@ -181,190 +181,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:49:00:53-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:5b:49:00:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:49:00:53-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:49:00:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:49:00:53-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:49:00:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:49:00:53-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:49:00:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:49:00:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:49:00:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:49:00:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:49:00:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:49:00:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:49:00:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:49:00:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:49:00:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:49:00:53-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:49:00:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:49:00:53-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:5b:49:00:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.2 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:49:00:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:49:00:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:49:00:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:49:00:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/hive-mbr1-0x01047320.json b/tests/data/devices/hive-mbr1-0x01047320.json index 3c3184bf0..e95858257 100644 --- a/tests/data/devices/hive-mbr1-0x01047320.json +++ b/tests/data/devices/hive-mbr1-0x01047320.json @@ -466,127 +466,107 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01047320", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01047320", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/hobeian-zg-101zl.json b/tests/data/devices/hobeian-zg-101zl.json index 8f14a7ec7..2cd459606 100644 --- a/tests/data/devices/hobeian-zg-101zl.json +++ b/tests/data/devices/hobeian-zg-101zl.json @@ -387,224 +387,190 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Toggle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Toggle", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 124 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 124, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -80 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -80, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/hobeian-zg-102zm.json b/tests/data/devices/hobeian-zg-102zm.json index 72bb7bfe0..e6f07878f 100644 --- a/tests/data/devices/hobeian-zg-102zm.json +++ b/tests/data/devices/hobeian-zg-102zm.json @@ -178,155 +178,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:26:37:f4-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:be:26:37:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:26:37:f4-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:26:37:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:26:37:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:26:37:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:26:37:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:26:37:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:26:37:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:26:37:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 240 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:26:37:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:26:37:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 240, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:26:37:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:26:37:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -40 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:26:37:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:26:37:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -40, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:26:37:f4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:26:37:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:26:37:f4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:be:26:37:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ] }, diff --git a/tests/data/devices/hobeian-zg-204zk.json b/tests/data/devices/hobeian-zg-204zk.json index b8db1c41c..06e753d26 100644 --- a/tests/data/devices/hobeian-zg-204zk.json +++ b/tests/data/devices/hobeian-zg-204zk.json @@ -197,157 +197,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:32:4e:24:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:4e:24:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:4e:24:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:4e:24:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:4e:24:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 160 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:4e:24:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 160, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:4e:24:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:4e:24:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:4e:24:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "CR2450", - "battery_quantity": 1, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:32:4e:24:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2450", + "battery_quantity": 1, + "battery_voltage": 3.0 } ] }, diff --git a/tests/data/devices/hobeian-zg-204zv.json b/tests/data/devices/hobeian-zg-204zv.json index d05a81cd9..2c163767b 100644 --- a/tests/data/devices/hobeian-zg-204zv.json +++ b/tests/data/devices/hobeian-zg-204zv.json @@ -225,239 +225,200 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 184 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 184, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -54 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -54, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 1475 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1475, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 23.3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 23.3, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 41.3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 41.3, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/hobeian-zg-229z.json b/tests/data/devices/hobeian-zg-229z.json index f704b0e06..0e3b92193 100644 --- a/tests/data/devices/hobeian-zg-229z.json +++ b/tests/data/devices/hobeian-zg-229z.json @@ -169,213 +169,176 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:da:48:c9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:da:48:c9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:da:48:c9:d3-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:da:48:c9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:da:48:c9:d3-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:da:48:c9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:da:48:c9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:da:48:c9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:da:48:c9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 86 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:da:48:c9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 86, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:da:48:c9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:da:48:c9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:da:48:c9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:da:48:c9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ] }, diff --git a/tests/data/devices/homr-hrmsn01.json b/tests/data/devices/homr-hrmsn01.json index d14dfabf7..4eb8d7501 100644 --- a/tests/data/devices/homr-hrmsn01.json +++ b/tests/data/devices/homr-hrmsn01.json @@ -413,531 +413,443 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "occupancy" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-10", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 10, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 255, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 0, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-10", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 10, + "available": true, + "group_id": null, + "on": true, + "brightness": 255, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 0, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-10-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 10, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-10-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-SirenLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultSirenLevelSelectEntity", - "translation_key": "default_siren_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SirenLevel", - "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" - ] - }, - "state": { - "class_name": "DefaultSirenLevelSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-SirenLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultSirenLevelSelectEntity", + "translation_key": "default_siren_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "SirenLevel", + "options": [ + "Low level sound", + "Medium level sound", + "High level sound", + "Very high level sound" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-Strobe", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeSelectEntity", - "translation_key": "default_strobe", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "Strobe", - "options": [ - "No Strobe", - "Strobe" - ] - }, - "state": { - "class_name": "DefaultStrobeSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-Strobe", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeSelectEntity", + "translation_key": "default_strobe", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "Strobe", + "options": [ + "No Strobe", + "Strobe" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-StrobeLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeLevelSelectEntity", - "translation_key": "default_strobe_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StrobeLevel", - "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" - ] - }, - "state": { - "class_name": "DefaultStrobeLevelSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-StrobeLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeLevelSelectEntity", + "translation_key": "default_strobe_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "StrobeLevel", + "options": [ + "Low level strobe", + "Medium level strobe", + "High level strobe", + "Very high level strobe" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-WarningMode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultToneSelectEntity", - "translation_key": "default_siren_tone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "WarningMode", - "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" - ] - }, - "state": { - "class_name": "DefaultToneSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-WarningMode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultToneSelectEntity", + "translation_key": "default_siren_tone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "WarningMode", + "options": [ + "Stop", + "Burglar", + "Fire", + "Emergency", + "Police Panic", + "Fire Panic", + "Emergency Panic" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 24.0 - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 24.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "hPa" - }, - "state": { - "class_name": "Pressure", - "available": true, - "state": 997 - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 997, + "suggested_display_precision": 0, + "unit": "hPa" }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 41.78 - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 41.78, + "suggested_display_precision": null, + "unit": "%" } ], "siren": [ { - "info_object": { - "fallback_name": "Siren", - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "AdvancedSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "available_tones": { - "1": "Burglar", - "2": "Fire", - "3": "Emergency", - "4": "Police Panic", - "5": "Fire Panic", - "6": "Emergency Panic" - }, - "supported_features": 31 + "fallback_name": "Siren", + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "AdvancedSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "available_tones": { + "1": "Burglar", + "2": "Fire", + "3": "Emergency", + "4": "Police Panic", + "5": "Fire Panic", + "6": "Emergency Panic" }, - "state": { - "class_name": "AdvancedSiren", - "available": true, - "state": false - } + "supported_features": 31 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-5-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 5, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-5-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 5, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/horn-zone-haier-hs-22zw-0000011216.json b/tests/data/devices/horn-zone-haier-hs-22zw-0000011216.json index 473c98318..4ef1f54c6 100644 --- a/tests/data/devices/horn-zone-haier-hs-22zw-0000011216.json +++ b/tests/data/devices/horn-zone-haier-hs-22zw-0000011216.json @@ -122,121 +122,101 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e2:16:2d:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:16:2d:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e2:16:2d:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:16:2d:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e2:16:2d:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:16:2d:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e2:16:2d:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:16:2d:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/ikea-of-sweden-badring-water-leakage-sensor-0x01000007.json b/tests/data/devices/ikea-of-sweden-badring-water-leakage-sensor-0x01000007.json index 5ea4f4e6e..fc762ce8f 100644 --- a/tests/data/devices/ikea-of-sweden-badring-water-leakage-sensor-0x01000007.json +++ b/tests/data/devices/ikea-of-sweden-badring-water-leakage-sensor-0x01000007.json @@ -230,192 +230,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:81:d7:c3:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:d7:c3:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:d7:c3:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:d7:c3:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:d7:c3:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:d7:c3:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:d7:c3:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:d7:c3:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:d7:c3:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AAA", - "battery_quantity": 1, - "battery_voltage": 1.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:81:d7:c3:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 1, + "battery_voltage": 1.5 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:d7:c3:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01000007", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:d7:c3:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01000007", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-fyrtur-block-out-roller-blind-0x23088631.json b/tests/data/devices/ikea-of-sweden-fyrtur-block-out-roller-blind-0x23088631.json index ba8b1ee91..205ab034c 100644 --- a/tests/data/devices/ikea-of-sweden-fyrtur-block-out-roller-blind-0x23088631.json +++ b/tests/data/devices/ikea-of-sweden-fyrtur-block-out-roller-blind-0x23088631.json @@ -263,257 +263,217 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 77.0, - "battery_voltage": 7.6 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 77.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 7.6 }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x23088631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x23088631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-inspelning-smart-plug-0x02040045.json b/tests/data/devices/ikea-of-sweden-inspelning-smart-plug-0x02040045.json index 2fd7c7830..45d0c44c1 100644 --- a/tests/data/devices/ikea-of-sweden-inspelning-smart-plug-0x02040045.json +++ b/tests/data/devices/ikea-of-sweden-inspelning-smart-plug-0x02040045.json @@ -516,389 +516,331 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 2.44, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2.44, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.007, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.007, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Disable LED", - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-enable_led", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "disable_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "enable_led", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 1, - "on_value": 0 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Disable LED", + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-enable_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "disable_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "enable_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 1, + "on_value": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02040045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x02040045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-ormanas-led-strip-0x01010010.json b/tests/data/devices/ikea-of-sweden-ormanas-led-strip-0x01010010.json index b0aa0bfc7..9e5dcd6df 100644 --- a/tests/data/devices/ikea-of-sweden-ormanas-led-strip-0x01010010.json +++ b/tests/data/devices/ikea-of-sweden-ormanas-led-strip-0x01010010.json @@ -433,348 +433,289 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 250, - "max_mireds": 454 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 56, - "xy_color": [ - 0.3229877164873732, - 0.32899977111467155 - ], - "color_temp": 264, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 56, + "xy_color": [ + 0.3229877164873732, + 0.32899977111467155 + ], + "color_temp": 264, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 250, + "max_mireds": 454 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 250, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 250, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 8 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 8, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 204 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 204, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01010010", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01010010", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-parasoll-door-window-sensor-0x01000019.json b/tests/data/devices/ikea-of-sweden-parasoll-door-window-sensor-0x01000019.json index b91202680..eac245ff1 100644 --- a/tests/data/devices/ikea-of-sweden-parasoll-door-window-sensor-0x01000019.json +++ b/tests/data/devices/ikea-of-sweden-parasoll-door-window-sensor-0x01000019.json @@ -285,192 +285,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:87:27:ff:fe:4a:b3:25-2-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "04:87:27:ff:fe:4a:b3:25", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-2-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:87:27:ff:fe:4a:b3:25-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:87:27:ff:fe:4a:b3:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:87:27:ff:fe:4a:b3:25-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:87:27:ff:fe:4a:b3:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:87:27:ff:fe:4a:b3:25-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:87:27:ff:fe:4a:b3:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:87:27:ff:fe:4a:b3:25-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:87:27:ff:fe:4a:b3:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AAA", - "battery_quantity": 1, - "battery_voltage": 1.6 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 1, + "battery_voltage": 1.6 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:87:27:ff:fe:4a:b3:25-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:87:27:ff:fe:4a:b3:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01000019", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01000019", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-praktlysing-cellular-blind-0x23088631.json b/tests/data/devices/ikea-of-sweden-praktlysing-cellular-blind-0x23088631.json index 0526f74d8..7c65a0c82 100644 --- a/tests/data/devices/ikea-of-sweden-praktlysing-cellular-blind-0x23088631.json +++ b/tests/data/devices/ikea-of-sweden-praktlysing-cellular-blind-0x23088631.json @@ -270,257 +270,217 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 95.0, - "battery_voltage": 8.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 95.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 8.1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x23088631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x23088631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-remote-control-n2.json b/tests/data/devices/ikea-of-sweden-remote-control-n2.json index 29f69c73a..403f49774 100644 --- a/tests/data/devices/ikea-of-sweden-remote-control-n2.json +++ b/tests/data/devices/ikea-of-sweden-remote-control-n2.json @@ -188,162 +188,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AAA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000047.json b/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000047.json index cff3d417b..6a8e800f6 100644 --- a/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000047.json +++ b/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000047.json @@ -208,163 +208,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 78.0, - "battery_size": "AAA", - "battery_quantity": 1, - "battery_voltage": 1.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 78.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 1, + "battery_voltage": 1.2 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01000047", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01000047", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000057.json b/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000057.json index ed24009cd..d7f33ec26 100644 --- a/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000057.json +++ b/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000057.json @@ -228,163 +228,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 15, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AAA", - "battery_quantity": 1, - "battery_voltage": 1.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 1, + "battery_voltage": 1.5 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01000057", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01000057", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer-0x01000057.json b/tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer-0x01000057.json index ea6ebd96f..ce04ef2de 100644 --- a/tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer-0x01000057.json +++ b/tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer-0x01000057.json @@ -221,163 +221,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 39 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 39, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AAA", - "battery_quantity": 1, - "battery_voltage": 1.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 1, + "battery_voltage": 1.5 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01000057", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01000057", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-somrig-shortcut-button-0x01000021.json b/tests/data/devices/ikea-of-sweden-somrig-shortcut-button-0x01000021.json index b66e3c972..9a92e1fe1 100644 --- a/tests/data/devices/ikea-of-sweden-somrig-shortcut-button-0x01000021.json +++ b/tests/data/devices/ikea-of-sweden-somrig-shortcut-button-0x01000021.json @@ -276,163 +276,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6d:e6:02:47", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6d:e6:02:47", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 180 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 180, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6d:e6:02:47", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -66 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -66, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6d:e6:02:47", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 84.0, - "battery_size": "AAA", - "battery_quantity": 1, - "battery_voltage": 1.3 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 84.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 1, + "battery_voltage": 1.3 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6d:e6:02:47", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01000021", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01000021", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-0x00011001.json b/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-0x00011001.json index d23fdb5be..6a9b47777 100644 --- a/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-0x00011001.json +++ b/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-0x00011001.json @@ -238,382 +238,327 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-replace_filter", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "ReplaceFilter", - "translation_key": "replace_filter", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "replace_filter" - }, - "state": { - "class_name": "ReplaceFilter", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-replace_filter", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "ReplaceFilter", + "translation_key": "replace_filter", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "replace_filter" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "fan": [ { - "info_object": { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637", - "migrate_unique_ids": [], - "platform": "fan", - "class_name": "IkeaFan", - "translation_key": "fan", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "preset_modes": [ - "auto" - ], - "supported_features": 57, - "speed_count": 10, - "speed_list": [ - "off", - "low", - "medium", - "high", - "auto" - ] - }, - "state": { - "class_name": "IkeaFan", - "available": true, - "preset_mode": null, - "percentage": 20, - "is_on": true, - "speed": "low" - } + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637", + "migrate_unique_ids": [], + "platform": "fan", + "class_name": "IkeaFan", + "translation_key": "fan", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "preset_mode": null, + "percentage": 20, + "is_on": true, + "speed": "low", + "preset_modes": [ + "auto" + ], + "supported_features": 57, + "speed_count": 10, + "speed_list": [ + "off", + "low", + "medium", + "high", + "auto" + ], + "speed_range": [ + 1, + 10 + ], + "default_on_percentage": 50 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-filter_life_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "FilterLifeTime", - "translation_key": "filter_life_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 4294967295, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "FilterLifeTime", - "available": true, - "state": 259200 - } + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-filter_life_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "FilterLifeTime", + "translation_key": "filter_life_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 259200, + "mode": "auto", + "native_max_value": 4294967295, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "min" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "PM25", - "available": true, - "state": 16 - } + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 16, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" }, { - "info_object": { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-device_run_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "IkeaDeviceRunTime", - "translation_key": "device_run_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "min" - }, - "state": { - "class_name": "IkeaDeviceRunTime", - "available": true, - "state": 118729 - } + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-device_run_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "IkeaDeviceRunTime", + "translation_key": "device_run_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 118729, + "suggested_display_precision": null, + "unit": "min" }, { - "info_object": { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-filter_run_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "IkeaFilterRunTime", - "translation_key": "filter_run_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "min" - }, - "state": { - "class_name": "IkeaFilterRunTime", - "available": true, - "state": 118729 - } + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-filter_run_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "IkeaFilterRunTime", + "translation_key": "filter_run_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 118729, + "suggested_display_precision": null, + "unit": "min" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ChildLock", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ChildLock", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ChildLock", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-disable_led", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DisableLed", - "translation_key": "disable_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "disable_led", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "DisableLed", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-disable_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DisableLed", + "translation_key": "disable_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "disable_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00011001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00011001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-table-0x00011001.json b/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-table-0x00011001.json index 671380219..aaad311ed 100644 --- a/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-table-0x00011001.json +++ b/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-table-0x00011001.json @@ -310,382 +310,327 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-replace_filter", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "ReplaceFilter", - "translation_key": "replace_filter", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "replace_filter" - }, - "state": { - "class_name": "ReplaceFilter", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-replace_filter", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "ReplaceFilter", + "translation_key": "replace_filter", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "replace_filter" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "fan": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637", - "migrate_unique_ids": [], - "platform": "fan", - "class_name": "IkeaFan", - "translation_key": "fan", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "preset_modes": [ - "auto" - ], - "supported_features": 57, - "speed_count": 10, - "speed_list": [ - "off", - "low", - "medium", - "high", - "auto" - ] - }, - "state": { - "class_name": "IkeaFan", - "available": true, - "preset_mode": null, - "percentage": 0, - "is_on": false, - "speed": "off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637", + "migrate_unique_ids": [], + "platform": "fan", + "class_name": "IkeaFan", + "translation_key": "fan", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "preset_mode": null, + "percentage": 0, + "is_on": false, + "speed": "off", + "preset_modes": [ + "auto" + ], + "supported_features": 57, + "speed_count": 10, + "speed_list": [ + "off", + "low", + "medium", + "high", + "auto" + ], + "speed_range": [ + 1, + 10 + ], + "default_on_percentage": 50 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-filter_life_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "FilterLifeTime", - "translation_key": "filter_life_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 4294967295, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "FilterLifeTime", - "available": true, - "state": 259200 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-filter_life_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "FilterLifeTime", + "translation_key": "filter_life_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 259200, + "mode": "auto", + "native_max_value": 4294967295, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "min" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 204 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 204, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "PM25", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-device_run_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "IkeaDeviceRunTime", - "translation_key": "device_run_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "min" - }, - "state": { - "class_name": "IkeaDeviceRunTime", - "available": true, - "state": 59343 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-device_run_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "IkeaDeviceRunTime", + "translation_key": "device_run_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 59343, + "suggested_display_precision": null, + "unit": "min" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-filter_run_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "IkeaFilterRunTime", - "translation_key": "filter_run_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "min" - }, - "state": { - "class_name": "IkeaFilterRunTime", - "available": true, - "state": 59343 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-filter_run_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "IkeaFilterRunTime", + "translation_key": "filter_run_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 59343, + "suggested_display_precision": null, + "unit": "min" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ChildLock", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ChildLock", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ChildLock", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-disable_led", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DisableLed", - "translation_key": "disable_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "disable_led", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "DisableLed", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-disable_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DisableLed", + "translation_key": "disable_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "disable_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00011001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00011001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2-0x00010012.json b/tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2-0x00010012.json index 234f94326..2d70e11e7 100644 --- a/tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2-0x00010012.json +++ b/tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2-0x00010012.json @@ -201,163 +201,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:61:2b:43-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:61:2b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:61:2b:43-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:61:2b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:61:2b:43-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:61:2b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:61:2b:43-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:61:2b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:61:2b:43-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:61:2b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -58 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:61:2b:43-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:61:2b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -58, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:61:2b:43-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:61:2b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:61:2b:43-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:52:61:2b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": 0.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:61:2b:43-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:61:2b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00010012", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:61:2b:43-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:61:2b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00010012", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-w-op-ch-400lm-0x23094631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-w-op-ch-400lm-0x23094631.json index 740a8d7f9..fe88a98a7 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-w-op-ch-400lm-0x23094631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-w-op-ch-400lm-0x23094631.json @@ -257,310 +257,257 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 3, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 3, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x23094631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x23094631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-ws-opal-400lm-0x23087631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-ws-opal-400lm-0x23087631.json index b3e8f892d..640c1ee54 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-ws-opal-400lm-0x23087631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-ws-opal-400lm-0x23087631.json @@ -361,342 +361,284 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 250, - "max_mireds": 454 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": 250, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": 250, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 250, + "max_mireds": 454 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 250, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 250, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x23087631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x23087631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e14-ws-globe-470lm-0x01010020.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e14-ws-globe-470lm-0x01010020.json index 0b92b343c..f832a9339 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e14-ws-globe-470lm-0x01010020.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e14-ws-globe-470lm-0x01010020.json @@ -306,342 +306,284 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 250, - "max_mireds": 454 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": 370, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": 370, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 250, + "max_mireds": 454 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 250, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 250, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 160 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 160, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01010020", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01010020", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-opal-1000lm-0x23094631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-opal-1000lm-0x23094631.json index 087c96707..4573211cf 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-opal-1000lm-0x23094631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-opal-1000lm-0x23094631.json @@ -257,310 +257,257 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x23094631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x23094631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-w-opal-1000lm-0x23094631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-w-opal-1000lm-0x23094631.json index b29a934e2..158b3bfe3 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-w-opal-1000lm-0x23094631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-w-opal-1000lm-0x23094631.json @@ -251,310 +251,257 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x23094631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x23094631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-ws-opal-980lm-0x23095631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-ws-opal-980lm-0x23095631.json index c1a479f91..78544cc8f 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-ws-opal-980lm-0x23095631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-ws-opal-980lm-0x23095631.json @@ -341,342 +341,284 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 250, - "max_mireds": 454 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 3, - "xy_color": null, - "color_temp": 452, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 3, + "xy_color": null, + "color_temp": 452, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 250, + "max_mireds": 454 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 250, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 250, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x23095631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x23095631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ws-globe-1055lm-0x02040005.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ws-globe-1055lm-0x02040005.json index eaae510f3..44b801324 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ws-globe-1055lm-0x02040005.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ws-globe-1055lm-0x02040005.json @@ -322,342 +322,284 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 250, - "max_mireds": 454 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 234, - "xy_color": null, - "color_temp": 250, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 234, + "xy_color": null, + "color_temp": 250, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 250, + "max_mireds": 454 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 250, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 443 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 443, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 250, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 234 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 234, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02040005", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x02040005", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ww-g95-cl-470lm-0x00011006.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ww-g95-cl-470lm-0x00011006.json index e876bd3c2..97f2e0866 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ww-g95-cl-470lm-0x00011006.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ww-g95-cl-470lm-0x00011006.json @@ -237,310 +237,257 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00011006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00011006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ws-400lm-0x23095631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ws-400lm-0x23095631.json index e5b340b69..d1f9b4bf4 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ws-400lm-0x23095631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ws-400lm-0x23095631.json @@ -367,342 +367,284 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 250, - "max_mireds": 454 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 1, - "xy_color": null, - "color_temp": 250, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 1, + "xy_color": null, + "color_temp": 250, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 250, + "max_mireds": 454 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 250, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 250, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x23095631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x23095631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-345lm8.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-345lm8.json index aaaafdefe..775901476 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-345lm8.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-345lm8.json @@ -232,310 +232,257 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 1, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 1, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-400lm-0x23093631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-400lm-0x23093631.json index 3f789b4f2..578a282a8 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-400lm-0x23093631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-400lm-0x23093631.json @@ -256,310 +256,257 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 176 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 176, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -56 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -56, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x23093631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x23093631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-control-outlet-0x23089631.json b/tests/data/devices/ikea-of-sweden-tradfri-control-outlet-0x23089631.json index 55d3b4ab9..126f10b59 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-control-outlet-0x23089631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-control-outlet-0x23089631.json @@ -233,190 +233,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x23089631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x23089631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-motion-sensor.json b/tests/data/devices/ikea-of-sweden-tradfri-motion-sensor.json index 1c5b09502..b0447c192 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-motion-sensor.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-motion-sensor.json @@ -207,192 +207,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:94:76:3f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IkeaMotion", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:99:94:76:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "IkeaMotion", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IkeaMotion", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:94:76:3f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:94:76:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:94:76:3f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:94:76:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:94:76:3f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:94:76:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:94:76:3f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:94:76:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 87.0, - "battery_size": "CR2032", - "battery_quantity": 2, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 87.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 2, + "battery_voltage": 2.9 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:94:76:3f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:94:76:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-on-off-switch.json b/tests/data/devices/ikea-of-sweden-tradfri-on-off-switch.json index 971243923..b9b18651a 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-on-off-switch.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-on-off-switch.json @@ -206,163 +206,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:53:65:d7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:53:65:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:53:65:d7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:53:65:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:53:65:d7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:53:65:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:53:65:d7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:53:65:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:53:65:d7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:53:65:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:53:65:d7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:53:65:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:53:65:d7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:53:65:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:53:65:d7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "14:b4:57:ff:fe:53:65:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 0.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:53:65:d7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:53:65:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:53:65:d7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:53:65:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-open-close-remote-0x23079631.json b/tests/data/devices/ikea-of-sweden-tradfri-open-close-remote-0x23079631.json index 6f30d834f..9b0a7e014 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-open-close-remote-0x23079631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-open-close-remote-0x23079631.json @@ -221,163 +221,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "38:5b:44:ff:fe:e6:8a:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "38:5b:44:ff:fe:e6:8a:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "38:5b:44:ff:fe:e6:8a:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "38:5b:44:ff:fe:e6:8a:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "38:5b:44:ff:fe:e6:8a:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "38:5b:44:ff:fe:e6:8a:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "38:5b:44:ff:fe:e6:8a:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 87.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "38:5b:44:ff:fe:e6:8a:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 87.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "38:5b:44:ff:fe:e6:8a:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x23079631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "38:5b:44:ff:fe:e6:8a:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x23079631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-remote-control.json b/tests/data/devices/ikea-of-sweden-tradfri-remote-control.json index 992497982..4f3569618 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-remote-control.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-remote-control.json @@ -206,163 +206,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 16.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.6 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 16.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.6 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button.json b/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button.json index 707b5eadb..209653e35 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button.json @@ -201,163 +201,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 180.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 180.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.9 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-wireless-dimmer.json b/tests/data/devices/ikea-of-sweden-tradfri-wireless-dimmer.json index 766ce3262..e8cd04635 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-wireless-dimmer.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-wireless-dimmer.json @@ -213,163 +213,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 34.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 34.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 0.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ikea-of-sweden-vallhorn-wireless-motion-sensor-0x01000064.json b/tests/data/devices/ikea-of-sweden-vallhorn-wireless-motion-sensor-0x01000064.json index 5580189c8..0917b41c8 100644 --- a/tests/data/devices/ikea-of-sweden-vallhorn-wireless-motion-sensor-0x01000064.json +++ b/tests/data/devices/ikea-of-sweden-vallhorn-wireless-motion-sensor-0x01000064.json @@ -370,376 +370,315 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": "On time", - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-on_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "on_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 10, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "On time", + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-on_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "on_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 10, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-2-1030-pir_o_to_u_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", - "translation_key": "pir_o_to_u_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-2-1030-pir_o_to_u_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", + "translation_key": "pir_o_to_u_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-2-1030-pir_u_to_o_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "PIRUnoccupiedToOccupiedDelayConfigurationEntity", - "translation_key": "pir_u_to_o_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "PIRUnoccupiedToOccupiedDelayConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-2-1030-pir_u_to_o_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "PIRUnoccupiedToOccupiedDelayConfigurationEntity", + "translation_key": "pir_u_to_o_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 70.0, - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": 2.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 70.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": 2.5 }, { - "info_object": { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-3-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 3 - } + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-3-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 3, + "suggested_display_precision": null, + "unit": "lx" } ], "switch": [ { - "info_object": { - "fallback_name": "On only when dark", - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-on_only_when_dark", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "on_only_when_dark", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_only_when_dark", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "On only when dark", + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-on_only_when_dark", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "on_only_when_dark", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "on_only_when_dark", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01000064", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01000064", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/imagic-by-greatstar-1112-s.json b/tests/data/devices/imagic-by-greatstar-1112-s.json index 518afe582..352cf8476 100644 --- a/tests/data/devices/imagic-by-greatstar-1112-s.json +++ b/tests/data/devices/imagic-by-greatstar-1112-s.json @@ -255,279 +255,233 @@ "zha_lib_entities": { "alarm_control_panel": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1281", - "migrate_unique_ids": [], - "platform": "alarm_control_panel", - "class_name": "AlarmControlPanel", - "translation_key": "alarm_control_panel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "code_arm_required": false, - "code_format": "number", - "supported_features": 15 - }, - "state": { - "class_name": "AlarmControlPanel", - "available": true, - "state": "disarmed" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1281", + "migrate_unique_ids": [], + "platform": "alarm_control_panel", + "class_name": "AlarmControlPanel", + "translation_key": "alarm_control_panel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "alarm_state": "disarmed", + "code_arm_required": false, + "code_format": "number", + "supported_features": 15 } ], "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Unknown", - "battery_quantity": 0, - "battery_voltage": 5.6 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": 0, + "battery_voltage": 5.6 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 25.7 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25.7, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 30.8 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.8, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/innr-ae-280-c-0x20026a30.json b/tests/data/devices/innr-ae-280-c-0x20026a30.json index 86e45b685..dba6b95a7 100644 --- a/tests/data/devices/innr-ae-280-c-0x20026a30.json +++ b/tests/data/devices/innr-ae-280-c-0x20026a30.json @@ -287,348 +287,289 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 555 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.489066910811017, - 0.4145723659113451 - ], - "color_temp": 420, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.489066910811017, + 0.4145723659113451 + ], + "color_temp": 420, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 555 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 555, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 555, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x20026a30", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x20026a30", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/innr-rb-285-c-0x10051567.json b/tests/data/devices/innr-rb-285-c-0x10051567.json index b1ed32b5a..18a300fda 100644 --- a/tests/data/devices/innr-rb-285-c-0x10051567.json +++ b/tests/data/devices/innr-rb-285-c-0x10051567.json @@ -322,286 +322,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 555 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.37297627222095064, - 0.37386129549095903 - ], - "color_temp": 236, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.37297627222095064, + 0.37386129549095903 + ], + "color_temp": 236, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 555 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 555, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 555, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x10051567", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x10051567", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/innr-rc-250-0x21086500.json b/tests/data/devices/innr-rc-250-0x21086500.json index 2e6001033..19afc4690 100644 --- a/tests/data/devices/innr-rc-250-0x21086500.json +++ b/tests/data/devices/innr-rc-250-0x21086500.json @@ -201,163 +201,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 204 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 204, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 10.0, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.5 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x21086500", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x21086500", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/innr-rs-232-c-0x22151511.json b/tests/data/devices/innr-rs-232-c-0x22151511.json index 6834a9aa9..34da00e1a 100644 --- a/tests/data/devices/innr-rs-232-c-0x22151511.json +++ b/tests/data/devices/innr-rs-232-c-0x22151511.json @@ -304,410 +304,341 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 555 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.5255664911879149, - 0.4134737163347829 - ], - "color_temp": 497, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.5255664911879149, + 0.4134737163347829 + ], + "color_temp": 497, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 555 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 555, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 555, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 100 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -86 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -86, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x22151511", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x22151511", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/innr-sp-120-0x11040002.json b/tests/data/devices/innr-sp-120-0x11040002.json index e4ef8d331..725f330e9 100644 --- a/tests/data/devices/innr-sp-120-0x11040002.json +++ b/tests/data/devices/innr-sp-120-0x11040002.json @@ -569,323 +569,275 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 145.26, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 145.26, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 238.0, - "measurement_type": "" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 238.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x11040002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x11040002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/innr-sp-234-0x31016610.json b/tests/data/devices/innr-sp-234-0x31016610.json index ed4958f25..58678a4b4 100644 --- a/tests/data/devices/innr-sp-234-0x31016610.json +++ b/tests/data/devices/innr-sp-234-0x31016610.json @@ -442,325 +442,277 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 5.41, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.41, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.007, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.007, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 123.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 123.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x31016610", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x31016610", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/innr-sp-240-0x191e3685.json b/tests/data/devices/innr-sp-240-0x191e3685.json index 47989dd36..5576f341e 100644 --- a/tests/data/devices/innr-sp-240-0x191e3685.json +++ b/tests/data/devices/innr-sp-240-0x191e3685.json @@ -575,325 +575,277 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.143, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.143, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 2.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.014, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.014, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 231.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 231.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x191e3685", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x191e3685", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/innr-sp-242-0x17173685.json b/tests/data/devices/innr-sp-242-0x17173685.json index 15626e143..9376f3bd2 100644 --- a/tests/data/devices/innr-sp-242-0x17173685.json +++ b/tests/data/devices/innr-sp-242-0x17173685.json @@ -563,482 +563,409 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 172 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 172, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -68 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -68, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 466.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 466.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 240.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 240.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x17173685", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x17173685", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/inovelli-vzm30-sn-0x01100100.json b/tests/data/devices/inovelli-vzm30-sn-0x01100100.json index caa7ceec6..28f6f4dec 100644 --- a/tests/data/devices/inovelli-vzm30-sn-0x01100100.json +++ b/tests/data/devices/inovelli-vzm30-sn-0x01100100.json @@ -767,585 +767,492 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "DefaultMoveRateConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 192 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 192, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -52 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -52, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 70.61, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 70.61, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 124.4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 124.4, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliInternalTemperature", - "translation_key": "internal_temp_monitor", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "InovelliInternalTemperature", - "available": true, - "state": 31 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliInternalTemperature", + "translation_key": "internal_temp_monitor", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 31, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-overheated", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliOverheated", - "translation_key": "overheated", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "InovelliOverheated", - "available": true, - "state": "Normal" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-overheated", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliOverheated", + "translation_key": "overheated", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Normal", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.24 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 22.24, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 50.51 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 50.51, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01100100", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01100100", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/inovelli-vzm30-sn.json b/tests/data/devices/inovelli-vzm30-sn.json index d01a0181b..3044d1eb3 100644 --- a/tests/data/devices/inovelli-vzm30-sn.json +++ b/tests/data/devices/inovelli-vzm30-sn.json @@ -917,1022 +917,859 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-auto_off_timer", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliAutoShutoffTimer", - "translation_key": "auto_off_timer", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 32767, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliAutoShutoffTimer", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-auto_off_timer", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliAutoShutoffTimer", + "translation_key": "auto_off_timer", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 32767, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-default_level_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDefaultLevel", - "translation_key": "default_level_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalDefaultLevel", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-default_level_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDefaultLevel", + "translation_key": "default_level_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-default_level_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDefaultLevel", - "translation_key": "default_level_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDefaultLevel", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-default_level_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDefaultLevel", + "translation_key": "default_level_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_down_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDimmingDownSpeed", - "translation_key": "dimming_speed_down_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalDimmingDownSpeed", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_down_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDimmingDownSpeed", + "translation_key": "dimming_speed_down_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_down_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingDownSpeed", - "translation_key": "dimming_speed_down_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDimmingDownSpeed", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_down_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingDownSpeed", + "translation_key": "dimming_speed_down_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_up_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDimmingUpSpeed", - "translation_key": "dimming_speed_up_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalDimmingUpSpeed", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_up_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDimmingUpSpeed", + "translation_key": "dimming_speed_up_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_up_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingUpSpeed", - "translation_key": "dimming_speed_up_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 126, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDimmingUpSpeed", - "available": true, - "state": 25 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_up_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingUpSpeed", + "translation_key": "dimming_speed_up_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25, + "mode": "auto", + "native_max_value": 126, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-load_level_indicator_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLoadLevelIndicatorTimeout", - "translation_key": "load_level_indicator_timeout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 11, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLoadLevelIndicatorTimeout", - "available": true, - "state": 11 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-load_level_indicator_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLoadLevelIndicatorTimeout", + "translation_key": "load_level_indicator_timeout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 11, + "mode": "auto", + "native_max_value": 11, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_off_to_on_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalRampRateOffToOn", - "translation_key": "ramp_rate_off_to_on_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalRampRateOffToOn", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_off_to_on_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalRampRateOffToOn", + "translation_key": "ramp_rate_off_to_on_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_off_to_on_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingSpeedOffToOn", - "translation_key": "ramp_rate_off_to_on_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDimmingSpeedOffToOn", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_off_to_on_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingSpeedOffToOn", + "translation_key": "ramp_rate_off_to_on_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_on_to_off_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalRampRateOnToOff", - "translation_key": "ramp_rate_on_to_off_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalRampRateOnToOff", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_on_to_off_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalRampRateOnToOff", + "translation_key": "ramp_rate_on_to_off_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_on_to_off_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingSpeedOnToOff", - "translation_key": "ramp_rate_on_to_off_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDimmingSpeedOnToOff", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_on_to_off_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingSpeedOnToOff", + "translation_key": "ramp_rate_on_to_off_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-state_after_power_restored", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliStartupDefaultLevel", - "translation_key": "state_after_power_restored", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliStartupDefaultLevel", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-state_after_power_restored", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliStartupDefaultLevel", + "translation_key": "state_after_power_restored", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "DefaultMoveRateConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 240 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 240, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -40 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -40, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 118.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 118.5, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliInternalTemperature", - "translation_key": "internal_temp_monitor", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "InovelliInternalTemperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliInternalTemperature", + "translation_key": "internal_temp_monitor", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-overheated", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliOverheated", - "translation_key": "overheated", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "InovelliOverheated", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-overheated", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliOverheated", + "translation_key": "overheated", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 17.6 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 17.6, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 61.47 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 61.47, + "suggested_display_precision": null, + "unit": "%" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-invert_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliInvertSwitch", - "translation_key": "invert_switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "invert_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliInvertSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-invert_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliInvertSwitch", + "translation_key": "invert_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "invert_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/inovelli-vzm31-sn-0x01020212.json b/tests/data/devices/inovelli-vzm31-sn-0x01020212.json index b4966d36c..8f13c57bf 100644 --- a/tests/data/devices/inovelli-vzm31-sn-0x01020212.json +++ b/tests/data/devices/inovelli-vzm31-sn-0x01020212.json @@ -895,1407 +895,1180 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-auto_off_timer", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliAutoShutoffTimer", - "translation_key": "auto_off_timer", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 32767, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliAutoShutoffTimer", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-auto_off_timer", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliAutoShutoffTimer", + "translation_key": "auto_off_timer", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 32767, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-button_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliButtonDelay", - "translation_key": "button_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliButtonDelay", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-button_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliButtonDelay", + "translation_key": "button_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-default_level_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDefaultLevel", - "translation_key": "default_level_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalDefaultLevel", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-default_level_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDefaultLevel", + "translation_key": "default_level_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-default_level_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDefaultLevel", - "translation_key": "default_level_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDefaultLevel", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-default_level_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDefaultLevel", + "translation_key": "default_level_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_down_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDimmingDownSpeed", - "translation_key": "dimming_speed_down_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalDimmingDownSpeed", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_down_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDimmingDownSpeed", + "translation_key": "dimming_speed_down_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_down_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingDownSpeed", - "translation_key": "dimming_speed_down_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDimmingDownSpeed", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_down_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingDownSpeed", + "translation_key": "dimming_speed_down_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_up_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDimmingUpSpeed", - "translation_key": "dimming_speed_up_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalDimmingUpSpeed", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_up_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDimmingUpSpeed", + "translation_key": "dimming_speed_up_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_up_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingUpSpeed", - "translation_key": "dimming_speed_up_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 126, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDimmingUpSpeed", - "available": true, - "state": 25 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_up_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingUpSpeed", + "translation_key": "dimming_speed_up_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25, + "mode": "auto", + "native_max_value": 126, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_color_when_off", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOffColor", - "translation_key": "led_color_when_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliDefaultAllLEDOffColor", - "available": true, - "state": 170 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_color_when_off", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOffColor", + "translation_key": "led_color_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 170, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_color_when_on", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOnColor", - "translation_key": "led_color_when_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliDefaultAllLEDOnColor", - "available": true, - "state": 170 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_color_when_on", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOnColor", + "translation_key": "led_color_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 170, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_intensity_when_off", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOffIntensity", - "translation_key": "led_intensity_when_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliDefaultAllLEDOffIntensity", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_intensity_when_off", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOffIntensity", + "translation_key": "led_intensity_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_intensity_when_on", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOnIntensity", - "translation_key": "led_intensity_when_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliDefaultAllLEDOnIntensity", - "available": true, - "state": 33 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_intensity_when_on", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOnIntensity", + "translation_key": "led_intensity_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 33, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-load_level_indicator_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLoadLevelIndicatorTimeout", - "translation_key": "load_level_indicator_timeout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 11, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLoadLevelIndicatorTimeout", - "available": true, - "state": 11 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-load_level_indicator_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLoadLevelIndicatorTimeout", + "translation_key": "load_level_indicator_timeout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 11, + "mode": "auto", + "native_max_value": 11, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-maximum_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliMaximumLoadDimmingLevel", - "translation_key": "maximum_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 2, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliMaximumLoadDimmingLevel", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-maximum_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliMaximumLoadDimmingLevel", + "translation_key": "maximum_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-minimum_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliMinimumLoadDimmingLevel", - "translation_key": "minimum_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 1, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliMinimumLoadDimmingLevel", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-minimum_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliMinimumLoadDimmingLevel", + "translation_key": "minimum_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 1, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_off_to_on_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalRampRateOffToOn", - "translation_key": "ramp_rate_off_to_on_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalRampRateOffToOn", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_off_to_on_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalRampRateOffToOn", + "translation_key": "ramp_rate_off_to_on_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_off_to_on_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingSpeedOffToOn", - "translation_key": "ramp_rate_off_to_on_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDimmingSpeedOffToOn", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_off_to_on_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingSpeedOffToOn", + "translation_key": "ramp_rate_off_to_on_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_on_to_off_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalRampRateOnToOff", - "translation_key": "ramp_rate_on_to_off_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalRampRateOnToOff", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_on_to_off_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalRampRateOnToOff", + "translation_key": "ramp_rate_on_to_off_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_on_to_off_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingSpeedOnToOff", - "translation_key": "ramp_rate_on_to_off_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDimmingSpeedOnToOff", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_on_to_off_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingSpeedOnToOff", + "translation_key": "ramp_rate_on_to_off_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-state_after_power_restored", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliStartupDefaultLevel", - "translation_key": "state_after_power_restored", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliStartupDefaultLevel", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-state_after_power_restored", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliStartupDefaultLevel", + "translation_key": "state_after_power_restored", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 30 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-leading_or_trailing_edge", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "InovelliDimmingModeEntity", - "translation_key": "leading_or_trailing_edge", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "InovelliDimmingMode", - "options": [ - "LeadingEdge", - "TrailingEdge" - ] - }, - "state": { - "class_name": "InovelliDimmingModeEntity", - "available": true, - "state": "LeadingEdge" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-leading_or_trailing_edge", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "InovelliDimmingModeEntity", + "translation_key": "leading_or_trailing_edge", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LeadingEdge", + "enum": "InovelliDimmingMode", + "options": [ + "LeadingEdge", + "TrailingEdge" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-output_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "InovelliOutputModeEntity", - "translation_key": "output_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "InovelliOutputMode", - "options": [ - "Dimmer", - "OnOff" - ] - }, - "state": { - "class_name": "InovelliOutputModeEntity", - "available": true, - "state": "OnOff" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-output_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "InovelliOutputModeEntity", + "translation_key": "output_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "OnOff", + "enum": "InovelliOutputMode", + "options": [ + "Dimmer", + "OnOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-switch_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "InovelliSwitchTypeEntity", - "translation_key": "switch_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "InovelliSwitchType", - "options": [ - "Single Pole", - "Three Way Dumb", - "Three Way AUX", - "Single Pole Full Sine" - ] - }, - "state": { - "class_name": "InovelliSwitchTypeEntity", - "available": true, - "state": "Single Pole" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-switch_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "InovelliSwitchTypeEntity", + "translation_key": "switch_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Single Pole", + "enum": "InovelliSwitchType", + "options": [ + "Single Pole", + "Three Way Dumb", + "Three Way AUX", + "Single Pole Full Sine" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 112 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 112, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -72 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -72, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 3.02, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3.02, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliInternalTemperature", - "translation_key": "internal_temp_monitor", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "InovelliInternalTemperature", - "available": true, - "state": 39 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliInternalTemperature", + "translation_key": "internal_temp_monitor", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 39, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-overheated", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliOverheated", - "translation_key": "overheated", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "InovelliOverheated", - "available": true, - "state": "Normal" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-overheated", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliOverheated", + "translation_key": "overheated", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Normal", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-disable_clear_notifications_double_tap", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliDisableDoubleTapClearNotificationsMode", - "translation_key": "disable_clear_notifications_double_tap", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "disable_clear_notifications_double_tap", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliDisableDoubleTapClearNotificationsMode", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-disable_clear_notifications_double_tap", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliDisableDoubleTapClearNotificationsMode", + "translation_key": "disable_clear_notifications_double_tap", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "disable_clear_notifications_double_tap", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-double_tap_up_enabled", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliDoubleTapUpEnabled", - "translation_key": "double_tap_up_enabled", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "double_tap_up_enabled", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliDoubleTapUpEnabled", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-double_tap_up_enabled", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliDoubleTapUpEnabled", + "translation_key": "double_tap_up_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "double_tap_up_enabled", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-firmware_progress_led", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliFirmwareProgressLED", - "translation_key": "firmware_progress_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "firmware_progress_led", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliFirmwareProgressLED", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-firmware_progress_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliFirmwareProgressLED", + "translation_key": "firmware_progress_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "firmware_progress_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-invert_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliInvertSwitch", - "translation_key": "invert_switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "invert_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliInvertSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-invert_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliInvertSwitch", + "translation_key": "invert_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "invert_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-local_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliLocalProtection", - "translation_key": "local_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "local_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliLocalProtection", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-local_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliLocalProtection", + "translation_key": "local_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "local_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-on_off_led_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliOnOffLEDMode", - "translation_key": "one_led_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off_led_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliOnOffLEDMode", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-on_off_led_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliOnOffLEDMode", + "translation_key": "one_led_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "on_off_led_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-relay_click_in_on_off_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliRelayClickInOnOffMode", - "translation_key": "relay_click_in_on_off_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "relay_click_in_on_off_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliRelayClickInOnOffMode", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-relay_click_in_on_off_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliRelayClickInOnOffMode", + "translation_key": "relay_click_in_on_off_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "relay_click_in_on_off_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-smart_bulb_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliSmartBulbMode", - "translation_key": "smart_bulb_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "smart_bulb_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliSmartBulbMode", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-smart_bulb_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliSmartBulbMode", + "translation_key": "smart_bulb_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "smart_bulb_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01020212", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01020212", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/inovelli-vzm35-sn-0x02020107.json b/tests/data/devices/inovelli-vzm35-sn-0x02020107.json index 701127f07..24aa5e0ad 100644 --- a/tests/data/devices/inovelli-vzm35-sn-0x02020107.json +++ b/tests/data/devices/inovelli-vzm35-sn-0x02020107.json @@ -556,1471 +556,1233 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-auto_off_timer", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliAutoShutoffTimer", - "translation_key": "auto_off_timer", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 32767, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliAutoShutoffTimer", - "available": true, - "state": 3600 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-auto_off_timer", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliAutoShutoffTimer", + "translation_key": "auto_off_timer", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3600, + "mode": "auto", + "native_max_value": 32767, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-button_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliButtonDelay", - "translation_key": "button_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliButtonDelay", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-button_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliButtonDelay", + "translation_key": "button_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-default_level_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDefaultLevel", - "translation_key": "default_level_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalDefaultLevel", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-default_level_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDefaultLevel", + "translation_key": "default_level_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-default_level_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDefaultLevel", - "translation_key": "default_level_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDefaultLevel", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-default_level_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDefaultLevel", + "translation_key": "default_level_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_down_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDimmingDownSpeed", - "translation_key": "dimming_speed_down_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalDimmingDownSpeed", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_down_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDimmingDownSpeed", + "translation_key": "dimming_speed_down_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_down_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingDownSpeed", - "translation_key": "dimming_speed_down_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDimmingDownSpeed", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_down_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingDownSpeed", + "translation_key": "dimming_speed_down_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_up_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDimmingUpSpeed", - "translation_key": "dimming_speed_up_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalDimmingUpSpeed", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_up_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDimmingUpSpeed", + "translation_key": "dimming_speed_up_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_up_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingUpSpeed", - "translation_key": "dimming_speed_up_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 126, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDimmingUpSpeed", - "available": true, - "state": 25 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_up_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingUpSpeed", + "translation_key": "dimming_speed_up_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25, + "mode": "auto", + "native_max_value": 126, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_down_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDoubleTapDownLevel", - "translation_key": "double_tap_down_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliDoubleTapDownLevel", - "available": true, - "state": 2 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_down_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDoubleTapDownLevel", + "translation_key": "double_tap_down_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_up_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDoubleTapUpLevel", - "translation_key": "double_tap_up_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 2, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliDoubleTapUpLevel", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_up_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDoubleTapUpLevel", + "translation_key": "double_tap_up_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_color_when_off", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOffColor", - "translation_key": "led_color_when_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliDefaultAllLEDOffColor", - "available": true, - "state": 170 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_color_when_off", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOffColor", + "translation_key": "led_color_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 170, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_color_when_on", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOnColor", - "translation_key": "led_color_when_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliDefaultAllLEDOnColor", - "available": true, - "state": 170 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_color_when_on", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOnColor", + "translation_key": "led_color_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 170, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_intensity_when_off", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOffIntensity", - "translation_key": "led_intensity_when_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliDefaultAllLEDOffIntensity", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_intensity_when_off", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOffIntensity", + "translation_key": "led_intensity_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_intensity_when_on", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOnIntensity", - "translation_key": "led_intensity_when_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliDefaultAllLEDOnIntensity", - "available": true, - "state": 33 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_intensity_when_on", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOnIntensity", + "translation_key": "led_intensity_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 33, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-load_level_indicator_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLoadLevelIndicatorTimeout", - "translation_key": "load_level_indicator_timeout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 11, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLoadLevelIndicatorTimeout", - "available": true, - "state": 11 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-load_level_indicator_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLoadLevelIndicatorTimeout", + "translation_key": "load_level_indicator_timeout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 11, + "mode": "auto", + "native_max_value": 11, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-maximum_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliMaximumLoadDimmingLevel", - "translation_key": "maximum_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 2, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliMaximumLoadDimmingLevel", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-maximum_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliMaximumLoadDimmingLevel", + "translation_key": "maximum_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-minimum_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliMinimumLoadDimmingLevel", - "translation_key": "minimum_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 1, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliMinimumLoadDimmingLevel", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-minimum_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliMinimumLoadDimmingLevel", + "translation_key": "minimum_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 1, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-quick_start_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliQuickStartTime", - "translation_key": "quick_start_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliQuickStartTime", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-quick_start_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliQuickStartTime", + "translation_key": "quick_start_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_off_to_on_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalRampRateOffToOn", - "translation_key": "ramp_rate_off_to_on_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalRampRateOffToOn", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_off_to_on_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalRampRateOffToOn", + "translation_key": "ramp_rate_off_to_on_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_off_to_on_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingSpeedOffToOn", - "translation_key": "ramp_rate_off_to_on_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDimmingSpeedOffToOn", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_off_to_on_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingSpeedOffToOn", + "translation_key": "ramp_rate_off_to_on_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_on_to_off_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalRampRateOnToOff", - "translation_key": "ramp_rate_on_to_off_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliLocalRampRateOnToOff", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_on_to_off_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalRampRateOnToOff", + "translation_key": "ramp_rate_on_to_off_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_on_to_off_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingSpeedOnToOff", - "translation_key": "ramp_rate_on_to_off_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliRemoteDimmingSpeedOnToOff", - "available": true, - "state": 127 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_on_to_off_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingSpeedOnToOff", + "translation_key": "ramp_rate_on_to_off_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 127, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-state_after_power_restored", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliStartupDefaultLevel", - "translation_key": "state_after_power_restored", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "InovelliStartupDefaultLevel", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-state_after_power_restored", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliStartupDefaultLevel", + "translation_key": "state_after_power_restored", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-output_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "InovelliOutputModeEntity", - "translation_key": "output_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "InovelliOutputMode", - "options": [ - "Dimmer", - "OnOff" - ] - }, - "state": { - "class_name": "InovelliOutputModeEntity", - "available": true, - "state": "OnOff" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-output_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "InovelliOutputModeEntity", + "translation_key": "output_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "OnOff", + "enum": "InovelliOutputMode", + "options": [ + "Dimmer", + "OnOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-smart_fan_led_display_levels", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "InovelliFanLedScalingModeEntity", - "translation_key": "smart_fan_led_display_levels", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "InovelliFanLedScalingMode", - "options": [ - "VZM31SN", - "Grade 1", - "Grade 2", - "Grade 3", - "Grade 4", - "Grade 5", - "Grade 6", - "Grade 7", - "Grade 8", - "Grade 9", - "Adaptive" - ] - }, - "state": { - "class_name": "InovelliFanLedScalingModeEntity", - "available": true, - "state": "Adaptive" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-smart_fan_led_display_levels", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "InovelliFanLedScalingModeEntity", + "translation_key": "smart_fan_led_display_levels", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Adaptive", + "enum": "InovelliFanLedScalingMode", + "options": [ + "VZM31SN", + "Grade 1", + "Grade 2", + "Grade 3", + "Grade 4", + "Grade 5", + "Grade 6", + "Grade 7", + "Grade 8", + "Grade 9", + "Adaptive" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-switch_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "InovelliFanSwitchTypeEntity", - "translation_key": "switch_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "InovelliFanSwitchType", - "options": [ - "Load Only", - "Three Way AUX" - ] - }, - "state": { - "class_name": "InovelliFanSwitchTypeEntity", - "available": true, - "state": "Load Only" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-switch_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "InovelliFanSwitchTypeEntity", + "translation_key": "switch_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Load Only", + "enum": "InovelliFanSwitchType", + "options": [ + "Load Only", + "Three Way AUX" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 184 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 184, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -54 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -54, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliInternalTemperature", - "translation_key": "internal_temp_monitor", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "InovelliInternalTemperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliInternalTemperature", + "translation_key": "internal_temp_monitor", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-overheated", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliOverheated", - "translation_key": "overheated", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "InovelliOverheated", - "available": true, - "state": "Normal" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-overheated", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliOverheated", + "translation_key": "overheated", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Normal", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-aux_switch_scenes", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliAuxSwitchScenes", - "translation_key": "aux_switch_scenes", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "aux_switch_scenes", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliAuxSwitchScenes", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-aux_switch_scenes", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliAuxSwitchScenes", + "translation_key": "aux_switch_scenes", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "aux_switch_scenes", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_down_enabled", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliDoubleTapDownEnabled", - "translation_key": "double_tap_down_enabled", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "double_tap_down_enabled", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliDoubleTapDownEnabled", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_down_enabled", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliDoubleTapDownEnabled", + "translation_key": "double_tap_down_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "double_tap_down_enabled", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_up_enabled", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliDoubleTapUpEnabled", - "translation_key": "double_tap_up_enabled", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "double_tap_up_enabled", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliDoubleTapUpEnabled", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_up_enabled", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliDoubleTapUpEnabled", + "translation_key": "double_tap_up_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "double_tap_up_enabled", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-firmware_progress_led", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliFirmwareProgressLED", - "translation_key": "firmware_progress_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "firmware_progress_led", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliFirmwareProgressLED", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-firmware_progress_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliFirmwareProgressLED", + "translation_key": "firmware_progress_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "firmware_progress_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-invert_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliInvertSwitch", - "translation_key": "invert_switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "invert_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliInvertSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-invert_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliInvertSwitch", + "translation_key": "invert_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "invert_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-local_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliLocalProtection", - "translation_key": "local_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "local_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliLocalProtection", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-local_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliLocalProtection", + "translation_key": "local_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "local_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-on_off_led_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliOnOffLEDMode", - "translation_key": "one_led_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off_led_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliOnOffLEDMode", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-on_off_led_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliOnOffLEDMode", + "translation_key": "one_led_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "on_off_led_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-smart_bulb_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliSmartBulbMode", - "translation_key": "smart_bulb_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "smart_bulb_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliSmartBulbMode", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-smart_bulb_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliSmartBulbMode", + "translation_key": "smart_bulb_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "smart_bulb_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-smart_fan_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliSmartFanMode", - "translation_key": "smart_fan_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "smart_fan_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "InovelliSmartFanMode", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-smart_fan_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliSmartFanMode", + "translation_key": "smart_fan_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "smart_fan_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02020107", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x02020107", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/isilentllc-dog-feeder.json b/tests/data/devices/isilentllc-dog-feeder.json index 788a4bd4d..25015dfc5 100644 --- a/tests/data/devices/isilentllc-dog-feeder.json +++ b/tests/data/devices/isilentllc-dog-feeder.json @@ -310,204 +310,169 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Jammed", - "unique_id": "00:13:a2:00:41:67:1f:d7-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInputWithDescription", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInputWithDescription", - "available": true, - "state": false - } + "fallback_name": "Jammed", + "unique_id": "00:13:a2:00:41:67:1f:d7-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInputWithDescription", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:67:1f:d7-2-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:13:a2:00:41:67:1f:d7-2-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:67:1f:d7-4-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 4, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:13:a2:00:41:67:1f:d7-4-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:67:1f:d7-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 12.0, - "native_min_value": 1.0, - "native_step": null, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 3.0 - } + "fallback_name": null, + "unique_id": "00:13:a2:00:41:67:1f:d7-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3.0, + "mode": "auto", + "native_max_value": 12.0, + "native_min_value": 1.0, + "native_step": null, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:67:1f:d7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:13:a2:00:41:67:1f:d7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:67:1f:d7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:13:a2:00:41:67:1f:d7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:67:1f:d7-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "00:13:a2:00:41:67:1f:d7-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ] }, diff --git a/tests/data/devices/isilentllc-doorbell.json b/tests/data/devices/isilentllc-doorbell.json index a059b602a..96400f0a7 100644 --- a/tests/data/devices/isilentllc-doorbell.json +++ b/tests/data/devices/isilentllc-doorbell.json @@ -169,145 +169,120 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4e:54-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:c0:4e:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4e:54-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:c0:4e:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4e:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:c0:4e:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4e:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:c0:4e:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4e:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:c0:4e:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4e:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:c0:4e:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4e:54-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:c0:4e:54", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 26.4 - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4e:54-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:c0:4e:54", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 26.4, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4e:54-2-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:c0:4e:54", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 46.8 - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4e:54-2-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:c0:4e:54", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 46.8, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/isilentllc-freezer-monitor.json b/tests/data/devices/isilentllc-freezer-monitor.json index a3b620216..7cad49013 100644 --- a/tests/data/devices/isilentllc-freezer-monitor.json +++ b/tests/data/devices/isilentllc-freezer-monitor.json @@ -181,149 +181,124 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-3-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": -23.81 - } + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-3-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": -23.81, + "suggested_display_precision": null, + "unit": "\u00b0C" } ] }, diff --git a/tests/data/devices/isilentllc-home-energy-monitor.json b/tests/data/devices/isilentllc-home-energy-monitor.json index 4242cdf12..13077baa7 100644 --- a/tests/data/devices/isilentllc-home-energy-monitor.json +++ b/tests/data/devices/isilentllc-home-energy-monitor.json @@ -3995,4960 +3995,4350 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-10-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 16.11, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-10-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.04, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 16.11, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 25.01, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 60.04, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 55, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 25.01, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 11.04, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 55, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 118.42, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 11.04, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-11-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 61.25, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 118.42, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-11-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.57, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 61.25, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 83.22, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 60.57, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 30, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 83.22, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 10.5, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 30, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 121.93, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 10.5, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-12-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 12, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.37, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 121.93, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-12-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 12, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.04, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 12, + "available": true, + "group_id": null, + "native_value": 0.37, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 12, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 29.04, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 12, + "available": true, + "group_id": null, + "native_value": 60.04, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 12, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 56, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 12, + "available": true, + "group_id": null, + "native_value": 29.04, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 12, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 4.35, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 12, + "available": true, + "group_id": null, + "native_value": 56, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 12, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 123.32, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 12, + "available": true, + "group_id": null, + "native_value": 4.35, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-13-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 13, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 73.87, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 12, + "available": true, + "group_id": null, + "native_value": 123.32, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-13-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 13, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.65, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 13, + "available": true, + "group_id": null, + "native_value": 73.87, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 13, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 71.56, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 13, + "available": true, + "group_id": null, + "native_value": 60.65, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 13, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 63, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 13, + "available": true, + "group_id": null, + "native_value": 71.56, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 13, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 4.36, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 13, + "available": true, + "group_id": null, + "native_value": 63, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 13, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 117.29, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 13, + "available": true, + "group_id": null, + "native_value": 4.36, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-14-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 14, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 80.66, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 13, + "available": true, + "group_id": null, + "native_value": 117.29, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-14-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 14, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.94, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 14, + "available": true, + "group_id": null, + "native_value": 80.66, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 14, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 58.59, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 14, + "available": true, + "group_id": null, + "native_value": 60.94, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 14, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 18, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 14, + "available": true, + "group_id": null, + "native_value": 58.59, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 14, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 8.26, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 14, + "available": true, + "group_id": null, + "native_value": 18, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 14, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 117.36, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 14, + "available": true, + "group_id": null, + "native_value": 8.26, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-15-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 15, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 5.34, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 14, + "available": true, + "group_id": null, + "native_value": 117.36, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-15-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 15, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.74, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 15, + "available": true, + "group_id": null, + "native_value": 5.34, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 15, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 77.12, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 15, + "available": true, + "group_id": null, + "native_value": 60.74, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 15, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 99, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 15, + "available": true, + "group_id": null, + "native_value": 77.12, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 15, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 12.19, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 15, + "available": true, + "group_id": null, + "native_value": 99, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 15, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 120.67, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 15, + "available": true, + "group_id": null, + "native_value": 12.19, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-16-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 16, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 82.07, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 15, + "available": true, + "group_id": null, + "native_value": 120.67, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-16-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 16, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.32, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 16, + "available": true, + "group_id": null, + "native_value": 82.07, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 16, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 8.98, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 16, + "available": true, + "group_id": null, + "native_value": 60.32, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 16, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 44, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 16, + "available": true, + "group_id": null, + "native_value": 8.98, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 16, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 11.93, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 16, + "available": true, + "group_id": null, + "native_value": 44, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 16, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 116.78, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 16, + "available": true, + "group_id": null, + "native_value": 11.93, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-17-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 17, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 53.88, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 16, + "available": true, + "group_id": null, + "native_value": 116.78, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-17-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 17, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.88, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 17, + "available": true, + "group_id": null, + "native_value": 53.88, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 17, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 65.55, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 17, + "available": true, + "group_id": null, + "native_value": 60.88, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 17, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 95, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 17, + "available": true, + "group_id": null, + "native_value": 65.55, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 17, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 10.07, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 17, + "available": true, + "group_id": null, + "native_value": 95, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 17, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 120.71, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 17, + "available": true, + "group_id": null, + "native_value": 10.07, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-18-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 18, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 15.29, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 17, + "available": true, + "group_id": null, + "native_value": 120.71, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-18-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 18, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.85, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 18, + "available": true, + "group_id": null, + "native_value": 15.29, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 18, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 55.31, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 18, + "available": true, + "group_id": null, + "native_value": 60.85, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 18, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 24, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 18, + "available": true, + "group_id": null, + "native_value": 55.31, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 18, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 14.46, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 18, + "available": true, + "group_id": null, + "native_value": 24, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 18, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 116.15, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 18, + "available": true, + "group_id": null, + "native_value": 14.46, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-19-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 19, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 2.92, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 18, + "available": true, + "group_id": null, + "native_value": 116.15, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-19-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 19, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 59.93, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 19, + "available": true, + "group_id": null, + "native_value": 2.92, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 19, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 50.75, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 19, + "available": true, + "group_id": null, + "native_value": 59.93, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 19, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 34, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 19, + "available": true, + "group_id": null, + "native_value": 50.75, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 19, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 5.23, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 19, + "available": true, + "group_id": null, + "native_value": 34, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 19, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 121.3, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 19, + "available": true, + "group_id": null, + "native_value": 5.23, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-2-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 10.61, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 19, + "available": true, + "group_id": null, + "native_value": 121.3, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-2-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.17, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 10.61, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 53.61, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 60.17, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 85, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 53.61, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 6.28, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 85, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 118.51, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 6.28, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-20-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 20, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 59.51, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 118.51, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-20-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 20, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.21, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 20, + "available": true, + "group_id": null, + "native_value": 59.51, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 20, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 92.69, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 20, + "available": true, + "group_id": null, + "native_value": 60.21, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 20, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 91, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 20, + "available": true, + "group_id": null, + "native_value": 92.69, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 20, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 6.7, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 20, + "available": true, + "group_id": null, + "native_value": 91, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 20, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 119.91, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 20, + "available": true, + "group_id": null, + "native_value": 6.7, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-21-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 21, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 4.17, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 20, + "available": true, + "group_id": null, + "native_value": 119.91, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-21-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 21, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 59.17, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 21, + "available": true, + "group_id": null, + "native_value": 4.17, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 21, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 79.9, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 21, + "available": true, + "group_id": null, + "native_value": 59.17, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 21, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 51, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 21, + "available": true, + "group_id": null, + "native_value": 79.9, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 21, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 3.94, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 21, + "available": true, + "group_id": null, + "native_value": 51, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 21, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 116.88, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 21, + "available": true, + "group_id": null, + "native_value": 3.94, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-22-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 22, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 61.28, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 21, + "available": true, + "group_id": null, + "native_value": 116.88, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-22-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 22, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 59.33, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 22, + "available": true, + "group_id": null, + "native_value": 61.28, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 22, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 5.13, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 22, + "available": true, + "group_id": null, + "native_value": 59.33, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 22, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 97, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 22, + "available": true, + "group_id": null, + "native_value": 5.13, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 22, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 5.64, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 22, + "available": true, + "group_id": null, + "native_value": 97, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 22, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 122.72, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 22, + "available": true, + "group_id": null, + "native_value": 5.64, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-23-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 23, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 11.9, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 22, + "available": true, + "group_id": null, + "native_value": 122.72, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-23-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 23, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 59.34, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 23, + "available": true, + "group_id": null, + "native_value": 11.9, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 23, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 39.19, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 23, + "available": true, + "group_id": null, + "native_value": 59.34, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 23, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 21, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 23, + "available": true, + "group_id": null, + "native_value": 39.19, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 23, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 3.91, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 23, + "available": true, + "group_id": null, + "native_value": 21, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 23, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 116.66, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 23, + "available": true, + "group_id": null, + "native_value": 3.91, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-24-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 24, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 4.11, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 23, + "available": true, + "group_id": null, + "native_value": 116.66, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-24-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 24, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 59.99, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 24, + "available": true, + "group_id": null, + "native_value": 4.11, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 24, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 94.32, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 24, + "available": true, + "group_id": null, + "native_value": 59.99, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 24, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 55, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 24, + "available": true, + "group_id": null, + "native_value": 94.32, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 24, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 1.84, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 24, + "available": true, + "group_id": null, + "native_value": 55, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 24, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 121.41, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 24, + "available": true, + "group_id": null, + "native_value": 1.84, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-25-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 25, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 13.49, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 24, + "available": true, + "group_id": null, + "native_value": 121.41, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-25-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 25, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 59.46, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 25, + "available": true, + "group_id": null, + "native_value": 13.49, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 25, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 28.08, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 25, + "available": true, + "group_id": null, + "native_value": 59.46, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 25, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 0, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 25, + "available": true, + "group_id": null, + "native_value": 28.08, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 25, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 1.68, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 25, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 25, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 118.04, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 25, + "available": true, + "group_id": null, + "native_value": 1.68, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-26-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 26, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 84.08, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 25, + "available": true, + "group_id": null, + "native_value": 118.04, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-26-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 26, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 59.58, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 26, + "available": true, + "group_id": null, + "native_value": 84.08, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 26, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 9.18, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 26, + "available": true, + "group_id": null, + "native_value": 59.58, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 26, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 41, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 26, + "available": true, + "group_id": null, + "native_value": 9.18, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 26, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 3.52, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 26, + "available": true, + "group_id": null, + "native_value": 41, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 26, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 124.04, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 26, + "available": true, + "group_id": null, + "native_value": 3.52, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-3-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 39.33, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 26, + "available": true, + "group_id": null, + "native_value": 124.04, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-3-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 59.36, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 39.33, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 6.4, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 59.36, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 27, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 6.4, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 5.29, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 27, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 115.19, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 5.29, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-4-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 63.77, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 115.19, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-4-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 59.99, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 63.77, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 61.39, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 59.99, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 93, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 61.39, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 8.33, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 93, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 117.45, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 8.33, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-5-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 4.37, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 117.45, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-5-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.57, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 4.37, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 22.23, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 60.57, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 93, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 22.23, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 14.64, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 93, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 124.16, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 14.64, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-6-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 31.48, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 124.16, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-6-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 59.0, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 31.48, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 81.49, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 59.0, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 23, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 81.49, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 10.24, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 23, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 123.42, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 10.24, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-7-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 7, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 7.6, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 123.42, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-7-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 7, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.92, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 7, + "available": true, + "group_id": null, + "native_value": 7.6, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 7, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 36.56, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 7, + "available": true, + "group_id": null, + "native_value": 60.92, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 7, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 52, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 7, + "available": true, + "group_id": null, + "native_value": 36.56, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 7, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 3.39, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 7, + "available": true, + "group_id": null, + "native_value": 52, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 7, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 118.6, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 7, + "available": true, + "group_id": null, + "native_value": 3.39, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-8-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 8, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 2.47, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 7, + "available": true, + "group_id": null, + "native_value": 118.6, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-8-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 8, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.04, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": 2.47, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 8, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 43.42, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": 60.04, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 8, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 77, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": 43.42, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 8, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 4.09, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": 77, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 8, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 124.38, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": 4.09, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-9-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 9, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 63.6, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": 124.38, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-9-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 9, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.71, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 9, + "available": true, + "group_id": null, + "native_value": 63.6, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 9, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 25.72, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 9, + "available": true, + "group_id": null, + "native_value": 60.71, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 9, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 37, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 9, + "available": true, + "group_id": null, + "native_value": 25.72, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 9, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 3.48, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 9, + "available": true, + "group_id": null, + "native_value": 37, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] - }, - { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 9, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 124.69, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 9, + "available": true, + "group_id": null, + "native_value": 3.48, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" + }, + { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 9, + "available": true, + "group_id": null, + "native_value": 124.69, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ] }, diff --git a/tests/data/devices/isilentllc-masterbed-light-controller.json b/tests/data/devices/isilentllc-masterbed-light-controller.json index dab8ed0ec..d016d4005 100644 --- a/tests/data/devices/isilentllc-masterbed-light-controller.json +++ b/tests/data/devices/isilentllc-masterbed-light-controller.json @@ -511,293 +511,240 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-2-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-2-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-3-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 3, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-3-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.32599374380102236, - 0.332997634851606 - ], - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.32599374380102236, + 0.332997634851606 + ], + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-2-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1023, - "native_min_value": 0, - "native_step": 0.009999999776482582, - "native_unit_of_measurement": "V" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 1.5 - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-2-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 1.5, + "mode": "auto", + "native_max_value": 1023, + "native_min_value": 0, + "native_step": 0.009999999776482582, + "native_unit_of_measurement": "V" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-3-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1023, - "native_min_value": 0, - "native_step": 0.009999999776482582, - "native_unit_of_measurement": "V" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 1.5 - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-3-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 1.5, + "mode": "auto", + "native_max_value": 1023, + "native_min_value": 0, + "native_step": 0.009999999776482582, + "native_unit_of_measurement": "V" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-4-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 24.9 - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-4-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 24.9, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-4-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 43.7 - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-4-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 43.7, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/isilentllc-safe.json b/tests/data/devices/isilentllc-safe.json index 20285375c..057bfff64 100644 --- a/tests/data/devices/isilentllc-safe.json +++ b/tests/data/devices/isilentllc-safe.json @@ -366,229 +366,186 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-3-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 3, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-3-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 4, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.32599374380102236, - 0.332997634851606 - ], - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 4, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.32599374380102236, + 0.332997634851606 + ], + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 25.2 - } + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 25.2, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-2-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 41.9 - } + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-2-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 41.9, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/isilentllc-test-device.json b/tests/data/devices/isilentllc-test-device.json index 17399e5e2..317695eba 100644 --- a/tests/data/devices/isilentllc-test-device.json +++ b/tests/data/devices/isilentllc-test-device.json @@ -175,146 +175,121 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", - "endpoint_id": 10, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", + "endpoint_id": 10, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", - "endpoint_id": 10, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", + "endpoint_id": 10, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:c2-11-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", - "endpoint_id": 11, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:c2-11-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "is_on": 0 } ] }, diff --git a/tests/data/devices/isilentllc-test-mule.json b/tests/data/devices/isilentllc-test-mule.json index 4d80b3118..939d1b9ae 100644 --- a/tests/data/devices/isilentllc-test-mule.json +++ b/tests/data/devices/isilentllc-test-mule.json @@ -151,121 +151,101 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "74:4d:bd:ff:fe:60:7c:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "74:4d:bd:ff:fe:60:7c:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "74:4d:bd:ff:fe:60:7c:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "74:4d:bd:ff:fe:60:7c:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "74:4d:bd:ff:fe:60:7c:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "74:4d:bd:ff:fe:60:7c:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "74:4d:bd:ff:fe:60:7c:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "74:4d:bd:ff:fe:60:7c:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/isilentllc-water-heater.json b/tests/data/devices/isilentllc-water-heater.json index 73c1def36..3cbf18d0a 100644 --- a/tests/data/devices/isilentllc-water-heater.json +++ b/tests/data/devices/isilentllc-water-heater.json @@ -319,245 +319,206 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 0.0, - "measurement_type": "PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT, DC_MEASUREMENT", - "ac_frequency_max": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT, DC_MEASUREMENT", + "max_value": 0.0, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT, DC_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT, DC_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0, - "measurement_type": "PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT, DC_MEASUREMENT", - "rms_voltage_max": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT, DC_MEASUREMENT", + "max_value": 0.0, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 47.5 - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 47.5, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-3-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 56.0 - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-3-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 56.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ] }, diff --git a/tests/data/devices/jasco-products-45856-0x00000006.json b/tests/data/devices/jasco-products-45856-0x00000006.json index 84c624e17..30f3a0541 100644 --- a/tests/data/devices/jasco-products-45856-0x00000006.json +++ b/tests/data/devices/jasco-products-45856-0x00000006.json @@ -324,251 +324,206 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "ForceOnLight", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/jasco-products-45857-0x00000006.json b/tests/data/devices/jasco-products-45857-0x00000006.json index b91a42533..e5901d258 100644 --- a/tests/data/devices/jasco-products-45857-0x00000006.json +++ b/tests/data/devices/jasco-products-45857-0x00000006.json @@ -379,285 +379,235 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "ForceOnLight", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.1309, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.1309, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ke-tradfri-open-close-remote-0x22010631.json b/tests/data/devices/ke-tradfri-open-close-remote-0x22010631.json index 4ddcea7b6..e455e5cf4 100644 --- a/tests/data/devices/ke-tradfri-open-close-remote-0x22010631.json +++ b/tests/data/devices/ke-tradfri-open-close-remote-0x22010631.json @@ -221,163 +221,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:96:48:04-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:96:48:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:96:48:04-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:96:48:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:96:48:04-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:96:48:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:96:48:04-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:96:48:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:96:48:04-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:96:48:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:96:48:04-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:96:48:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:96:48:04-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:96:48:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 87.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:96:48:04-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "5c:02:72:ff:fe:96:48:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 87.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.9 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:96:48:04-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:96:48:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x22010631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:96:48:04-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:96:48:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x22010631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/keen-home-inc-sv01-410-mp-1-1-0x10235121.json b/tests/data/devices/keen-home-inc-sv01-410-mp-1-1-0x10235121.json index 49768c08b..6adafee5d 100644 --- a/tests/data/devices/keen-home-inc-sv01-410-mp-1-1-0x10235121.json +++ b/tests/data/devices/keen-home-inc-sv01-410-mp-1-1-0x10235121.json @@ -271,249 +271,211 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "KeenVent", - "translation_key": "keen_vent", - "translation_placeholders": null, - "device_class": "damper", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "KeenVent", - "available": true, - "current_position": 100, - "is_closed": false, - "state": "open" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "KeenVent", + "translation_key": "keen_vent", + "translation_placeholders": null, + "device_class": "damper", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 3.1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 28.11 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 28.11, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "hPa" - }, - "state": { - "class_name": "Pressure", - "available": true, - "state": 991 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 991, + "suggested_display_precision": 0, + "unit": "hPa" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x10235121", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x10235121", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/keen-home-inc-sv02-610-mp-1-3.json b/tests/data/devices/keen-home-inc-sv02-610-mp-1-3.json index 469d131a7..91facc0e1 100644 --- a/tests/data/devices/keen-home-inc-sv02-610-mp-1-3.json +++ b/tests/data/devices/keen-home-inc-sv02-610-mp-1-3.json @@ -228,249 +228,211 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "KeenVent", - "translation_key": "keen_vent", - "translation_placeholders": null, - "device_class": "damper", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "KeenVent", - "available": true, - "current_position": 100, - "is_closed": true, - "state": "closed" - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "KeenVent", + "translation_key": "keen_vent", + "translation_placeholders": null, + "device_class": "damper", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": true, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 5.0, - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 2.3 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 2.3 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.73 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20.73, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "hPa" - }, - "state": { - "class_name": "Pressure", - "available": true, - "state": 994 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 994, + "suggested_display_precision": 0, + "unit": "hPa" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/keen-home-inc-sv02-612-mp-1-3.json b/tests/data/devices/keen-home-inc-sv02-612-mp-1-3.json index e34891672..e47052cb0 100644 --- a/tests/data/devices/keen-home-inc-sv02-612-mp-1-3.json +++ b/tests/data/devices/keen-home-inc-sv02-612-mp-1-3.json @@ -277,249 +277,211 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "KeenVent", - "translation_key": "keen_vent", - "translation_placeholders": null, - "device_class": "damper", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "KeenVent", - "available": true, - "current_position": 100, - "is_closed": true, - "state": "closed" - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "KeenVent", + "translation_key": "keen_vent", + "translation_placeholders": null, + "device_class": "damper", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": true, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 0.0, - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 1.3 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 1.3 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 16.7 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 16.7, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "hPa" - }, - "state": { - "class_name": "Pressure", - "available": true, - "state": 1004 - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1004, + "suggested_display_precision": 0, + "unit": "hPa" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/king-of-fans-inc-hbuniversalcfremote-0x0000000f.json b/tests/data/devices/king-of-fans-inc-hbuniversalcfremote-0x0000000f.json index 43ba655bb..99858baa2 100644 --- a/tests/data/devices/king-of-fans-inc-hbuniversalcfremote-0x0000000f.json +++ b/tests/data/devices/king-of-fans-inc-hbuniversalcfremote-0x0000000f.json @@ -221,256 +221,218 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "fan": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1-514", - "migrate_unique_ids": [], - "platform": "fan", - "class_name": "KofFan", - "translation_key": "fan", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "preset_modes": [ - "smart" - ], - "supported_features": 57, - "speed_count": 4, - "speed_list": [ - "off", - "low", - "medium", - "high", - "smart" - ] - }, - "state": { - "class_name": "KofFan", - "available": true, - "preset_mode": null, - "percentage": 0, - "is_on": false, - "speed": "off" - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1-514", + "migrate_unique_ids": [], + "platform": "fan", + "class_name": "KofFan", + "translation_key": "fan", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "preset_mode": null, + "percentage": 0, + "is_on": false, + "speed": "off", + "preset_modes": [ + "smart" + ], + "supported_features": 57, + "speed_count": 4, + "speed_list": [ + "off", + "low", + "medium", + "high", + "smart" + ], + "speed_range": [ + 1, + 4 + ], + "default_on_percentage": 50 } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000000f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000000f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/king-of-fans-inc-hdc52eastwindfan-0x0000000f.json b/tests/data/devices/king-of-fans-inc-hdc52eastwindfan-0x0000000f.json index a5ab82bde..382669807 100644 --- a/tests/data/devices/king-of-fans-inc-hdc52eastwindfan-0x0000000f.json +++ b/tests/data/devices/king-of-fans-inc-hdc52eastwindfan-0x0000000f.json @@ -227,256 +227,218 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "fan": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1-514", - "migrate_unique_ids": [], - "platform": "fan", - "class_name": "KofFan", - "translation_key": "fan", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "preset_modes": [ - "smart" - ], - "supported_features": 57, - "speed_count": 4, - "speed_list": [ - "off", - "low", - "medium", - "high", - "smart" - ] - }, - "state": { - "class_name": "KofFan", - "available": true, - "preset_mode": null, - "percentage": 0, - "is_on": false, - "speed": "off" - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1-514", + "migrate_unique_ids": [], + "platform": "fan", + "class_name": "KofFan", + "translation_key": "fan", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "preset_mode": null, + "percentage": 0, + "is_on": false, + "speed": "off", + "preset_modes": [ + "smart" + ], + "supported_features": 57, + "speed_count": 4, + "speed_list": [ + "off", + "low", + "medium", + "high", + "smart" + ], + "speed_range": [ + 1, + 4 + ], + "default_on_percentage": 50 } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000000f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000000f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/konke-3afe140103020000.json b/tests/data/devices/konke-3afe140103020000.json index f64e8c1fc..e363a0ca8 100644 --- a/tests/data/devices/konke-3afe140103020000.json +++ b/tests/data/devices/konke-3afe140103020000.json @@ -166,183 +166,153 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Unknown", - "battery_voltage": 4.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": null, + "battery_voltage": 4.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 23.9 - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 23.9, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 46.69 - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 46.69, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/konke-3afe220103020000.json b/tests/data/devices/konke-3afe220103020000.json index b0e4ad0cd..ae6446bd1 100644 --- a/tests/data/devices/konke-3afe220103020000.json +++ b/tests/data/devices/konke-3afe220103020000.json @@ -166,183 +166,153 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Unknown", - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 25.33 - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25.33, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 44.76 - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 44.76, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/konke-3afe270104020015.json b/tests/data/devices/konke-3afe270104020015.json index ae99b83b3..2e5f5a581 100644 --- a/tests/data/devices/konke-3afe270104020015.json +++ b/tests/data/devices/konke-3afe270104020015.json @@ -192,156 +192,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "08:6b:d7:ff:fe:e9:73:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:e9:73:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:e9:73:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:e9:73:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:e9:73:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:e9:73:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:e9:73:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "08:6b:d7:ff:fe:e9:73:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "08:6b:d7:ff:fe:e9:73:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Unknown", - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "08:6b:d7:ff:fe:e9:73:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": null, + "battery_voltage": 3.0 } ] }, diff --git a/tests/data/devices/konke-3afe280100510001.json b/tests/data/devices/konke-3afe280100510001.json index 5a9c783d6..278484ed8 100644 --- a/tests/data/devices/konke-3afe280100510001.json +++ b/tests/data/devices/konke-3afe280100510001.json @@ -167,127 +167,107 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:59:0a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:07:59:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:59:0a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:07:59:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:59:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:07:59:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:59:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:07:59:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:59:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:07:59:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:59:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:07:59:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:59:0a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:07:59:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Unknown", - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:59:0a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "14:b4:57:ff:fe:07:59:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": null, + "battery_voltage": 3.0 } ] }, diff --git a/tests/data/devices/konke-3afe28010402000d.json b/tests/data/devices/konke-3afe28010402000d.json index 067b5cb37..979b9556d 100644 --- a/tests/data/devices/konke-3afe28010402000d.json +++ b/tests/data/devices/konke-3afe28010402000d.json @@ -204,183 +204,153 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:70:fb-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:07:70:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:70:fb-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:07:70:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:70:fb-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "14:b4:57:ff:fe:07:70:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:70:fb-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:07:70:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:70:fb-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:07:70:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:70:fb-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:07:70:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:70:fb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:07:70:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:70:fb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:07:70:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:70:fb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:07:70:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:70:fb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:07:70:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:70:fb-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:07:70:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Unknown", - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:70:fb-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "14:b4:57:ff:fe:07:70:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": null, + "battery_voltage": 3.0 } ] }, diff --git a/tests/data/devices/kwikset-smartcode-convert-gen1-0x30a07a06.json b/tests/data/devices/kwikset-smartcode-convert-gen1-0x30a07a06.json index 517d9f679..2c4f2559a 100644 --- a/tests/data/devices/kwikset-smartcode-convert-gen1-0x30a07a06.json +++ b/tests/data/devices/kwikset-smartcode-convert-gen1-0x30a07a06.json @@ -258,219 +258,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "lock": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-257", - "migrate_unique_ids": [], - "platform": "lock", - "class_name": "DoorLock", - "translation_key": "door_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "DoorLock", - "available": true, - "is_locked": true - } + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-257", + "migrate_unique_ids": [], + "platform": "lock", + "class_name": "DoorLock", + "translation_key": "door_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_locked": true } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 6.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 6.2 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 25.0 - } + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 25.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x30a07a06", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": "0x30a07a06", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lds-zb-onoffplug-d0005-0x21186230.json b/tests/data/devices/lds-zb-onoffplug-d0005-0x21186230.json index d8d945965..a47ec7269 100644 --- a/tests/data/devices/lds-zb-onoffplug-d0005-0x21186230.json +++ b/tests/data/devices/lds-zb-onoffplug-d0005-0x21186230.json @@ -388,324 +388,277 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": null - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 3.0, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3.0, + "suggested_display_precision": 3, + "unit": null, + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 67.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 67.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x21186230", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x21186230", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lds-zbt-cctswitch-d0001-0x21000006.json b/tests/data/devices/lds-zbt-cctswitch-d0001-0x21000006.json index 37e71fdcf..f9c0a198e 100644 --- a/tests/data/devices/lds-zbt-cctswitch-d0001-0x21000006.json +++ b/tests/data/devices/lds-zbt-cctswitch-d0001-0x21000006.json @@ -201,163 +201,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:81:56:33-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:81:56:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:81:56:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:81:56:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:81:56:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:81:56:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:81:56:33-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:81:56:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 89.0, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 89.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:81:56:33-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:81:56:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x21000006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x21000006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ledvance-a60s-rgbw-0x02146550.json b/tests/data/devices/ledvance-a60s-rgbw-0x02146550.json index 459520f37..8bf1c2378 100644 --- a/tests/data/devices/ledvance-a60s-rgbw-0x02146550.json +++ b/tests/data/devices/ledvance-a60s-rgbw-0x02146550.json @@ -680,282 +680,233 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 370 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.03660639353017472, - 0.03675898374914168 - ], - "color_temp": 153, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.03660639353017472, + 0.03675898374914168 + ], + "color_temp": 153, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 370 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 370, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 153 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 153, + "mode": "auto", + "native_max_value": 370, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02146550", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x02146550", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ledvance-flex-rgbw-0x00102428.json b/tests/data/devices/ledvance-flex-rgbw-0x00102428.json index a6784318a..041c2f9c3 100644 --- a/tests/data/devices/ledvance-flex-rgbw-0x00102428.json +++ b/tests/data/devices/ledvance-flex-rgbw-0x00102428.json @@ -323,342 +323,284 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 145, - "max_mireds": 606 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.38054474708171204, - 0.3769130998702983 - ], - "color_temp": 370, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.38054474708171204, + 0.3769130998702983 + ], + "color_temp": 370, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 145, + "max_mireds": 606 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "DefaultMoveRateConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00102428", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00102428", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ledvance-outdoor-accent-light-rgb-0x00102428.json b/tests/data/devices/ledvance-outdoor-accent-light-rgb-0x00102428.json index a6d597859..71c1b1c18 100644 --- a/tests/data/devices/ledvance-outdoor-accent-light-rgb-0x00102428.json +++ b/tests/data/devices/ledvance-outdoor-accent-light-rgb-0x00102428.json @@ -299,342 +299,284 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 1901, - "max_mireds": 6535 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 202, - "xy_color": [ - 0.16398870832379644, - 0.13199053940642405 - ], - "color_temp": 1901, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 202, + "xy_color": [ + 0.16398870832379644, + 0.13199053940642405 + ], + "color_temp": 1901, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 1901, + "max_mireds": 6535 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "DefaultMoveRateConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00102428", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00102428", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ledvance-plug-0x00102101.json b/tests/data/devices/ledvance-plug-0x00102101.json index 87417abf4..f7630940c 100644 --- a/tests/data/devices/ledvance-plug-0x00102101.json +++ b/tests/data/devices/ledvance-plug-0x00102101.json @@ -183,155 +183,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:05:49:22-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:05:49:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:05:49:22-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:05:49:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:05:49:22-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:05:49:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:05:49:22-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:05:49:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:05:49:22-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:05:49:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:05:49:22-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:05:49:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:05:49:22-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "f0:d1:b8:00:00:05:49:22", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:05:49:22-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:05:49:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:05:49:22-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f0:d1:b8:00:00:05:49:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00102101", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:05:49:22-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f0:d1:b8:00:00:05:49:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00102101", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/legrand-contactor.json b/tests/data/devices/legrand-contactor.json index 76377372d..2085a5e49 100644 --- a/tests/data/devices/legrand-contactor.json +++ b/tests/data/devices/legrand-contactor.json @@ -523,377 +523,321 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json b/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json index bbc29ba55..d9b3f3a20 100644 --- a/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json +++ b/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json @@ -333,459 +333,381 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 76, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 76, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "DefaultMoveRateConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 76 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 76, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 56 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 56, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Toggle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Toggle", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 57 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 57, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x004d45ff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x004d45ff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/legrand-double-gangs-remote-switch.json b/tests/data/devices/legrand-double-gangs-remote-switch.json index 8688f9caa..8f2b5d0e9 100644 --- a/tests/data/devices/legrand-double-gangs-remote-switch.json +++ b/tests/data/devices/legrand-double-gangs-remote-switch.json @@ -259,190 +259,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:14:95:c6-2-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:14:95:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-2-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:14:95:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:14:95:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:14:95:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:14:95:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:14:95:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json b/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json index 4a90c7089..5bb4aafaf 100644 --- a/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json +++ b/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json @@ -233,309 +233,256 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 220 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 220, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -67 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -67, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": "Turn on LED when off", - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_dark", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "turn_on_led_when_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "led_dark", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Turn on LED when off", + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_dark", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "turn_on_led_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "led_dark", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Turn on LED when on", - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_on", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "turn_on_led_when_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "led_on", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Turn on LED when on", + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_on", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "turn_on_led_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "led_on", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x001c4203", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x001c4203", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/legrand-light-switch-with-neutral.json b/tests/data/devices/legrand-light-switch-with-neutral.json index 8e2c9808c..65b68b2d2 100644 --- a/tests/data/devices/legrand-light-switch-with-neutral.json +++ b/tests/data/devices/legrand-light-switch-with-neutral.json @@ -304,309 +304,256 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 212 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 212, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -58 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -58, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": "Turn on LED when off", - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_dark", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "turn_on_led_when_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "led_dark", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Turn on LED when off", + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_dark", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "turn_on_led_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "led_dark", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Turn on LED when on", - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_on", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "turn_on_led_when_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "led_on", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Turn on LED when on", + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_on", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "turn_on_led_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "led_on", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/legrand-mobile-outlet-0x006545ff.json b/tests/data/devices/legrand-mobile-outlet-0x006545ff.json index b44c140e7..965615bc1 100644 --- a/tests/data/devices/legrand-mobile-outlet-0x006545ff.json +++ b/tests/data/devices/legrand-mobile-outlet-0x006545ff.json @@ -615,377 +615,321 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 224 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 224, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -55 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -55, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 13.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 13.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 19.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 19.0, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x006545ff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x006545ff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/level-home-b2-0x0300001a.json b/tests/data/devices/level-home-b2-0x0300001a.json index 6e1853779..6dfc5dcaf 100644 --- a/tests/data/devices/level-home-b2-0x0300001a.json +++ b/tests/data/devices/level-home-b2-0x0300001a.json @@ -353,191 +353,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:13:82:67:19:59-10-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:13:82:67:19:59", - "endpoint_id": 10, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "f4:ce:36:13:82:67:19:59-10-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:13:82:67:19:59", + "endpoint_id": 10, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "lock": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:13:82:67:19:59-10-257", - "migrate_unique_ids": [], - "platform": "lock", - "class_name": "DoorLock", - "translation_key": "door_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "f4:ce:36:13:82:67:19:59", - "endpoint_id": 10, - "available": true, - "group_id": null - }, - "state": { - "class_name": "DoorLock", - "available": true, - "is_locked": false - } + "fallback_name": null, + "unique_id": "f4:ce:36:13:82:67:19:59-10-257", + "migrate_unique_ids": [], + "platform": "lock", + "class_name": "DoorLock", + "translation_key": "door_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:13:82:67:19:59", + "endpoint_id": 10, + "available": true, + "group_id": null, + "is_locked": false } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:13:82:67:19:59-10-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:13:82:67:19:59", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 50.0, - "battery_size": "CR2", - "battery_quantity": 1, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "f4:ce:36:13:82:67:19:59-10-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "f4:ce:36:13:82:67:19:59", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 50.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2", + "battery_quantity": 1, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:13:82:67:19:59-5-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:13:82:67:19:59", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:13:82:67:19:59-5-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:13:82:67:19:59", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:13:82:67:19:59-5-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:13:82:67:19:59", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:13:82:67:19:59-5-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:13:82:67:19:59", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:13:82:67:19:59-5-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:13:82:67:19:59", - "endpoint_id": 5, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0300001a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:13:82:67:19:59-5-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:13:82:67:19:59", + "endpoint_id": 5, + "available": true, + "group_id": null, + "installed_version": "0x0300001a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/level-home-bolt-0x03020006.json b/tests/data/devices/level-home-bolt-0x03020006.json index 39f0e49a4..4abfd8387 100644 --- a/tests/data/devices/level-home-bolt-0x03020006.json +++ b/tests/data/devices/level-home-bolt-0x03020006.json @@ -196,191 +196,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:b9:50:7a:86:d6-10-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:b9:50:7a:86:d6", - "endpoint_id": 10, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "f4:ce:36:b9:50:7a:86:d6-10-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:b9:50:7a:86:d6", + "endpoint_id": 10, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "lock": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:b9:50:7a:86:d6-10-257", - "migrate_unique_ids": [], - "platform": "lock", - "class_name": "DoorLock", - "translation_key": "door_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "f4:ce:36:b9:50:7a:86:d6", - "endpoint_id": 10, - "available": true, - "group_id": null - }, - "state": { - "class_name": "DoorLock", - "available": true, - "is_locked": true - } + "fallback_name": null, + "unique_id": "f4:ce:36:b9:50:7a:86:d6-10-257", + "migrate_unique_ids": [], + "platform": "lock", + "class_name": "DoorLock", + "translation_key": "door_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:b9:50:7a:86:d6", + "endpoint_id": 10, + "available": true, + "group_id": null, + "is_locked": true } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:b9:50:7a:86:d6-10-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:b9:50:7a:86:d6", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "CR2", - "battery_quantity": 1, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "f4:ce:36:b9:50:7a:86:d6-10-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "f4:ce:36:b9:50:7a:86:d6", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2", + "battery_quantity": 1, + "battery_voltage": 2.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:b9:50:7a:86:d6-5-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:b9:50:7a:86:d6", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:b9:50:7a:86:d6-5-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:b9:50:7a:86:d6", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:b9:50:7a:86:d6-5-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:b9:50:7a:86:d6", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:b9:50:7a:86:d6-5-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:b9:50:7a:86:d6", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "f4:ce:36:b9:50:7a:86:d6-5-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "f4:ce:36:b9:50:7a:86:d6", - "endpoint_id": 5, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x03020006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "f4:ce:36:b9:50:7a:86:d6-5-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "f4:ce:36:b9:50:7a:86:d6", + "endpoint_id": 5, + "available": true, + "group_id": null, + "installed_version": "0x03020006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lixee-zlinky-tic-0x00000011.json b/tests/data/devices/lixee-zlinky-tic-0x00000011.json index 89bc97771..98b499f8f 100644 --- a/tests/data/devices/lixee-zlinky-tic-0x00000011.json +++ b/tests/data/devices/lixee-zlinky-tic-0x00000011.json @@ -899,714 +899,606 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 32 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 32, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 42837.076, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 42837.076, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier1_summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Tier1SmartEnergySummation", - "translation_key": "tier1_summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "Tier1SmartEnergySummation", - "available": true, - "state": 19043.24, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier1_summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Tier1SmartEnergySummation", + "translation_key": "tier1_summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 19043.24, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier2_summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Tier2SmartEnergySummation", - "translation_key": "tier2_summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "Tier2SmartEnergySummation", - "available": true, - "state": 23793.836, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier2_summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Tier2SmartEnergySummation", + "translation_key": "tier2_summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 23793.836, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier3_summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Tier3SmartEnergySummation", - "translation_key": "tier3_summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "Tier3SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier3_summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Tier3SmartEnergySummation", + "translation_key": "tier3_summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier4_summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Tier4SmartEnergySummation", - "translation_key": "tier4_summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "Tier4SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier4_summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Tier4SmartEnergySummation", + "translation_key": "tier4_summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier5_summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Tier5SmartEnergySummation", - "translation_key": "tier5_summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "Tier5SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier5_summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Tier5SmartEnergySummation", + "translation_key": "tier5_summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier6_summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Tier6SmartEnergySummation", - "translation_key": "tier6_summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "Tier6SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier6_summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Tier6SmartEnergySummation", + "translation_key": "tier6_summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 257.0, - "measurement_type": "", - "active_power_max": 4160.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 257.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "", + "max_value": 4160.0, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-active_power_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhB", - "translation_key": "active_power_ph_b", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePowerPhB", - "available": true, - "state": 13.0, - "measurement_type": "", - "active_power_max_ph_b": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-active_power_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhB", + "translation_key": "active_power_ph_b", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max_ph_b", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 13.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "", + "max_value": 0.0, + "max_attribute_name": "active_power_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 0.0, - "measurement_type": "" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 6.0, - "measurement_type": "", - "rms_current_max": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 6.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "", + "max_value": 0.0, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_current_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "translation_key": "rms_current_ph_b", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "available": true, - "state": 0.0, - "measurement_type": "", - "rms_current_max_ph_b": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_current_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "translation_key": "rms_current_ph_b", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max_ph_b" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "", + "max_value": 0.0, + "max_attribute_name": "rms_current_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_current_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "translation_key": "rms_current_ph_c", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "available": true, - "state": 0.0, - "measurement_type": "", - "rms_current_max_ph_c": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_current_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "translation_key": "rms_current_ph_c", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max_ph_c" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "", + "max_value": 0.0, + "max_attribute_name": "rms_current_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 241.0, - "measurement_type": "" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 241.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "", + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_voltage_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "translation_key": "rms_voltage_ph_b", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "available": true, - "state": 0.0, - "measurement_type": "" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_voltage_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "translation_key": "rms_voltage_ph_b", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max_ph_b" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "", + "max_value": null, + "max_attribute_name": "rms_voltage_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_voltage_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "translation_key": "rms_voltage_ph_c", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "available": true, - "state": 0.0, - "measurement_type": "" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_voltage_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "translation_key": "rms_voltage_ph_c", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max_ph_c" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "", + "max_value": null, + "max_attribute_name": "rms_voltage_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 4160.0, - "measurement_type": "", - "active_power_max": 4160.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4160.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "", + "max_value": 4160.0, + "max_attribute_name": "active_power_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000011", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000011", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lk-zb-doorsensor-d0003.json b/tests/data/devices/lk-zb-doorsensor-d0003.json index ce0af3c86..003ae9bb4 100644 --- a/tests/data/devices/lk-zb-doorsensor-d0003.json +++ b/tests/data/devices/lk-zb-doorsensor-d0003.json @@ -204,192 +204,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "84:2e:14:ff:fe:44:9e:71-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "84:2e:14:ff:fe:44:9e:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "84:2e:14:ff:fe:44:9e:71-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "84:2e:14:ff:fe:44:9e:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "84:2e:14:ff:fe:44:9e:71-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "84:2e:14:ff:fe:44:9e:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "84:2e:14:ff:fe:44:9e:71-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "84:2e:14:ff:fe:44:9e:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "84:2e:14:ff:fe:44:9e:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "84:2e:14:ff:fe:44:9e:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "84:2e:14:ff:fe:44:9e:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "84:2e:14:ff:fe:44:9e:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "84:2e:14:ff:fe:44:9e:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "84:2e:14:ff:fe:44:9e:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "84:2e:14:ff:fe:44:9e:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "84:2e:14:ff:fe:44:9e:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "84:2e:14:ff:fe:44:9e:71-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "84:2e:14:ff:fe:44:9e:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 18.0, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "84:2e:14:ff:fe:44:9e:71-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "84:2e:14:ff:fe:44:9e:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 18.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.4 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "84:2e:14:ff:fe:44:9e:71-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "84:2e:14:ff:fe:44:9e:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "84:2e:14:ff:fe:44:9e:71-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "84:2e:14:ff:fe:44:9e:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lk-zbt-dimswitch-d0001-0x22166500.json b/tests/data/devices/lk-zbt-dimswitch-d0001-0x22166500.json index 0dc8604ca..be55e3e66 100644 --- a/tests/data/devices/lk-zbt-dimswitch-d0001-0x22166500.json +++ b/tests/data/devices/lk-zbt-dimswitch-d0001-0x22166500.json @@ -201,163 +201,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 37.0, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 37.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.5 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x22166500", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x22166500", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lk-zbt-onoffplug-d0001-0x22036610.json b/tests/data/devices/lk-zbt-onoffplug-d0001-0x22036610.json index e67c691a6..d1abcb0b3 100644 --- a/tests/data/devices/lk-zbt-onoffplug-d0001-0x22036610.json +++ b/tests/data/devices/lk-zbt-onoffplug-d0001-0x22036610.json @@ -249,285 +249,240 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x22036610", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x22036610", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-airmonitor-acn01.json b/tests/data/devices/lumi-lumi-airmonitor-acn01.json index d1cb0caef..9b07114fd 100644 --- a/tests/data/devices/lumi-lumi-airmonitor-acn01.json +++ b/tests/data/devices/lumi-lumi-airmonitor-acn01.json @@ -202,247 +202,206 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.04 - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.04, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 41.46 - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 41.46, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PPBVOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds_parts", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppb" - }, - "state": { - "class_name": "PPBVOCLevel", - "available": true, - "state": 42 - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PPBVOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds_parts", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 42, + "suggested_display_precision": 0, + "unit": "ppb" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-airrtc-agl001-0x0000001e.json b/tests/data/devices/lumi-lumi-airrtc-agl001-0x0000001e.json index b56583389..78a18b522 100644 --- a/tests/data/devices/lumi-lumi-airrtc-agl001-0x0000001e.json +++ b/tests/data/devices/lumi-lumi-airrtc-agl001-0x0000001e.json @@ -380,584 +380,484 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-calibrated", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "AqaraThermostatCalibrated", - "translation_key": "calibrated", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "calibrated" - }, - "state": { - "class_name": "AqaraThermostatCalibrated", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-calibrated", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "AqaraThermostatCalibrated", + "translation_key": "calibrated", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "calibrated" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-sensor", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "AqaraThermostatExternalSensor", - "translation_key": "external_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "sensor" - }, - "state": { - "class_name": "AqaraThermostatExternalSensor", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-sensor", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "AqaraThermostatExternalSensor", + "translation_key": "external_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "sensor" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-valve_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "AqaraThermostatValveAlarm", - "translation_key": "valve_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "valve_alarm" - }, - "state": { - "class_name": "AqaraThermostatValveAlarm", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-valve_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "AqaraThermostatValveAlarm", + "translation_key": "valve_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "valve_alarm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-window_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "AqaraThermostatWindowOpen", - "translation_key": null, - "translation_placeholders": null, - "device_class": "window", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_open" - }, - "state": { - "class_name": "AqaraThermostatWindowOpen", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-window_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "AqaraThermostatWindowOpen", + "translation_key": null, + "translation_placeholders": null, + "device_class": "window", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "window_open" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 20.9, - "outdoor_temperature": null, - "target_temperature": 23.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": 2600, - "occupied_heating_setpoint": 2300, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 20.9, + "outdoor_temperature": null, + "target_temperature": 23.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": 2600, + "occupied_heating_setpoint": 2300, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-away_preset_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AqaraThermostatAwayTemp", - "translation_key": "away_preset_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "slider", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1.0, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AqaraThermostatAwayTemp", - "available": true, - "state": 15.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-away_preset_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AqaraThermostatAwayTemp", + "translation_key": "away_preset_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 15.0, + "mode": "slider", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1.0, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-preset", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraThermostatPreset", - "translation_key": "preset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "AqaraThermostatPresetMode", - "options": [ - "Manual", - "Auto", - "Away" - ] - }, - "state": { - "class_name": "AqaraThermostatPreset", - "available": true, - "state": "Manual" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-preset", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraThermostatPreset", + "translation_key": "preset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Manual", + "enum": "AqaraThermostatPresetMode", + "options": [ + "Manual", + "Auto", + "Away" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 140 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 140, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -65 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -65, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "CR2032", - "battery_quantity": 1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraThermostatChildLock", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "AqaraThermostatChildLock", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraThermostatChildLock", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-valve_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraThermostatValveDetection", - "translation_key": "valve_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "valve_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "AqaraThermostatValveDetection", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-valve_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraThermostatValveDetection", + "translation_key": "valve_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "valve_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraThermostatWindowDetection", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "AqaraThermostatWindowDetection", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraThermostatWindowDetection", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-ctrl-neutral2.json b/tests/data/devices/lumi-lumi-ctrl-neutral2.json index 0aa494542..a723f1a11 100644 --- a/tests/data/devices/lumi-lumi-ctrl-neutral2.json +++ b/tests/data/devices/lumi-lumi-ctrl-neutral2.json @@ -326,261 +326,216 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 23.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 23.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 4, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-5-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 5, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-5-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 5, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-curtain-acn002-0x00000e1f.json b/tests/data/devices/lumi-lumi-curtain-acn002-0x00000e1f.json index 7f995e71d..ebe94eaa1 100644 --- a/tests/data/devices/lumi-lumi-curtain-acn002-0x00000e1f.json +++ b/tests/data/devices/lumi-lumi-curtain-acn002-0x00000e1f.json @@ -388,376 +388,315 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Charging", - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-charging", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery_charging", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "charging" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Charging", + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-charging", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery_charging", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "charging" }, { - "info_object": { - "fallback_name": "Calibrated", - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-positions_stored", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "calibrated", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "positions_stored" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": true - } + "fallback_name": "Calibrated", + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-positions_stored", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "calibrated", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "positions_stored" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 } ], "select": [ { - "info_object": { - "fallback_name": "Speed", - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-speed", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "speed", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "AqaraRollerDriverSpeed", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "High" - } + "fallback_name": "Speed", + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-speed", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "speed", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "High", + "enum": "AqaraRollerDriverSpeed", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 79.0, - "battery_size": "Unknown", - "battery_quantity": 1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 79.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 24.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 24.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000e1f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000e1f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-curtain-acn002-0x00000f20.json b/tests/data/devices/lumi-lumi-curtain-acn002-0x00000f20.json index 927a26b66..611452f15 100644 --- a/tests/data/devices/lumi-lumi-curtain-acn002-0x00000f20.json +++ b/tests/data/devices/lumi-lumi-curtain-acn002-0x00000f20.json @@ -377,376 +377,315 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Charging", - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-charging", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery_charging", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "charging" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Charging", + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-charging", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery_charging", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "charging" }, { - "info_object": { - "fallback_name": "Calibrated", - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-positions_stored", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "calibrated", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "positions_stored" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": true - } + "fallback_name": "Calibrated", + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-positions_stored", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "calibrated", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "positions_stored" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "select": [ { - "info_object": { - "fallback_name": "Speed", - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-speed", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "speed", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "AqaraRollerDriverSpeed", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "High" - } + "fallback_name": "Speed", + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-speed", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "speed", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "High", + "enum": "AqaraRollerDriverSpeed", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Unknown", - "battery_quantity": 1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 0.3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.3, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000f20", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000f20", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-curtain-acn003.json b/tests/data/devices/lumi-lumi-curtain-acn003.json index 83a9fba42..4d4cabc8b 100644 --- a/tests/data/devices/lumi-lumi-curtain-acn003.json +++ b/tests/data/devices/lumi-lumi-curtain-acn003.json @@ -189,252 +189,211 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "CR2032", - "battery_quantity": 1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 100 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-curtain-agl001-0x00000018.json b/tests/data/devices/lumi-lumi-curtain-agl001-0x00000018.json index 5af8f6ff3..c2d5c8343 100644 --- a/tests/data/devices/lumi-lumi-curtain-agl001-0x00000018.json +++ b/tests/data/devices/lumi-lumi-curtain-agl001-0x00000018.json @@ -312,404 +312,337 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-64704-hand_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "AqaraE1CurtainMotorOpenedByHandBinarySensor", - "translation_key": "hand_open", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "hand_open" - }, - "state": { - "class_name": "AqaraE1CurtainMotorOpenedByHandBinarySensor", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-64704-hand_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "AqaraE1CurtainMotorOpenedByHandBinarySensor", + "translation_key": "hand_open", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "hand_open" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "curtain", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 2, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "curtain", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 2, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-0-power_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AqaraCurtainMotorPowerSourceSensor", - "translation_key": "power_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "AqaraCurtainMotorPowerSourceSensor", - "available": true, - "state": "Battery" - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-0-power_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AqaraCurtainMotorPowerSourceSensor", + "translation_key": "power_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Battery", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 57.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 57.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Drapery" - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Drapery", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-64704-hooks_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AqaraCurtainHookStateSensor", - "translation_key": "hooks_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "AqaraCurtainHookStateSensor", - "available": true, - "state": "Locked" - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-64704-hooks_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AqaraCurtainHookStateSensor", + "translation_key": "hooks_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Locked", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-64704-hooks_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraE1CurtainMotorHooksLockedSwitch", - "translation_key": "hooks_locked", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "hooks_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "AqaraE1CurtainMotorHooksLockedSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-64704-hooks_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraE1CurtainMotorHooksLockedSwitch", + "translation_key": "hooks_locked", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "hooks_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000018", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000018", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-curtain-hagl04.json b/tests/data/devices/lumi-lumi-curtain-hagl04.json index 9bb233268..8b988e9ff 100644 --- a/tests/data/devices/lumi-lumi-curtain-hagl04.json +++ b/tests/data/devices/lumi-lumi-curtain-hagl04.json @@ -263,221 +263,185 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "curtain", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": null, - "current_tilt_position": null, - "state": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "curtain", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": null, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0, - "native_step": null, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 1.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.0, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0, + "native_step": null, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Drapery" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Drapery", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ] }, diff --git a/tests/data/devices/lumi-lumi-flood-acn001-0x00000004.json b/tests/data/devices/lumi-lumi-flood-acn001-0x00000004.json index 9f0710cf2..568ec7ca0 100644 --- a/tests/data/devices/lumi-lumi-flood-acn001-0x00000004.json +++ b/tests/data/devices/lumi-lumi-flood-acn001-0x00000004.json @@ -205,192 +205,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:22:14:df-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "54:ef:44:10:00:22:14:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:22:14:df-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:22:14:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:22:14:df-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:22:14:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:22:14:df-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:22:14:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:22:14:df-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:22:14:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:22:14:df-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:22:14:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:22:14:df-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:22:14:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:22:14:df-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:22:14:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:22:14:df-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:22:14:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 50.5, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.96 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "54:ef:44:10:00:22:14:df-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "54:ef:44:10:00:22:14:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 50.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.96 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:22:14:df-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:22:14:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000004", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:22:14:df-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:22:14:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000004", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-flood-agl02-0x00000020.json b/tests/data/devices/lumi-lumi-flood-agl02-0x00000020.json index e6480ed92..7d40cec93 100644 --- a/tests/data/devices/lumi-lumi-flood-agl02-0x00000020.json +++ b/tests/data/devices/lumi-lumi-flood-agl02-0x00000020.json @@ -192,192 +192,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:aa:c8:25-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "54:ef:44:10:00:aa:c8:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:aa:c8:25-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:aa:c8:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:aa:c8:25-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:aa:c8:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:aa:c8:25-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:aa:c8:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:aa:c8:25-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:aa:c8:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:aa:c8:25-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:aa:c8:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:aa:c8:25-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:aa:c8:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:aa:c8:25-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:aa:c8:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:aa:c8:25-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:aa:c8:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 80.5, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "54:ef:44:10:00:aa:c8:25-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "54:ef:44:10:00:aa:c8:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 80.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:aa:c8:25-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:aa:c8:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000020", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:aa:c8:25-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:aa:c8:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000020", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-light-aqcn02-0x00000017.json b/tests/data/devices/lumi-lumi-light-aqcn02-0x00000017.json index 15cebc3e3..d1220c69f 100644 --- a/tests/data/devices/lumi-lumi-light-aqcn02-0x00000017.json +++ b/tests/data/devices/lumi-lumi-light-aqcn02-0x00000017.json @@ -330,214 +330,176 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:16:bb:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:16:bb:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:16:bb:90-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d2:16:bb:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 370 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 178, - "xy_color": null, - "color_temp": 190, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:16:bb:90-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:16:bb:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 178, + "xy_color": null, + "color_temp": 190, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 370 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:16:bb:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 150 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:16:bb:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 150, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:16:bb:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:16:bb:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:16:bb:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:16:bb:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:16:bb:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000017", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:16:bb:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000017", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-magnet-ac01.json b/tests/data/devices/lumi-lumi-magnet-ac01.json index 568afa736..a0b8115bf 100644 --- a/tests/data/devices/lumi-lumi-magnet-ac01.json +++ b/tests/data/devices/lumi-lumi-magnet-ac01.json @@ -164,226 +164,190 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-64704-detection_distance", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraMagnetAC01DetectionDistance", - "translation_key": "detection_distance", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "DetectionDistance", - "options": [ - "TenMillimeters", - "TwentyMillimeters", - "ThirtyMillimeters" - ] - }, - "state": { - "class_name": "AqaraMagnetAC01DetectionDistance", - "available": true, - "state": "TwentyMillimeters" - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-64704-detection_distance", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraMagnetAC01DetectionDistance", + "translation_key": "detection_distance", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "TwentyMillimeters", + "enum": "DetectionDistance", + "options": [ + "TenMillimeters", + "TwentyMillimeters", + "ThirtyMillimeters" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 69.5, - "battery_size": "CR123A", - "battery_quantity": 1, - "battery_voltage": 1.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 69.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR123A", + "battery_quantity": 1, + "battery_voltage": 1.9 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-magnet-acn001-0x00000004.json b/tests/data/devices/lumi-lumi-magnet-acn001-0x00000004.json index 2994845c8..0bcd2670c 100644 --- a/tests/data/devices/lumi-lumi-magnet-acn001-0x00000004.json +++ b/tests/data/devices/lumi-lumi-magnet-acn001-0x00000004.json @@ -205,192 +205,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:25:87:7e-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "54:ef:44:10:00:25:87:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:25:87:7e-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:25:87:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:25:87:7e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:25:87:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:25:87:7e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:25:87:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:25:87:7e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:25:87:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:25:87:7e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:25:87:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:25:87:7e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:25:87:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:25:87:7e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:25:87:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:25:87:7e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:25:87:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 51.0, - "battery_size": "CR1632", - "battery_quantity": 1, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "54:ef:44:10:00:25:87:7e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "54:ef:44:10:00:25:87:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 51.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR1632", + "battery_quantity": 1, + "battery_voltage": 2.9 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:25:87:7e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:25:87:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000004", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:25:87:7e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:25:87:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000004", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-magnet-agl02-0x0000001e.json b/tests/data/devices/lumi-lumi-magnet-agl02-0x0000001e.json index f93e735fc..013781510 100644 --- a/tests/data/devices/lumi-lumi-magnet-agl02-0x0000001e.json +++ b/tests/data/devices/lumi-lumi-magnet-agl02-0x0000001e.json @@ -145,191 +145,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:70:f0:26-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:52:70:f0:26", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:70:f0:26-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:70:f0:26", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:70:f0:26-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:70:f0:26", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:70:f0:26-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:70:f0:26", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -35 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -35, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:70:f0:26-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:70:f0:26", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "CR1632", - "battery_quantity": 1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR1632", + "battery_quantity": 1, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:70:f0:26-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:70:f0:26", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-motion-ac02.json b/tests/data/devices/lumi-lumi-motion-ac02.json index 5f065252c..f04fab50d 100644 --- a/tests/data/devices/lumi-lumi-motion-ac02.json +++ b/tests/data/devices/lumi-lumi-motion-ac02.json @@ -231,348 +231,292 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-64704-detection_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AqaraMotionDetectionInterval", - "translation_key": "detection_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 2, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "AqaraMotionDetectionInterval", - "available": true, - "state": 30 - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-64704-detection_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AqaraMotionDetectionInterval", + "translation_key": "detection_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-64704-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraMotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "AqaraMotionSensitivities", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "AqaraMotionSensitivity", - "available": true, - "state": "High" - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-64704-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraMotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "High", + "enum": "AqaraMotionSensitivities", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 75.5, - "battery_size": "CR1632", - "battery_quantity": 1, - "battery_voltage": 3.03 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 75.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR1632", + "battery_quantity": 1, + "battery_voltage": 3.03 }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 24 - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 24, + "suggested_display_precision": null, + "unit": "lx" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-64704-trigger_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "P1MotionTriggerIndicatorSwitch", - "translation_key": "trigger_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "trigger_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "P1MotionTriggerIndicatorSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-64704-trigger_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "P1MotionTriggerIndicatorSwitch", + "translation_key": "trigger_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "trigger_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-motion-agl02.json b/tests/data/devices/lumi-lumi-motion-agl02.json index dee9d9740..52c89c321 100644 --- a/tests/data/devices/lumi-lumi-motion-agl02.json +++ b/tests/data/devices/lumi-lumi-motion-agl02.json @@ -212,247 +212,206 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 52.0, - "battery_size": "CR1632", - "battery_quantity": 1, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 52.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR1632", + "battery_quantity": 1, + "battery_voltage": 2.9 }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 4 - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4, + "suggested_display_precision": null, + "unit": "lx" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-motion-agl04-0x00000019.json b/tests/data/devices/lumi-lumi-motion-agl04-0x00000019.json index 331a95bcf..f5b7368a4 100644 --- a/tests/data/devices/lumi-lumi-motion-agl04-0x00000019.json +++ b/tests/data/devices/lumi-lumi-motion-agl04-0x00000019.json @@ -214,314 +214,263 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-64704-detection_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AqaraMotionDetectionInterval", - "translation_key": "detection_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 2, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "AqaraMotionDetectionInterval", - "available": true, - "state": 10 - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-64704-detection_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AqaraMotionDetectionInterval", + "translation_key": "detection_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-64704-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraMotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "AqaraMotionSensitivities", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "AqaraMotionSensitivity", - "available": true, - "state": "High" - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-64704-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraMotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "High", + "enum": "AqaraMotionSensitivities", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "CR1632", - "battery_quantity": 1, - "battery_voltage": 3.13 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR1632", + "battery_quantity": 1, + "battery_voltage": 3.13 }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 25.0 - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000019", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000019", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-plug-maeu01-0x0000002d.json b/tests/data/devices/lumi-lumi-plug-maeu01-0x0000002d.json index 138268826..45e371685 100644 --- a/tests/data/devices/lumi-lumi-plug-maeu01-0x0000002d.json +++ b/tests/data/devices/lumi-lumi-plug-maeu01-0x0000002d.json @@ -687,343 +687,292 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-64704-consumer_connected", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "XiaomiPlugConsumerConnected", - "translation_key": "consumer_connected", - "translation_placeholders": null, - "device_class": "plug", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "consumer_connected" - }, - "state": { - "class_name": "XiaomiPlugConsumerConnected", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-64704-consumer_connected", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "XiaomiPlugConsumerConnected", + "translation_key": "consumer_connected", + "translation_placeholders": null, + "device_class": "plug", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "consumer_connected" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 164 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 164, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -70 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -70, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 36.079, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 36.079, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 18.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 18.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 230.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 230.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-power_outage_memory", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "XiaomiPlugPowerOutageMemorySwitch", - "translation_key": "power_outage_memory", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "power_outage_memory", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "XiaomiPlugPowerOutageMemorySwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-power_outage_memory", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "XiaomiPlugPowerOutageMemorySwitch", + "translation_key": "power_outage_memory", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "power_outage_memory", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000002d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000002d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-plug-maeu01.json b/tests/data/devices/lumi-lumi-plug-maeu01.json index 2ddca4d8d..0b15f610f 100644 --- a/tests/data/devices/lumi-lumi-plug-maeu01.json +++ b/tests/data/devices/lumi-lumi-plug-maeu01.json @@ -386,380 +386,328 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": null, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 0.29 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.29, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-plug-maus01-0x0000000b.json b/tests/data/devices/lumi-lumi-plug-maus01-0x0000000b.json index 93ee8cdf8..ad7e50553 100644 --- a/tests/data/devices/lumi-lumi-plug-maus01-0x0000000b.json +++ b/tests/data/devices/lumi-lumi-plug-maus01-0x0000000b.json @@ -491,473 +491,410 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-100-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 100, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-100-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 100, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": null, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 5.027, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.027, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 41.0 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 41.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.9, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 502.7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 502.7, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000000b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000000b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-relay-c2acn01-0x00000024.json b/tests/data/devices/lumi-lumi-relay-c2acn01-0x00000024.json index 57b4c1848..3d58bf160 100644 --- a/tests/data/devices/lumi-lumi-relay-c2acn01-0x00000024.json +++ b/tests/data/devices/lumi-lumi-relay-c2acn01-0x00000024.json @@ -403,454 +403,381 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": null, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.096, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.096, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 40.0 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 40.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 9.6 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 9.6, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000024", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000024", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-remote-b286opcn01.json b/tests/data/devices/lumi-lumi-remote-b286opcn01.json index 7bf98d9d6..8c9b1c974 100644 --- a/tests/data/devices/lumi-lumi-remote-b286opcn01.json +++ b/tests/data/devices/lumi-lumi-remote-b286opcn01.json @@ -391,128 +391,107 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:67-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:c1:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:67-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:c1:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:67-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:c1:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:67-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:c1:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.8 } ] }, diff --git a/tests/data/devices/lumi-lumi-remote-b28ac1.json b/tests/data/devices/lumi-lumi-remote-b28ac1.json index 045c47ff5..6982cb66e 100644 --- a/tests/data/devices/lumi-lumi-remote-b28ac1.json +++ b/tests/data/devices/lumi-lumi-remote-b28ac1.json @@ -238,192 +238,161 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": "Click mode", - "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-click_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "click_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "AqaraSwitchClickMode", - "options": [ - "Single", - "Multiple" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Click mode", + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-click_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "click_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "AqaraSwitchClickMode", + "options": [ + "Single", + "Multiple" + ] }, { - "info_object": { - "fallback_name": "Operation mode", - "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-operation_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "operation_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "AqaraSwitchOperationMode", - "options": [ - "Command", - "Event" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Operation mode", + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-operation_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "operation_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "AqaraSwitchOperationMode", + "options": [ + "Command", + "Event" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": 3.0 } ] }, diff --git a/tests/data/devices/lumi-lumi-remote-b486opcn01.json b/tests/data/devices/lumi-lumi-remote-b486opcn01.json index d60a99559..1c6c18981 100644 --- a/tests/data/devices/lumi-lumi-remote-b486opcn01.json +++ b/tests/data/devices/lumi-lumi-remote-b486opcn01.json @@ -257,128 +257,107 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:c1:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:c1:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:c1:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:c1:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "04:cf:8c:df:3c:75:c1:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.9 } ] }, diff --git a/tests/data/devices/lumi-lumi-remote-b686opcn01.json b/tests/data/devices/lumi-lumi-remote-b686opcn01.json index ebbd25661..7a4c9d89a 100644 --- a/tests/data/devices/lumi-lumi-remote-b686opcn01.json +++ b/tests/data/devices/lumi-lumi-remote-b686opcn01.json @@ -365,128 +365,107 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:79:47:76-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:79:47:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:79:47:76-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:79:47:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:79:47:76-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:79:47:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:79:47:76-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:79:47:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.0 } ] }, diff --git a/tests/data/devices/lumi-lumi-remote-cagl02-0x0000001c.json b/tests/data/devices/lumi-lumi-remote-cagl02-0x0000001c.json index 82c933a5d..c79e03be0 100644 --- a/tests/data/devices/lumi-lumi-remote-cagl02-0x0000001c.json +++ b/tests/data/devices/lumi-lumi-remote-cagl02-0x0000001c.json @@ -220,162 +220,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -21 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -21, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "CR2450", - "battery_quantity": 1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2450", + "battery_quantity": 1, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001c", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001c", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-remote-cagl02.json b/tests/data/devices/lumi-lumi-remote-cagl02.json index 1362872eb..d9a8842a9 100644 --- a/tests/data/devices/lumi-lumi-remote-cagl02.json +++ b/tests/data/devices/lumi-lumi-remote-cagl02.json @@ -246,163 +246,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:14:f3:e7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:14:f3:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:14:f3:e7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:14:f3:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:14:f3:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:14:f3:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:14:f3:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:14:f3:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:14:f3:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:14:f3:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:14:f3:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:14:f3:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:14:f3:e7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:14:f3:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "CR2450", - "battery_quantity": 1, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "54:ef:44:10:00:14:f3:e7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "54:ef:44:10:00:14:f3:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2450", + "battery_quantity": 1, + "battery_voltage": 2.8 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:14:f3:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:14:f3:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:14:f3:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:14:f3:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-sen-ill-agl01.json b/tests/data/devices/lumi-lumi-sen-ill-agl01.json index 99074e03d..4ace988f2 100644 --- a/tests/data/devices/lumi-lumi-sen-ill-agl01.json +++ b/tests/data/devices/lumi-lumi-sen-ill-agl01.json @@ -164,156 +164,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.2 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 2391 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2391, + "suggested_display_precision": null, + "unit": "lx" } ] }, diff --git a/tests/data/devices/lumi-lumi-sen-ill-mgl01.json b/tests/data/devices/lumi-lumi-sen-ill-mgl01.json index 8080c49f3..1d950c4cf 100644 --- a/tests/data/devices/lumi-lumi-sen-ill-mgl01.json +++ b/tests/data/devices/lumi-lumi-sen-ill-mgl01.json @@ -153,156 +153,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:77:19:75-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:77:19:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:77:19:75-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:77:19:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:77:19:75-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:77:19:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:77:19:75-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:77:19:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:77:19:75-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:77:19:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:77:19:75-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:77:19:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:77:19:75-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:77:19:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:77:19:75-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "04:cf:8c:df:3c:77:19:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:77:19:75-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "04:cf:8c:df:3c:77:19:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:77:19:75-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:77:19:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": null, + "unit": "lx" } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-86sw2.json b/tests/data/devices/lumi-lumi-sensor-86sw2.json index d7ae0538b..32d6137a5 100644 --- a/tests/data/devices/lumi-lumi-sensor-86sw2.json +++ b/tests/data/devices/lumi-lumi-sensor-86sw2.json @@ -341,191 +341,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:54:cb:fa-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:54:cb:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:54:cb:fa-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:54:cb:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:54:cb:fa-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:54:cb:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:54:cb:fa-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:54:cb:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 59.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.99 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 59.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.99 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:54:cb:fa-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:8d:00:02:54:cb:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 21.0 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 21.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:54:cb:fa-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:54:cb:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-ht-agl02.json b/tests/data/devices/lumi-lumi-sensor-ht-agl02.json index c17093e0b..1c8ea9001 100644 --- a/tests/data/devices/lumi-lumi-sensor-ht-agl02.json +++ b/tests/data/devices/lumi-lumi-sensor-ht-agl02.json @@ -196,247 +196,206 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 66.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.01 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 66.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.01 }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 18.78 - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 18.78, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "hPa" - }, - "state": { - "class_name": "Pressure", - "available": true, - "state": 1013 - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1013, + "suggested_display_precision": 0, + "unit": "hPa" }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 49.05 - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 49.05, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-magnet-aq2.json b/tests/data/devices/lumi-lumi-sensor-magnet-aq2.json index 5fc0cd1b4..0c07f6a36 100644 --- a/tests/data/devices/lumi-lumi-sensor-magnet-aq2.json +++ b/tests/data/devices/lumi-lumi-sensor-magnet-aq2.json @@ -182,185 +182,154 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:ab:40:52-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:ab:40:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:ab:40:52-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:ab:40:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:ab:40:52-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:ab:40:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:ab:40:52-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:ab:40:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:ab:40:52-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:ab:40:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 77.0, - "battery_size": "CR1632", - "battery_quantity": 1, - "battery_voltage": 3.04 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 77.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR1632", + "battery_quantity": 1, + "battery_voltage": 3.04 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:ab:40:52-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:ab:40:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 27.0 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 27.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-motion-aq2.json b/tests/data/devices/lumi-lumi-sensor-motion-aq2.json index 35c81cedc..c73d7821b 100644 --- a/tests/data/devices/lumi-lumi-sensor-motion-aq2.json +++ b/tests/data/devices/lumi-lumi-sensor-motion-aq2.json @@ -221,275 +221,229 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 80.5, - "battery_size": "CR2450", - "battery_quantity": 1, - "battery_voltage": 3.04 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 80.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2450", + "battery_quantity": 1, + "battery_voltage": 3.04 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 739 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 739, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 27.0 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 27.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-smoke-acn03-0x00000011.json b/tests/data/devices/lumi-lumi-sensor-smoke-acn03-0x00000011.json index 79bbf93e2..53e0b0821 100644 --- a/tests/data/devices/lumi-lumi-sensor-smoke-acn03-0x00000011.json +++ b/tests/data/devices/lumi-lumi-sensor-smoke-acn03-0x00000011.json @@ -214,404 +214,338 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-linkage_alarm_state", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "AqaraLinkageAlarmState", - "translation_key": "linkage_alarm_state", - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "linkage_alarm_state" - }, - "state": { - "class_name": "AqaraLinkageAlarmState", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-linkage_alarm_state", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "AqaraLinkageAlarmState", + "translation_key": "linkage_alarm_state", + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "linkage_alarm_state" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-self_test", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "AqaraSelfTestButton", - "translation_key": "self_test", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "self_test", - "attribute_value": 1 - }, - "state": { - "class_name": "AqaraSelfTestButton", - "available": true - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-self_test", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "AqaraSelfTestButton", + "translation_key": "self_test", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "self_test", + "attribute_value": 1 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 79.5, - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": 3.04 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 79.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": 3.04 }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-smoke_density_dbm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AqaraSmokeDensityDbm", - "translation_key": "smoke_density", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "dB/m" - }, - "state": { - "class_name": "AqaraSmokeDensityDbm", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-smoke_density_dbm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AqaraSmokeDensityDbm", + "translation_key": "smoke_density", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": 3, + "unit": "dB/m" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-buzzer_manual_alarm", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraBuzzerManualAlarm", - "translation_key": "buzzer_manual_alarm", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "buzzer_manual_alarm", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "AqaraBuzzerManualAlarm", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-buzzer_manual_alarm", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraBuzzerManualAlarm", + "translation_key": "buzzer_manual_alarm", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "buzzer_manual_alarm", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-buzzer_manual_mute", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraBuzzerManualMute", - "translation_key": "buzzer_manual_mute", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "buzzer_manual_mute", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "AqaraBuzzerManualMute", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-buzzer_manual_mute", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraBuzzerManualMute", + "translation_key": "buzzer_manual_mute", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "buzzer_manual_mute", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-heartbeat_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraHeartbeatIndicator", - "translation_key": "heartbeat_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "heartbeat_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "AqaraHeartbeatIndicator", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-heartbeat_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraHeartbeatIndicator", + "translation_key": "heartbeat_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "heartbeat_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-linkage_alarm", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraLinkageAlarm", - "translation_key": "linkage_alarm", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "linkage_alarm", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "AqaraLinkageAlarm", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-linkage_alarm", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraLinkageAlarm", + "translation_key": "linkage_alarm", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "linkage_alarm", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000011", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000011", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-smoke.json b/tests/data/devices/lumi-lumi-sensor-smoke.json index 66a1fbf56..824f8310f 100644 --- a/tests/data/devices/lumi-lumi-sensor-smoke.json +++ b/tests/data/devices/lumi-lumi-sensor-smoke.json @@ -257,220 +257,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "CR123A", - "battery_quantity": 1, - "battery_voltage": 3.18 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR123A", + "battery_quantity": 1, + "battery_voltage": 3.18 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 23.0 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 23.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-switch-aq2.json b/tests/data/devices/lumi-lumi-sensor-switch-aq2.json index 704165b82..9c780d917 100644 --- a/tests/data/devices/lumi-lumi-sensor-switch-aq2.json +++ b/tests/data/devices/lumi-lumi-sensor-switch-aq2.json @@ -182,124 +182,103 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:13:91:38-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:13:91:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:13:91:38-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:13:91:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:13:91:38-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:13:91:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:13:91:38-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:13:91:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:13:91:38-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:13:91:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 77.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.04 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:13:91:38-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:8d:00:02:13:91:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 77.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.04 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:13:91:38-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:8d:00:02:13:91:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 29.0 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:13:91:38-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:13:91:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 29.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-switch-aq3.json b/tests/data/devices/lumi-lumi-sensor-switch-aq3.json index 3f5fa08ad..01d4e7ca8 100644 --- a/tests/data/devices/lumi-lumi-sensor-switch-aq3.json +++ b/tests/data/devices/lumi-lumi-sensor-switch-aq3.json @@ -165,124 +165,103 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:b0:e5:91-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:b0:e5:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:b0:e5:91-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:b0:e5:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:b0:e5:91-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:b0:e5:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:b0:e5:91-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:b0:e5:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:b0:e5:91-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:b0:e5:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 62.5, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.99 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:b0:e5:91-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:8d:00:02:b0:e5:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 62.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.99 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:b0:e5:91-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:8d:00:02:b0:e5:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 28.0 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:b0:e5:91-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:b0:e5:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 28.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-switch.json b/tests/data/devices/lumi-lumi-sensor-switch.json index ceda96e25..6a16f97ce 100644 --- a/tests/data/devices/lumi-lumi-sensor-switch.json +++ b/tests/data/devices/lumi-lumi-sensor-switch.json @@ -172,163 +172,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:10:ba:72-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:10:ba:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:10:ba:72-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:10:ba:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:10:ba:72-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:10:ba:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:10:ba:72-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:10:ba:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:10:ba:72-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:10:ba:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:10:ba:72-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:10:ba:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:10:ba:72-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:10:ba:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 90.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.07 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:10:ba:72-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:8d:00:02:10:ba:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 90.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.07 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:10:ba:72-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:10:ba:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:10:ba:72-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:10:ba:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-b1lacn02.json b/tests/data/devices/lumi-lumi-switch-b1lacn02.json index e3146dec6..680f9ea44 100644 --- a/tests/data/devices/lumi-lumi-switch-b1lacn02.json +++ b/tests/data/devices/lumi-lumi-switch-b1lacn02.json @@ -297,235 +297,195 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 17.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 17.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 4, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-b1laus01-0x00000020.json b/tests/data/devices/lumi-lumi-switch-b1laus01-0x00000020.json index c407bcce8..f01150458 100644 --- a/tests/data/devices/lumi-lumi-switch-b1laus01-0x00000020.json +++ b/tests/data/devices/lumi-lumi-switch-b1laus01-0x00000020.json @@ -201,207 +201,169 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:da:cf-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:da:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:da:cf-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:da:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:da:cf-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "04:cf:8c:df:3c:75:da:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:da:cf-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:da:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:da:cf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:da:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:da:cf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:da:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:da:cf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:da:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:da:cf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:da:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:da:cf-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:da:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 0.2 - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:da:cf-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:da:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.2, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:da:cf-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:75:da:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000020", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:da:cf-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:da:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000020", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-b1naus01-0x0000001f.json b/tests/data/devices/lumi-lumi-switch-b1naus01-0x0000001f.json index 65e6a7810..01e602c72 100644 --- a/tests/data/devices/lumi-lumi-switch-b1naus01-0x0000001f.json +++ b/tests/data/devices/lumi-lumi-switch-b1naus01-0x0000001f.json @@ -443,276 +443,228 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 253.802, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 253.802, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 0.23 - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.23, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-b2naus01.json b/tests/data/devices/lumi-lumi-switch-b2naus01.json index 9a2eb60b3..ff2223d35 100644 --- a/tests/data/devices/lumi-lumi-switch-b2naus01.json +++ b/tests/data/devices/lumi-lumi-switch-b2naus01.json @@ -680,340 +680,291 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 14.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 14.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 20.7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20.7, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-b2nc01.json b/tests/data/devices/lumi-lumi-switch-b2nc01.json index d755c4709..a06c8e19b 100644 --- a/tests/data/devices/lumi-lumi-switch-b2nc01.json +++ b/tests/data/devices/lumi-lumi-switch-b2nc01.json @@ -725,257 +725,206 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 0.24 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.24, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-l1aeu1-0x00000e0b.json b/tests/data/devices/lumi-lumi-switch-l1aeu1-0x00000e0b.json index 77ebe87f6..d7ee1df5a 100644 --- a/tests/data/devices/lumi-lumi-switch-l1aeu1-0x00000e0b.json +++ b/tests/data/devices/lumi-lumi-switch-l1aeu1-0x00000e0b.json @@ -224,207 +224,169 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:81:48:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:81:48:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:81:48:a1-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:4f:81:48:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:81:48:a1-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:81:48:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:81:48:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 240 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:81:48:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 240, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:81:48:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -40 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:81:48:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -40, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:81:48:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 0.3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:81:48:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.3, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:81:48:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000e0b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:81:48:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000e0b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-l2aeu1-0x00000e0b.json b/tests/data/devices/lumi-lumi-switch-l2aeu1-0x00000e0b.json index 566771a2f..6ba4c1332 100644 --- a/tests/data/devices/lumi-lumi-switch-l2aeu1-0x00000e0b.json +++ b/tests/data/devices/lumi-lumi-switch-l2aeu1-0x00000e0b.json @@ -267,257 +267,206 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 220 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 220, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -45 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -45, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 0.3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.3, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000e0b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000e0b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-n0agl1-0x0000001e.json b/tests/data/devices/lumi-lumi-switch-n0agl1-0x0000001e.json index dc13b9a23..09fdd4a0e 100644 --- a/tests/data/devices/lumi-lumi-switch-n0agl1-0x0000001e.json +++ b/tests/data/devices/lumi-lumi-switch-n0agl1-0x0000001e.json @@ -686,353 +686,300 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -64 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -64, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 41.15, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 41.15, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 0.18 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.18, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 229.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 229.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 4238.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4238.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-n0agl1.json b/tests/data/devices/lumi-lumi-switch-n0agl1.json index 058873310..6f46ac8ee 100644 --- a/tests/data/devices/lumi-lumi-switch-n0agl1.json +++ b/tests/data/devices/lumi-lumi-switch-n0agl1.json @@ -686,353 +686,300 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -64 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -64, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 41.15, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 41.15, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 0.18 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.18, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 229.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 229.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 4238.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4238.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-n1aeu1.json b/tests/data/devices/lumi-lumi-switch-n1aeu1.json index 25cd4eabf..eb380657e 100644 --- a/tests/data/devices/lumi-lumi-switch-n1aeu1.json +++ b/tests/data/devices/lumi-lumi-switch-n1aeu1.json @@ -489,284 +489,240 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 0.28 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.28, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 1.2, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.2, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-vibration-agl01-0x0000001c.json b/tests/data/devices/lumi-lumi-vibration-agl01-0x0000001c.json index 08f5bbfd4..4e4871f7c 100644 --- a/tests/data/devices/lumi-lumi-vibration-agl01-0x0000001c.json +++ b/tests/data/devices/lumi-lumi-vibration-agl01-0x0000001c.json @@ -233,217 +233,183 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-2-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-2-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 108 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 108, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -84 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -84, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001c", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001c", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-vibration-aq1.json b/tests/data/devices/lumi-lumi-vibration-aq1.json index 80a5d9321..65b39171a 100644 --- a/tests/data/devices/lumi-lumi-vibration-aq1.json +++ b/tests/data/devices/lumi-lumi-vibration-aq1.json @@ -277,220 +277,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "vibration", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "vibration", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 48.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.96 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 48.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.96 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 26.0 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 26.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/lumi-lumi-weather.json b/tests/data/devices/lumi-lumi-weather.json index d27e16621..0780e03f9 100644 --- a/tests/data/devices/lumi-lumi-weather.json +++ b/tests/data/devices/lumi-lumi-weather.json @@ -202,212 +202,176 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 59.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.99 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 59.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.99 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 21.73 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 21.73, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "hPa" - }, - "state": { - "class_name": "Pressure", - "available": true, - "state": 1009 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1009, + "suggested_display_precision": 0, + "unit": "hPa" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 57.99 - } + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 57.99, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/lutron-lzl4bwhl01-remote.json b/tests/data/devices/lutron-lzl4bwhl01-remote.json index d8f88c23a..62241dba4 100644 --- a/tests/data/devices/lutron-lzl4bwhl01-remote.json +++ b/tests/data/devices/lutron-lzl4bwhl01-remote.json @@ -169,60 +169,50 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:ff:3c:b3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ff:ff:00:0f:e7:ff:3c:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:ff:3c:b3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ff:ff:00:0f:e7:ff:3c:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:ff:3c:b3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ff:ff:00:0f:e7:ff:3c:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:ff:3c:b3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ff:ff:00:0f:e7:ff:3c:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/lutron-z3-1brl-0x00000c08.json b/tests/data/devices/lutron-z3-1brl-0x00000c08.json index 2565f0c2d..524b42417 100644 --- a/tests/data/devices/lutron-z3-1brl-0x00000c08.json +++ b/tests/data/devices/lutron-z3-1brl-0x00000c08.json @@ -189,161 +189,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000c08", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000c08", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/mli-tint-extendedcolor-0x10012001.json b/tests/data/devices/mli-tint-extendedcolor-0x10012001.json index ed23f007d..3f1d6e3eb 100644 --- a/tests/data/devices/mli-tint-extendedcolor-0x10012001.json +++ b/tests/data/devices/mli-tint-extendedcolor-0x10012001.json @@ -292,251 +292,207 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 555 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0, - 0 - ], - "color_temp": 370, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0, + 0 + ], + "color_temp": 370, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 555 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 555, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 555, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x10012001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x10012001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/mli-zbt-remote-all-rgbw-0x11010022.json b/tests/data/devices/mli-zbt-remote-all-rgbw-0x11010022.json index 54a36a0ce..162db5b9e 100644 --- a/tests/data/devices/mli-zbt-remote-all-rgbw-0x11010022.json +++ b/tests/data/devices/mli-zbt-remote-all-rgbw-0x11010022.json @@ -516,127 +516,107 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -67 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -67, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x11010022", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x11010022", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/namron-as-1402790.json b/tests/data/devices/namron-as-1402790.json index ea4e51bc2..c88bcf805 100644 --- a/tests/data/devices/namron-as-1402790.json +++ b/tests/data/devices/namron-as-1402790.json @@ -451,246 +451,210 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-10-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 10, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-10-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 10, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/namron-as-4512785-0x0000000e.json b/tests/data/devices/namron-as-4512785-0x0000000e.json index 182457059..147c286cb 100644 --- a/tests/data/devices/namron-as-4512785-0x0000000e.json +++ b/tests/data/devices/namron-as-4512785-0x0000000e.json @@ -606,378 +606,323 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -73 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -73, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 25.02, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25.02, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "DeviceTemperature", - "available": true, - "state": 3.52 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3.52, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 242.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 242.9, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000000e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000000e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/neuhaus-lighting-group-nlg-remote.json b/tests/data/devices/neuhaus-lighting-group-nlg-remote.json index 6c83c0169..84e1ab66d 100644 --- a/tests/data/devices/neuhaus-lighting-group-nlg-remote.json +++ b/tests/data/devices/neuhaus-lighting-group-nlg-remote.json @@ -151,92 +151,77 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:e3:16:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:e3:16:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:e3:16:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:e3:16:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:e3:16:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:e3:16:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/niko-nv-battery-switch-2-button.json b/tests/data/devices/niko-nv-battery-switch-2-button.json index 25200ce82..519e999c9 100644 --- a/tests/data/devices/niko-nv-battery-switch-2-button.json +++ b/tests/data/devices/niko-nv-battery-switch-2-button.json @@ -235,163 +235,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 3.1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/niko-nv-battery-switch-4-button-0x21046760.json b/tests/data/devices/niko-nv-battery-switch-4-button-0x21046760.json index 10676b58b..aaa24bdd5 100644 --- a/tests/data/devices/niko-nv-battery-switch-4-button-0x21046760.json +++ b/tests/data/devices/niko-nv-battery-switch-4-button-0x21046760.json @@ -312,163 +312,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:23:5d:15:43-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:23:5d:15:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:23:5d:15:43-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:23:5d:15:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:23:5d:15:43-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:23:5d:15:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:23:5d:15:43-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:23:5d:15:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 3.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 3.2 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:23:5d:15:43-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:23:5d:15:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x21046760", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x21046760", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/niko-nv-connectable-motor-control-3a-0x21160006.json b/tests/data/devices/niko-nv-connectable-motor-control-3a-0x21160006.json index d0b7270ab..1eb26f3c8 100644 --- a/tests/data/devices/niko-nv-connectable-motor-control-3a-0x21160006.json +++ b/tests/data/devices/niko-nv-connectable-motor-control-3a-0x21160006.json @@ -394,189 +394,158 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x21160006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x21160006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/nodon-sin-4-fp-21.json b/tests/data/devices/nodon-sin-4-fp-21.json index cfe3814e8..3d76b46ea 100644 --- a/tests/data/devices/nodon-sin-4-fp-21.json +++ b/tests/data/devices/nodon-sin-4-fp-21.json @@ -453,297 +453,250 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] }, { - "info_object": { - "fallback_name": "Pilot wire mode", - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-pilot_wire_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "pilot_wire_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "NodOnPilotWireMode", - "options": [ - "Off", - "Comfort", - "Eco", - "FrostProtection", - "ComfortMinus1", - "ComfortMinus2" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Pilot wire mode", + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-pilot_wire_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "pilot_wire_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "NodOnPilotWireMode", + "options": [ + "Off", + "Comfort", + "Eco", + "FrostProtection", + "ComfortMinus1", + "ComfortMinus2" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 4.738, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4.738, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/nodon-sin-4-rs-20-0x00010300.json b/tests/data/devices/nodon-sin-4-rs-20-0x00010300.json index 09cf74bfa..f89c62bf5 100644 --- a/tests/data/devices/nodon-sin-4-rs-20-0x00010300.json +++ b/tests/data/devices/nodon-sin-4-rs-20-0x00010300.json @@ -293,349 +293,293 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "blind", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": 100, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "blind", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": 100, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 255 } ], "number": [ { - "info_object": { - "fallback_name": "Calibration rotation run time down", - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_rotation_run_time_down", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "calibration_rotation_run_time_down", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "ms" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 2000 - } + "fallback_name": "Calibration rotation run time down", + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_rotation_run_time_down", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "calibration_rotation_run_time_down", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2000, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "ms" }, { - "info_object": { - "fallback_name": "Calibration rotation run time up", - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_rotation_run_time_up", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "calibration_rotation_run_time_up", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "ms" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 2000 - } + "fallback_name": "Calibration rotation run time up", + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_rotation_run_time_up", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "calibration_rotation_run_time_up", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2000, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "ms" }, { - "info_object": { - "fallback_name": "Calibration vertical run time down", - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_vertical_run_time_down", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "calibration_vertical_run_time_down", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "ms" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 2130 - } + "fallback_name": "Calibration vertical run time down", + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_vertical_run_time_down", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "calibration_vertical_run_time_down", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2130, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "ms" }, { - "info_object": { - "fallback_name": "Calibration vertical run time up", - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_vertical_run_time_up", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "calibration_vertical_run_time_up", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "ms" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 2250 - } + "fallback_name": "Calibration vertical run time up", + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_vertical_run_time_up", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "calibration_vertical_run_time_up", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2250, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "ms" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Tilt_blind_tilt_and_lift" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Tilt_blind_tilt_and_lift", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00010300", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00010300", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/occam-temp-sensor-v1-2-jan-19-2026.json b/tests/data/devices/occam-temp-sensor-v1-2-jan-19-2026.json index dea20dac8..6d5be14d1 100644 --- a/tests/data/devices/occam-temp-sensor-v1-2-jan-19-2026.json +++ b/tests/data/devices/occam-temp-sensor-v1-2-jan-19-2026.json @@ -166,182 +166,153 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", - "endpoint_id": 10, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", + "endpoint_id": 10, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 148 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 148, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -63 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": -63, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 93.0, - "battery_voltage": 25.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 93.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 25.5 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": -18.24 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": -18.24, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 0.05 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 0.05, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/orvibo-250bccf66c41421b91b5e3242942c164.json b/tests/data/devices/orvibo-250bccf66c41421b91b5e3242942c164.json index fdd7ecfb1..5beabe043 100644 --- a/tests/data/devices/orvibo-250bccf66c41421b91b5e3242942c164.json +++ b/tests/data/devices/orvibo-250bccf66c41421b91b5e3242942c164.json @@ -292,307 +292,254 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 371 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 128, - "xy_color": null, - "color_temp": 250, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 128, + "xy_color": null, + "color_temp": 250, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 371 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 371, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 153 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 153, + "mode": "auto", + "native_max_value": 371, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 20 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 20 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 20 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/osram-switch-4x-lightify-0x01000000.json b/tests/data/devices/osram-switch-4x-lightify-0x01000000.json index 73f2bfbca..9c871649e 100644 --- a/tests/data/devices/osram-switch-4x-lightify-0x01000000.json +++ b/tests/data/devices/osram-switch-4x-lightify-0x01000000.json @@ -766,129 +766,110 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.9 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01000000", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01000000", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ou-rui-bo-cf31218e11c547179c9c9ade6a492799.json b/tests/data/devices/ou-rui-bo-cf31218e11c547179c9c9ade6a492799.json index 26985e91b..e64ad7511 100644 --- a/tests/data/devices/ou-rui-bo-cf31218e11c547179c9c9ade6a492799.json +++ b/tests/data/devices/ou-rui-bo-cf31218e11c547179c9c9ade6a492799.json @@ -171,153 +171,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "lock": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-257", - "migrate_unique_ids": [], - "platform": "lock", - "class_name": "DoorLock", - "translation_key": "door_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "DoorLock", - "available": true, - "is_locked": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-257", + "migrate_unique_ids": [], + "platform": "lock", + "class_name": "DoorLock", + "translation_key": "door_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_locked": true } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ] }, diff --git a/tests/data/devices/paulmann-licht-gmbh-501-34.json b/tests/data/devices/paulmann-licht-gmbh-501-34.json index 2e78378aa..d4dab3bea 100644 --- a/tests/data/devices/paulmann-licht-gmbh-501-34.json +++ b/tests/data/devices/paulmann-licht-gmbh-501-34.json @@ -322,232 +322,195 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "Unknown", - "battery_quantity": 0, - "battery_voltage": 3.3 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": 0, + "battery_voltage": 3.3 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "Unknown", - "battery_quantity": 0, - "battery_voltage": 3.3 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": 0, + "battery_voltage": 3.3 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-7602031u7-0x01001d00.json b/tests/data/devices/philips-7602031u7-0x01001d00.json index 00d24c613..4678e1563 100644 --- a/tests/data/devices/philips-7602031u7-0x01001d00.json +++ b/tests/data/devices/philips-7602031u7-0x01001d00.json @@ -370,286 +370,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.2302433813992523, - 0.08744945448996719 - ], - "color_temp": 500, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.2302433813992523, + 0.08744945448996719 + ], + "color_temp": 500, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 366 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 366, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01001d00", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01001d00", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-915005988601-0x01002000.json b/tests/data/devices/philips-915005988601-0x01002000.json index b85490f1d..ac6dce57f 100644 --- a/tests/data/devices/philips-915005988601-0x01002000.json +++ b/tests/data/devices/philips-915005988601-0x01002000.json @@ -322,286 +322,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.5596704051270314, - 0.40079346913862823 - ], - "color_temp": 500, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.5596704051270314, + 0.40079346913862823 + ], + "color_temp": 500, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 366 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 366, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 216 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 216, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -57 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": -57, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01002000", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01002000", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-lct014-0x01001a02.json b/tests/data/devices/philips-lct014-0x01001a02.json index 9ee96dc19..03bdda4f9 100644 --- a/tests/data/devices/philips-lct014-0x01001a02.json +++ b/tests/data/devices/philips-lct014-0x01001a02.json @@ -336,286 +336,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.45734340428778514, - 0.41002517738612954 - ], - "color_temp": 366, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.45734340428778514, + 0.41002517738612954 + ], + "color_temp": 366, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 366 - } + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 366, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01001a02", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01001a02", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-lct026.json b/tests/data/devices/philips-lct026.json index 49a4c4a28..092a9b177 100644 --- a/tests/data/devices/philips-lct026.json +++ b/tests/data/devices/philips-lct026.json @@ -328,286 +328,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 67, - "xy_color": [ - 0.5639429312581064, - 0.39041733424887465 - ], - "color_temp": 500, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 67, + "xy_color": [ + 0.5639429312581064, + 0.39041733424887465 + ], + "color_temp": 500, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 366 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 366, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-llc020-0x42006734.json b/tests/data/devices/philips-llc020-0x42006734.json index 9b267a987..434018479 100644 --- a/tests/data/devices/philips-llc020-0x42006734.json +++ b/tests/data/devices/philips-llc020-0x42006734.json @@ -324,286 +324,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.1799343862058442, - 0.2392614633401999 - ], - "color_temp": 153, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.1799343862058442, + 0.2392614633401999 + ], + "color_temp": 153, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 366 - } + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 366, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x42006734", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x42006734", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-lst002-0x01001700.json b/tests/data/devices/philips-lst002-0x01001700.json index 8696b0f75..a543747ba 100644 --- a/tests/data/devices/philips-lst002-0x01001700.json +++ b/tests/data/devices/philips-lst002-0x01001700.json @@ -349,187 +349,153 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ad:8a:89:91", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:8a:89:91", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:8a:89:91-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ad:8a:89:91", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 1, - "xy_color": [ - 0.5266803997863737, - 0.41330586709391925 - ], - "color_temp": 500, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:8a:89:91-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:8a:89:91", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 1, + "xy_color": [ + 0.5266803997863737, + 0.41330586709391925 + ], + "color_temp": 500, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ad:8a:89:91", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:8a:89:91", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ad:8a:89:91", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:8a:89:91", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ad:8a:89:91", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01001700", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ad:8a:89:91", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01001700", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-rom001-0x02002f08.json b/tests/data/devices/philips-rom001-0x02002f08.json index 4433e8bda..5191fe45b 100644 --- a/tests/data/devices/philips-rom001-0x02002f08.json +++ b/tests/data/devices/philips-rom001-0x02002f08.json @@ -225,161 +225,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:54:a7:c3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:54:a7:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:54:a7:c3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:54:a7:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:54:a7:c3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:54:a7:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:54:a7:c3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:54:a7:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:54:a7:c3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:54:a7:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:54:a7:c3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:54:a7:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:54:a7:c3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:54:a7:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:17:88:01:06:54:a7:c3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:17:88:01:06:54:a7:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:54:a7:c3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:54:a7:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02002f08", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:54:a7:c3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:54:a7:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x02002f08", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-rwl020-0x420045b6.json b/tests/data/devices/philips-rwl020-0x420045b6.json index 2ea543792..cfcc0e2cb 100644 --- a/tests/data/devices/philips-rwl020-0x420045b6.json +++ b/tests/data/devices/philips-rwl020-0x420045b6.json @@ -240,190 +240,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 148 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 148, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -74 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -74, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 44.5, - "battery_voltage": 2.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 44.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.5 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x420045b6", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": "0x420045b6", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-rwl020.json b/tests/data/devices/philips-rwl020.json index 0f530b272..a9920f8c2 100644 --- a/tests/data/devices/philips-rwl020.json +++ b/tests/data/devices/philips-rwl020.json @@ -239,190 +239,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:08:07:c3:5b-2-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:08:07:c3:5b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-2-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:08:07:c3:5b-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:08:07:c3:5b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:08:07:c3:5b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:08:07:c3:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:08:07:c3:5b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:08:07:c3:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:08:07:c3:5b-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:08:07:c3:5b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:08:07:c3:5b-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:08:07:c3:5b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-rwl021-0x43007305.json b/tests/data/devices/philips-rwl021-0x43007305.json index 388453828..656cce6e3 100644 --- a/tests/data/devices/philips-rwl021-0x43007305.json +++ b/tests/data/devices/philips-rwl021-0x43007305.json @@ -247,190 +247,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 116 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 116, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -71 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -71, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 15.0, - "battery_voltage": 2.4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 15.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.4 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x43007305", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": "0x43007305", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-sml001-0x42006bb7.json b/tests/data/devices/philips-sml001-0x42006bb7.json index 0151853ce..f160a3a15 100644 --- a/tests/data/devices/philips-sml001-0x42006bb7.json +++ b/tests/data/devices/philips-sml001-0x42006bb7.json @@ -265,341 +265,287 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "PhilipsMotion", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "PhilipsMotion", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "PhilipsMotion", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-1030-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "HueV1MotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "enum": "HueV1MotionSensitivities", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "HueV1MotionSensitivity", - "available": true, - "state": "High" - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-1030-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "HueV1MotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_option": "High", + "enum": "HueV1MotionSensitivities", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 38.5, - "battery_voltage": 2.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 38.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.5 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 6 - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 6, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 23.07 - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 23.07, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-0-trigger_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "HueMotionTriggerIndicatorSwitch", - "translation_key": "trigger_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "trigger_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "HueMotionTriggerIndicatorSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-0-trigger_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "HueMotionTriggerIndicatorSwitch", + "translation_key": "trigger_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "trigger_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x42006bb7", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": "0x42006bb7", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-sml001-0x43007305.json b/tests/data/devices/philips-sml001-0x43007305.json index 623829f30..be79d602b 100644 --- a/tests/data/devices/philips-sml001-0x43007305.json +++ b/tests/data/devices/philips-sml001-0x43007305.json @@ -272,341 +272,287 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "PhilipsMotion", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "PhilipsMotion", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "PhilipsMotion", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "occupancy" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "HueV1MotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "enum": "HueV1MotionSensitivities", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "HueV1MotionSensitivity", - "available": true, - "state": "Low" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "HueV1MotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_option": "Low", + "enum": "HueV1MotionSensitivities", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.9 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 13 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 13, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 24.75 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 24.75, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-0-trigger_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "HueMotionTriggerIndicatorSwitch", - "translation_key": "trigger_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "trigger_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "HueMotionTriggerIndicatorSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-0-trigger_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "HueMotionTriggerIndicatorSwitch", + "translation_key": "trigger_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "trigger_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x43007305", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": "0x43007305", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/philips-sml001-0x43007401.json b/tests/data/devices/philips-sml001-0x43007401.json index b37b2d3be..16ab7d4a6 100644 --- a/tests/data/devices/philips-sml001-0x43007401.json +++ b/tests/data/devices/philips-sml001-0x43007401.json @@ -272,341 +272,287 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "PhilipsMotion", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "PhilipsMotion", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "PhilipsMotion", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "HueV1MotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "enum": "HueV1MotionSensitivities", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "HueV1MotionSensitivity", - "available": true, - "state": "High" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "HueV1MotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_option": "High", + "enum": "HueV1MotionSensitivities", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 120 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 120, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -70 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -70, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 21.98 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 21.98, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-0-trigger_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "HueMotionTriggerIndicatorSwitch", - "translation_key": "trigger_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "trigger_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "HueMotionTriggerIndicatorSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-0-trigger_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "HueMotionTriggerIndicatorSwitch", + "translation_key": "trigger_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "trigger_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x43007401", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": "0x43007401", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/plaid-systems-ps-sprzms-slp3-0x00000001.json b/tests/data/devices/plaid-systems-ps-sprzms-slp3-0x00000001.json index d7c0237aa..ff09694fb 100644 --- a/tests/data/devices/plaid-systems-ps-sprzms-slp3-0x00000001.json +++ b/tests/data/devices/plaid-systems-ps-sprzms-slp3-0x00000001.json @@ -191,219 +191,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "CR123A", - "battery_quantity": 1, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR123A", + "battery_quantity": 1, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 19.64 - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 19.64, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 45.93 - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 45.93, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ptvo-info-ptvo-switch.json b/tests/data/devices/ptvo-info-ptvo-switch.json index 3b1d762ec..c65cfe735 100644 --- a/tests/data/devices/ptvo-info-ptvo-switch.json +++ b/tests/data/devices/ptvo-info-ptvo-switch.json @@ -486,438 +486,358 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-2-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-2-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-3-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 3, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-3-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-4-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 4, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-4-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-5-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 5, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-5-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 5, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-6-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 6, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-6-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 6, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-7-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 7, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.43 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-7-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 7, + "available": true, + "group_id": null, + "native_value": 22.43, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-8-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 8, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-8-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": 22.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 4, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-5-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 5, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-5-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 5, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-6-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 6, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-6-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 6, + "available": true, + "group_id": null, + "is_on": 0 } ] }, diff --git a/tests/data/devices/samjin-button-0x00000011.json b/tests/data/devices/samjin-button-0x00000011.json index c0fd5b3de..5dcfb9e8f 100644 --- a/tests/data/devices/samjin-button-0x00000011.json +++ b/tests/data/devices/samjin-button-0x00000011.json @@ -224,218 +224,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.5 }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 25.58 - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25.58, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000011", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000011", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/samjin-multi-0x0000000b.json b/tests/data/devices/samjin-multi-0x0000000b.json index c227dcd8b..36a96c415 100644 --- a/tests/data/devices/samjin-multi-0x0000000b.json +++ b/tests/data/devices/samjin-multi-0x0000000b.json @@ -250,245 +250,206 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-64514", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Accelerometer", - "translation_key": "accelerometer", - "translation_placeholders": null, - "device_class": "moving", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "acceleration" - }, - "state": { - "class_name": "Accelerometer", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-64514", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Accelerometer", + "translation_key": "accelerometer", + "translation_placeholders": null, + "device_class": "moving", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "acceleration" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 24.41 - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 24.41, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000000b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000000b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/samjin-water.json b/tests/data/devices/samjin-water.json index b48383453..1b4c7e18e 100644 --- a/tests/data/devices/samjin-water.json +++ b/tests/data/devices/samjin-water.json @@ -218,218 +218,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.29 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.29, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/schneider-electric-eko07259-0x01001d00.json b/tests/data/devices/schneider-electric-eko07259-0x01001d00.json index f01046dee..d1e99497c 100644 --- a/tests/data/devices/schneider-electric-eko07259-0x01001d00.json +++ b/tests/data/devices/schneider-electric-eko07259-0x01001d00.json @@ -1501,1135 +1501,948 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Open window detection status", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_detection_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "open_window_detection_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "se_open_window_detection_status" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Open window detection status", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_detection_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "open_window_detection_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "se_open_window_detection_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 40.0, - "min_temp": 4.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 18.86, - "outdoor_temperature": null, - "target_temperature": 24.8, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": 2000, - "occupied_heating_setpoint": 2480, - "pi_heating_demand": 30, - "pi_cooling_demand": 0, - "unoccupied_cooling_setpoint": 2200, - "unoccupied_heating_setpoint": 1600 - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 18.86, + "outdoor_temperature": null, + "target_temperature": 24.8, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 40.0, + "min_temp": 4.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": 2000, + "occupied_heating_setpoint": 2480, + "pi_heating_demand": 30, + "pi_cooling_demand": 0, + "unoccupied_cooling_setpoint": 2200, + "unoccupied_heating_setpoint": 1600 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 40.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 40.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 40.0, + "mode": "box", + "native_max_value": 40.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 40.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 4.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4.0, + "mode": "box", + "native_max_value": 40.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Display activity timeout", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_activity_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_activity_timeout", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 3600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 60 - } + "fallback_name": "Display activity timeout", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_activity_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_activity_timeout", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 60, + "mode": "auto", + "native_max_value": 3600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Boost amount", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_boost_amount", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "boost_amount", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 2.0 - } + "fallback_name": "Boost amount", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_boost_amount", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "boost_amount", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2.0, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 100 - } + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Fallback timeout", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_fallback_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fallback_timeout", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10800, - "native_min_value": 30, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 600 - } + "fallback_name": "Fallback timeout", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_fallback_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fallback_timeout", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 600, + "mode": "auto", + "native_max_value": 10800, + "native_min_value": 30, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Display inactive brightness", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_inactive_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_inactive_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Display inactive brightness", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_inactive_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_inactive_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Open window detection guard period", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_detection_guard_period", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "open_window_detection_guard_period", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 7620, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 120 - } + "fallback_name": "Open window detection guard period", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_detection_guard_period", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "open_window_detection_guard_period", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 120, + "mode": "auto", + "native_max_value": 7620, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Open window detection threshold", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_detection_threshold", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "open_window_detection_threshold", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1.2, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0.2 - } + "fallback_name": "Open window detection threshold", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_detection_threshold", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "open_window_detection_threshold", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.2, + "mode": "auto", + "native_max_value": 1.2, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Open window event duration", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_event_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "open_window_event_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 7620, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 1200 - } + "fallback_name": "Open window event duration", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_event_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "open_window_event_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1200, + "mode": "auto", + "native_max_value": 7620, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Ambient sensor correction", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-2-se_sensor_correction", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "ambient_sensor_correction", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": -10, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": -1.9000000000000001 - } + "fallback_name": "Ambient sensor correction", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-2-se_sensor_correction", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "ambient_sensor_correction", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": -1.9000000000000001, + "mode": "auto", + "native_max_value": 10, + "native_min_value": -10, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "External sensor correction", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-3-se_sensor_correction", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "external_sensor_correction", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": -10, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0.0 - } + "fallback_name": "External sensor correction", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-3-se_sensor_correction", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "external_sensor_correction", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "auto", + "native_max_value": 10, + "native_min_value": -10, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Fixed load demand", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-5-se_fixed_load_demand", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fixed_load_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10000, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "W" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 500 - } + "fallback_name": "Fixed load demand", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-5-se_fixed_load_demand", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fixed_load_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 500, + "mode": "auto", + "native_max_value": 10000, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "W" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] }, { - "info_object": { - "fallback_name": "Control type", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_control_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "control_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SEControlType", - "options": [ - "OnOff", - "PI", - "NoControl" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "NoControl" - } + "fallback_name": "Control type", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_control_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "control_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "NoControl", + "enum": "SEControlType", + "options": [ + "OnOff", + "PI", + "NoControl" + ] }, { - "info_object": { - "fallback_name": "Heat transfer medium", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_heat_transfer_medium", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "heat_transfer_medium", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SEHeatTransferMedium", - "options": [ - "Nothing", - "Hydronic", - "Air" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Nothing" - } + "fallback_name": "Heat transfer medium", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_heat_transfer_medium", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "heat_transfer_medium", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Nothing", + "enum": "SEHeatTransferMedium", + "options": [ + "Nothing", + "Hydronic", + "Air" + ] }, { - "info_object": { - "fallback_name": "Heating emitter type", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_heating_emitter_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "heating_emitter_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SEHeatingEmitterType", - "options": [ - "Direct", - "Radiator", - "FanAssistedRadiator", - "RadiantPanel", - "Floor", - "NotSpecified" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Floor" - } + "fallback_name": "Heating emitter type", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_heating_emitter_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "heating_emitter_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Floor", + "enum": "SEHeatingEmitterType", + "options": [ + "Direct", + "Radiator", + "FanAssistedRadiator", + "RadiantPanel", + "Floor", + "NotSpecified" + ] }, { - "info_object": { - "fallback_name": "Heating fuel", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_heating_fuel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "heating_fuel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SEHeatingFuel", - "options": [ - "Electricity", - "Gas", - "Oil", - "SolidFuel", - "Solar", - "ComunityHeating", - "HeatPump", - "NotSpecified" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Electricity" - } + "fallback_name": "Heating fuel", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_heating_fuel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "heating_fuel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Electricity", + "enum": "SEHeatingFuel", + "options": [ + "Electricity", + "Gas", + "Oil", + "SolidFuel", + "Solar", + "ComunityHeating", + "HeatPump", + "NotSpecified" + ] }, { - "info_object": { - "fallback_name": "Local temperature source", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_local_temperature_source_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "local_temperature_source", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SELocalTemperatureSourceSelect", - "options": [ - "Ambient", - "External" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Ambient" - } + "fallback_name": "Local temperature source", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_local_temperature_source_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "local_temperature_source", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Ambient", + "enum": "SELocalTemperatureSourceSelect", + "options": [ + "Ambient", + "External" + ] }, { - "info_object": { - "fallback_name": "Thermostat application", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_thermostat_application", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "thermostat_application", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SEThermostatApplication", - "options": [ - "OccupiedSpace", - "Floor", - "NotKnown" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Floor" - } + "fallback_name": "Thermostat application", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_thermostat_application", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "thermostat_application", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Floor", + "enum": "SEThermostatApplication", + "options": [ + "OccupiedSpace", + "Floor", + "NotKnown" + ] }, { - "info_object": { - "fallback_name": "External temperature sensor type", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-3-se_temperature_sensor_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "external_temperature_sensor_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 3, - "available": true, - "group_id": null, - "enum": "SETemperatureSensorType", - "options": [ - "Sensor2kOhm", - "Sensor10kOhm", - "Sensor12kOhm", - "Sensor15kOhm", - "Sensor33kOhm", - "Sensor47kOhm", - "SensorAbsent" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "SensorAbsent" - } + "fallback_name": "External temperature sensor type", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-3-se_temperature_sensor_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "external_temperature_sensor_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 3, + "available": true, + "group_id": null, + "current_option": "SensorAbsent", + "enum": "SETemperatureSensorType", + "options": [ + "Sensor2kOhm", + "Sensor10kOhm", + "Sensor12kOhm", + "Sensor15kOhm", + "Sensor33kOhm", + "Sensor47kOhm", + "SensorAbsent" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 188 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 188, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -64 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -64, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "heating" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "heating", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": 30 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Control status", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_control_status", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "control_status", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": "NormalOperation" - } + "fallback_name": "Control status", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_control_status", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "control_status", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "NormalOperation", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 19.14 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 19.14, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-3-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-3-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-5-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 500, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-5-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 500, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-5-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 640.678, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-5-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 640.678, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01001d00", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01001d00", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/schneider-electric-evsckt-outlet-1-0x020a00ff.json b/tests/data/devices/schneider-electric-evsckt-outlet-1-0x020a00ff.json index 2d23b2d10..d3660c733 100644 --- a/tests/data/devices/schneider-electric-evsckt-outlet-1-0x020a00ff.json +++ b/tests/data/devices/schneider-electric-evsckt-outlet-1-0x020a00ff.json @@ -436,328 +436,278 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 144.014, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 144.014, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 233.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 233.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x020a00ff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "installed_version": "0x020a00ff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/schneider-electric-lk-dimmer.json b/tests/data/devices/schneider-electric-lk-dimmer.json index 045267f81..a2fc7dbc2 100644 --- a/tests/data/devices/schneider-electric-lk-dimmer.json +++ b/tests/data/devices/schneider-electric-lk-dimmer.json @@ -522,306 +522,253 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 1, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": 1, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "DefaultMoveRateConfigurationEntity", - "available": true, - "state": 50 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 50, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 2 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 2, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/schneider-electric-nhmotion-unidim-1-0x020b0fff.json b/tests/data/devices/schneider-electric-nhmotion-unidim-1-0x020b0fff.json index 24a9e086f..d91ab83e1 100644 --- a/tests/data/devices/schneider-electric-nhmotion-unidim-1-0x020b0fff.json +++ b/tests/data/devices/schneider-electric-nhmotion-unidim-1-0x020b0fff.json @@ -324,301 +324,248 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-37-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 37, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-37-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 37, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 88 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 88, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -89 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": -89, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-37-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 37, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 7 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-37-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 37, + "available": true, + "group_id": null, + "native_value": 7, + "suggested_display_precision": null, + "unit": "lx" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x020b0fff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "installed_version": "0x020b0fff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/schneider-electric-puck-dimmer-1.json b/tests/data/devices/schneider-electric-puck-dimmer-1.json index 428ed0501..c84aa0d01 100644 --- a/tests/data/devices/schneider-electric-puck-dimmer-1.json +++ b/tests/data/devices/schneider-electric-puck-dimmer-1.json @@ -224,244 +224,201 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 245, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": 245, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/schneider-electric-puck-shutter-1-0x020c02ff.json b/tests/data/devices/schneider-electric-puck-shutter-1-0x020c02ff.json index bb252b2a7..52b97b95a 100644 --- a/tests/data/devices/schneider-electric-puck-shutter-1-0x020c02ff.json +++ b/tests/data/devices/schneider-electric-puck-shutter-1-0x020c02ff.json @@ -411,349 +411,293 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "blind", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 18, - "current_tilt_position": 50, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "blind", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "current_position": 18, + "current_tilt_position": 50, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 255 } ], "number": [ { - "info_object": { - "fallback_name": "Lift drive down time", - "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_lift_drive_down_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "lift_drive_down_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Lift drive down time", + "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_lift_drive_down_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "lift_drive_down_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Lift drive up time", - "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_lift_drive_up_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "lift_drive_up_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Lift drive up time", + "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_lift_drive_up_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "lift_drive_up_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Tilt open close and step time", - "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_tilt_open_close_and_step_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "tilt_open_close_and_step_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Tilt open close and step time", + "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_tilt_open_close_and_step_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "tilt_open_close_and_step_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Tilt position percentage after move to level", - "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_tilt_position_percentage_after_move_to_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "tilt_position_percentage_after_move_to_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Tilt position percentage after move to level", + "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_tilt_position_percentage_after_move_to_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "tilt_position_percentage_after_move_to_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Tilt_blind_tilt_and_lift" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": "Tilt_blind_tilt_and_lift", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x020c02ff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "installed_version": "0x020c02ff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/schneider-electric-s520619-0x01003500.json b/tests/data/devices/schneider-electric-s520619-0x01003500.json index 90d4770a1..02e10c34d 100644 --- a/tests/data/devices/schneider-electric-s520619-0x01003500.json +++ b/tests/data/devices/schneider-electric-s520619-0x01003500.json @@ -583,503 +583,416 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-4-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 4, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-4-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "occupancy" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 4.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 18.95, - "outdoor_temperature": null, - "target_temperature": 17.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": 2000, - "occupied_heating_setpoint": 1700, - "pi_heating_demand": 0, - "pi_cooling_demand": 0, - "unoccupied_cooling_setpoint": 2200, - "unoccupied_heating_setpoint": 1600 - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 18.95, + "outdoor_temperature": null, + "target_temperature": 17.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 4.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": 2000, + "occupied_heating_setpoint": 1700, + "pi_heating_demand": 0, + "pi_cooling_demand": 0, + "unoccupied_cooling_setpoint": 2200, + "unoccupied_heating_setpoint": 1600 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 40.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 40.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 4.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 18.75 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 18.75, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-5-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-5-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-5-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 5, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-5-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01003500", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x01003500", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/schneider-electric-socket-outlet-1-0x020612ff.json b/tests/data/devices/schneider-electric-socket-outlet-1-0x020612ff.json index a9bec7cad..39dac8ba5 100644 --- a/tests/data/devices/schneider-electric-socket-outlet-1-0x020612ff.json +++ b/tests/data/devices/schneider-electric-socket-outlet-1-0x020612ff.json @@ -526,328 +526,278 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 180 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 180, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -66 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": -66, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 10.329, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 10.329, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 225.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 225.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x020612ff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "installed_version": "0x020612ff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/schneider-electric-socket-outlet-2-0x020612ff.json b/tests/data/devices/schneider-electric-socket-outlet-2-0x020612ff.json index aef258d54..0d489da02 100644 --- a/tests/data/devices/schneider-electric-socket-outlet-2-0x020612ff.json +++ b/tests/data/devices/schneider-electric-socket-outlet-2-0x020612ff.json @@ -526,328 +526,278 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 168 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 168, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -69 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": -69, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.023, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 0.023, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 225.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": 225.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x020612ff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "installed_version": "0x020612ff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/securifi-ltd-unk-model.json b/tests/data/devices/securifi-ltd-unk-model.json index 6b199428e..be6f4c8c1 100644 --- a/tests/data/devices/securifi-ltd-unk-model.json +++ b/tests/data/devices/securifi-ltd-unk-model.json @@ -358,319 +358,274 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 0.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 122.98466468299382, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 122.98466468299382, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sengled-e11-g13-0x00000009.json b/tests/data/devices/sengled-e11-g13-0x00000009.json index 522eb7a95..9ecdecd3d 100644 --- a/tests/data/devices/sengled-e11-g13-0x00000009.json +++ b/tests/data/devices/sengled-e11-g13-0x00000009.json @@ -311,285 +311,235 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "MinTransitionLight", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 36.9631, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 36.9631, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000009", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000009", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sengled-e12-n14-0x00000004.json b/tests/data/devices/sengled-e12-n14-0x00000004.json index 2a2e5a45f..a8250b365 100644 --- a/tests/data/devices/sengled-e12-n14-0x00000004.json +++ b/tests/data/devices/sengled-e12-n14-0x00000004.json @@ -305,285 +305,235 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "MinTransitionLight", - "available": true, - "on": true, - "brightness": 255, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 255, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 8.5, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 8.5, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0026, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0026, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000004", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000004", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sengled-e12-n1e-0x0000001e.json b/tests/data/devices/sengled-e12-n1e-0x0000001e.json index 20fb5f127..fac34e266 100644 --- a/tests/data/devices/sengled-e12-n1e-0x0000001e.json +++ b/tests/data/devices/sengled-e12-n1e-0x0000001e.json @@ -408,257 +408,212 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 154, - "max_mireds": 500 - }, - "state": { - "class_name": "MinTransitionLight", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.7009994659342336, - 0.2989852750438697 - ], - "color_temp": 397, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.7009994659342336, + 0.2989852750438697 + ], + "color_temp": 397, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 154, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 8.7, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 8.7, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 54.1256, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 54.1256, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sengled-e1c-nb6.json b/tests/data/devices/sengled-e1c-nb6.json index a86d57dbe..740a2a762 100644 --- a/tests/data/devices/sengled-e1c-nb6.json +++ b/tests/data/devices/sengled-e1c-nb6.json @@ -152,155 +152,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:04:2d:f3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:04:2d:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:04:2d:f3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:04:2d:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:04:2d:f3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:04:2d:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:04:2d:f3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:04:2d:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:04:2d:f3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:04:2d:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:04:2d:f3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:04:2d:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:04:2d:f3-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "b0:ce:18:14:00:04:2d:f3", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:04:2d:f3-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:04:2d:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:04:2d:f3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:04:2d:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:04:2d:f3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:04:2d:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sengled-e1c-nb7-0x0000001a.json b/tests/data/devices/sengled-e1c-nb7-0x0000001a.json index 2d4ab23bf..e9b4e9da7 100644 --- a/tests/data/devices/sengled-e1c-nb7-0x0000001a.json +++ b/tests/data/devices/sengled-e1c-nb7-0x0000001a.json @@ -274,262 +274,220 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 1.8, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.8, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 13.4555, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 13.4555, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sengled-e1f-n9g-0x00000020.json b/tests/data/devices/sengled-e1f-n9g-0x00000020.json index 415f4bfd6..577c45823 100644 --- a/tests/data/devices/sengled-e1f-n9g-0x00000020.json +++ b/tests/data/devices/sengled-e1f-n9g-0x00000020.json @@ -323,285 +323,235 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "MinTransitionLight", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 4.8, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4.8, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.2962, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.2962, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000020", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000020", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sengled-e1g-g8e-0x0000000e.json b/tests/data/devices/sengled-e1g-g8e-0x0000000e.json index 21ca4a001..b2c7148de 100644 --- a/tests/data/devices/sengled-e1g-g8e-0x0000000e.json +++ b/tests/data/devices/sengled-e1g-g8e-0x0000000e.json @@ -414,257 +414,212 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 154, - "max_mireds": 500 - }, - "state": { - "class_name": "MinTransitionLight", - "available": true, - "on": false, - "brightness": 26, - "xy_color": [ - 0.38054474708171204, - 0.3769130998702983 - ], - "color_temp": 232, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 26, + "xy_color": [ + 0.38054474708171204, + 0.3769130998702983 + ], + "color_temp": 232, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 154, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.2, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.2, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.1413, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.1413, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000000e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000000e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sengled-e21-n1ea-0x00000026.json b/tests/data/devices/sengled-e21-n1ea-0x00000026.json index a575be4d7..732ab34e2 100644 --- a/tests/data/devices/sengled-e21-n1ea-0x00000026.json +++ b/tests/data/devices/sengled-e21-n1ea-0x00000026.json @@ -414,352 +414,292 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 154, - "max_mireds": 500 - }, - "state": { - "class_name": "MinTransitionLight", - "available": true, - "on": false, - "brightness": 86, - "xy_color": [ - 0.20799572747386894, - 0.21699855039291982 - ], - "color_temp": 500, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 86, + "xy_color": [ + 0.20799572747386894, + 0.21699855039291982 + ], + "color_temp": 500, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 154, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 154, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 154, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.2, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.2, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.5788, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.5788, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000026", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000026", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sengled-z01-a19nae26-0x00000020.json b/tests/data/devices/sengled-z01-a19nae26-0x00000020.json index f9dd33b8f..680dcbba2 100644 --- a/tests/data/devices/sengled-z01-a19nae26-0x00000020.json +++ b/tests/data/devices/sengled-z01-a19nae26-0x00000020.json @@ -390,286 +390,236 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 370 - }, - "state": { - "class_name": "MinTransitionLight", - "available": true, - "on": false, - "brightness": 252, - "xy_color": null, - "color_temp": 370, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 252, + "xy_color": null, + "color_temp": 370, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 370 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 9.9, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 9.9, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0996, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0996, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000020", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000020", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sercomm-corp-sz-esw01-au.json b/tests/data/devices/sercomm-corp-sz-esw01-au.json index 831759844..b009b303d 100644 --- a/tests/data/devices/sercomm-corp-sz-esw01-au.json +++ b/tests/data/devices/sercomm-corp-sz-esw01-au.json @@ -553,418 +553,350 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 286000, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 286000, + "suggested_display_precision": 1, + "unit": "W", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 20571987.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20571987.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.256, - "measurement_type": "PHASE_A_MEASUREMENT", - "active_power_max": -4194.304 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.256, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": -4194.304, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 50.0, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 50.0, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 1, - "measurement_type": "PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.079, - "measurement_type": "PHASE_A_MEASUREMENT", - "rms_current_max": 32.768 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.079, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": 32.768, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 236.024, - "measurement_type": "PHASE_A_MEASUREMENT", - "rms_voltage_max": 524.28 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 236.024, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "PHASE_A_MEASUREMENT", + "max_value": 524.28, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/shelly-1pm.json b/tests/data/devices/shelly-1pm.json index 1daca3a25..ebe3da7c2 100644 --- a/tests/data/devices/shelly-1pm.json +++ b/tests/data/devices/shelly-1pm.json @@ -595,324 +595,276 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 58 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 58, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 1.443, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.443, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummationReceived", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.02, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 60.02, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 122.82, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 122.82, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ] }, diff --git a/tests/data/devices/shelly-2pm.json b/tests/data/devices/shelly-2pm.json index 0262d4204..cac4ec85c 100644 --- a/tests/data/devices/shelly-2pm.json +++ b/tests/data/devices/shelly-2pm.json @@ -244,154 +244,128 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shutter", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": null, - "current_tilt_position": null, - "state": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 240 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shutter", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": null, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 240 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 68 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 68, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -83 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -83, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Shutter" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Shutter", + "suggested_display_precision": null, + "unit": null } ] }, diff --git a/tests/data/devices/shelly-dimmer.json b/tests/data/devices/shelly-dimmer.json index e57e08e6c..698d7aebd 100644 --- a/tests/data/devices/shelly-dimmer.json +++ b/tests/data/devices/shelly-dimmer.json @@ -613,410 +613,344 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 140 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 140, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -65 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -65, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.110942, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.110942, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 229.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 229.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ] }, diff --git a/tests/data/devices/shelly-ecowitt-ws90.json b/tests/data/devices/shelly-ecowitt-ws90.json index c165908a6..f05a66c8a 100644 --- a/tests/data/devices/shelly-ecowitt-ws90.json +++ b/tests/data/devices/shelly-ecowitt-ws90.json @@ -210,407 +210,338 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Rain detected", - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-rain_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "rain_detected", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "rain_status" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Rain detected", + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-rain_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "rain_detected", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "rain_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 64 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 64, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -95 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -95, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.2 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "hPa" - }, - "state": { - "class_name": "Pressure", - "available": true, - "state": 990 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 990, + "suggested_display_precision": 0, + "unit": "hPa" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 60.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 60.0, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": "Gust speed", - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-gust_speed", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "gust_speed", - "translation_placeholders": null, - "device_class": "wind_speed", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m/s" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Gust speed", + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-gust_speed", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "gust_speed", + "translation_placeholders": null, + "device_class": "wind_speed", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m/s" }, { - "info_object": { - "fallback_name": "Precipitation", - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-precipitation", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "precipitation", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "mm" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Precipitation", + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-precipitation", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "precipitation", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "mm" }, { - "info_object": { - "fallback_name": "UV index", - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-uv_index", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "uv_index", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "UV index", + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-uv_index", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "uv_index", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Wind direction", - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-wind_direction", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "wind_direction", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Wind direction", + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-wind_direction", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "wind_direction", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0" }, { - "info_object": { - "fallback_name": "Wind speed", - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-wind_speed", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "wind_speed", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m/s" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Wind speed", + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-wind_speed", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "wind_speed", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m/s" } ] }, diff --git a/tests/data/devices/shelly-mini1pm.json b/tests/data/devices/shelly-mini1pm.json index f63d376af..81f57cae0 100644 --- a/tests/data/devices/shelly-mini1pm.json +++ b/tests/data/devices/shelly-mini1pm.json @@ -504,324 +504,276 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 153 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 153, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.970439, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.970439, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummationReceived", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 2.2, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2.2, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 49.96, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 49.96, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.01, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.01, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 230.95, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 230.95, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ] }, diff --git a/tests/data/devices/shyugj-dimmer-switch-zb3-0.json b/tests/data/devices/shyugj-dimmer-switch-zb3-0.json index d010fbd53..0227c6c87 100644 --- a/tests/data/devices/shyugj-dimmer-switch-zb3-0.json +++ b/tests/data/devices/shyugj-dimmer-switch-zb3-0.json @@ -267,213 +267,175 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:59:bd:59-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:59:bd:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:59:bd:59-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:59:bd:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:59:bd:59-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:43:59:bd:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 246, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:59:bd:59-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:59:bd:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 246, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:59:bd:59-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:59:bd:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 184 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:59:bd:59-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:59:bd:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 184, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:59:bd:59-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:59:bd:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:59:bd:59-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:59:bd:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:59:bd:59-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:59:bd:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:59:bd:59-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:59:bd:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:59:bd:59-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:59:bd:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:59:bd:59-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:59:bd:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lca001-0x01002802.json b/tests/data/devices/signify-netherlands-b-v-lca001-0x01002802.json index 852bd2ebf..136a76317 100644 --- a/tests/data/devices/signify-netherlands-b-v-lca001-0x01002802.json +++ b/tests/data/devices/signify-netherlands-b-v-lca001-0x01002802.json @@ -353,286 +353,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.3690699626153964, - 0.3718776226443885 - ], - "color_temp": 230, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.3690699626153964, + 0.3718776226443885 + ], + "color_temp": 230, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 366 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 366, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 64 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 64, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01002802", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01002802", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lca005-0x01002402.json b/tests/data/devices/signify-netherlands-b-v-lca005-0x01002402.json index aabe10692..a0d73e9f1 100644 --- a/tests/data/devices/signify-netherlands-b-v-lca005-0x01002402.json +++ b/tests/data/devices/signify-netherlands-b-v-lca005-0x01002402.json @@ -334,286 +334,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.37265583276112, - 0.37425803006027314 - ], - "color_temp": 239, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.37265583276112, + 0.37425803006027314 + ], + "color_temp": 239, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 239 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 239, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01002402", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01002402", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lca007-0x01001f0a.json b/tests/data/devices/signify-netherlands-b-v-lca007-0x01001f0a.json index 461abd49b..6848f194c 100644 --- a/tests/data/devices/signify-netherlands-b-v-lca007-0x01001f0a.json +++ b/tests/data/devices/signify-netherlands-b-v-lca007-0x01001f0a.json @@ -322,286 +322,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.45726710917830166, - 0.40999465934233614 - ], - "color_temp": 366, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.45726710917830166, + 0.40999465934233614 + ], + "color_temp": 366, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 366 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 366, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01001f0a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01001f0a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lcb001-0x01002800.json b/tests/data/devices/signify-netherlands-b-v-lcb001-0x01002800.json index 1c5794f6c..ae3fb5656 100644 --- a/tests/data/devices/signify-netherlands-b-v-lcb001-0x01002800.json +++ b/tests/data/devices/signify-netherlands-b-v-lcb001-0x01002800.json @@ -359,286 +359,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 1, - "xy_color": [ - 0.4233615625238422, - 0.39954222934309913 - ], - "color_temp": 312, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 1, + "xy_color": [ + 0.4233615625238422, + 0.39954222934309913 + ], + "color_temp": 312, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 366 - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 366, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01002800", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01002800", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lcb002-0x01001f0a.json b/tests/data/devices/signify-netherlands-b-v-lcb002-0x01001f0a.json index 316230002..7e6d7462a 100644 --- a/tests/data/devices/signify-netherlands-b-v-lcb002-0x01001f0a.json +++ b/tests/data/devices/signify-netherlands-b-v-lcb002-0x01001f0a.json @@ -322,286 +322,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.3454947737850004, - 0.3558098725871672 - ], - "color_temp": 200, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.3454947737850004, + 0.3558098725871672 + ], + "color_temp": 200, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 200 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 200, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01001f0a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01001f0a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lce001-0x01002404.json b/tests/data/devices/signify-netherlands-b-v-lce001-0x01002404.json index f6847bb9d..babbc626d 100644 --- a/tests/data/devices/signify-netherlands-b-v-lce001-0x01002404.json +++ b/tests/data/devices/signify-netherlands-b-v-lce001-0x01002404.json @@ -322,286 +322,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.4486915388723583, - 0.4077668421454185 - ], - "color_temp": 352, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.4486915388723583, + 0.4077668421454185 + ], + "color_temp": 352, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 367 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 367, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01002404", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01002404", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lcg006-0x01002502.json b/tests/data/devices/signify-netherlands-b-v-lcg006-0x01002502.json index 8f016d09d..351231307 100644 --- a/tests/data/devices/signify-netherlands-b-v-lcg006-0x01002502.json +++ b/tests/data/devices/signify-netherlands-b-v-lcg006-0x01002502.json @@ -322,286 +322,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 168, - "xy_color": [ - 0.4511482413977264, - 0.4084229800869764 - ], - "color_temp": 357, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 168, + "xy_color": [ + 0.4511482413977264, + 0.4084229800869764 + ], + "color_temp": 357, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 367 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 367, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 148 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 148, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -63 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": -63, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01002502", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01002502", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lcx004-0x01001802.json b/tests/data/devices/signify-netherlands-b-v-lcx004-0x01001802.json index 8ef82800e..60009d0fa 100644 --- a/tests/data/devices/signify-netherlands-b-v-lcx004-0x01001802.json +++ b/tests/data/devices/signify-netherlands-b-v-lcx004-0x01001802.json @@ -316,286 +316,237 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 74, - "xy_color": [ - 0.5266803997863737, - 0.41330586709391925 - ], - "color_temp": 500, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 74, + "xy_color": [ + 0.5266803997863737, + 0.41330586709391925 + ], + "color_temp": 500, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 366 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 366, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01001802", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01001802", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lta010-0x01002402.json b/tests/data/devices/signify-netherlands-b-v-lta010-0x01002402.json index c66213401..8f973d679 100644 --- a/tests/data/devices/signify-netherlands-b-v-lta010-0x01002402.json +++ b/tests/data/devices/signify-netherlands-b-v-lta010-0x01002402.json @@ -316,280 +316,232 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 454 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 1, - "xy_color": null, - "color_temp": 366, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 1, + "xy_color": null, + "color_temp": 366, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 454 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 366 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 366, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01002402", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01002402", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-ltb003-0x01001f0a.json b/tests/data/devices/signify-netherlands-b-v-ltb003-0x01001f0a.json index 19776c812..1f4d34cd9 100644 --- a/tests/data/devices/signify-netherlands-b-v-ltb003-0x01001f0a.json +++ b/tests/data/devices/signify-netherlands-b-v-ltb003-0x01001f0a.json @@ -322,280 +322,232 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 454 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": 200, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": 200, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 454 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 200 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 200, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01001f0a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01001f0a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lwa003-0x01001f0a.json b/tests/data/devices/signify-netherlands-b-v-lwa003-0x01001f0a.json index 447265bce..b00f1aa62 100644 --- a/tests/data/devices/signify-netherlands-b-v-lwa003-0x01001f0a.json +++ b/tests/data/devices/signify-netherlands-b-v-lwa003-0x01001f0a.json @@ -231,248 +231,205 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "HueLight", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x01001f0a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x01001f0a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm001-0x0000041a.json b/tests/data/devices/signify-netherlands-b-v-rdm001-0x0000041a.json index 8a383dd0f..9bcfbcd59 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm001-0x0000041a.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm001-0x0000041a.json @@ -189,161 +189,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:02:b6:79-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:02:b6:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:02:b6:79-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:02:b6:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:02:b6:79-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:02:b6:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:02:b6:79-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:02:b6:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:02:b6:79-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:02:b6:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:02:b6:79-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:02:b6:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:02:b6:79-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:02:b6:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:17:88:01:0b:02:b6:79-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:17:88:01:0b:02:b6:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:02:b6:79-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0b:02:b6:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000041a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0b:02:b6:79-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:02:b6:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000041a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b13.json b/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b13.json index 1d0b92f47..3d466a127 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b13.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b13.json @@ -207,161 +207,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:d9:30:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:d9:30:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:d9:30:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 141 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:d9:30:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 141, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:d9:30:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:d9:30:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:d9:30:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:05:d9:30:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:d9:30:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02003b13", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:d9:30:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x02003b13", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b19.json b/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b19.json index 1c23d5cfa..f959d7f08 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b19.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b19.json @@ -207,161 +207,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:13:48:33-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:13:48:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:13:48:33-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:13:48:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:13:48:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:13:48:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:13:48:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:13:48:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:13:48:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:13:48:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:13:48:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:13:48:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:13:48:33-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:13:48:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:17:88:01:0d:13:48:33-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:17:88:01:0d:13:48:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.7 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:13:48:33-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0d:13:48:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02003b19", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0d:13:48:33-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:13:48:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x02003b19", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm004-0x02004d23.json b/tests/data/devices/signify-netherlands-b-v-rdm004-0x02004d23.json index d2952f272..d0299b444 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm004-0x02004d23.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm004-0x02004d23.json @@ -202,161 +202,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 124 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 124, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -69 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -69, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 25.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 25.5 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02004d23", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x02004d23", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm004.json b/tests/data/devices/signify-netherlands-b-v-rdm004.json index 1d65ebede..60f823d1b 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm004.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm004.json @@ -188,161 +188,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm005-0x02005301.json b/tests/data/devices/signify-netherlands-b-v-rdm005-0x02005301.json index a6bc1ad80..b361e7d67 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm005-0x02005301.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm005-0x02005301.json @@ -214,161 +214,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:df:74:89-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:df:74:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:df:74:89-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:df:74:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:df:74:89-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:df:74:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 132 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:df:74:89-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:df:74:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 132, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:df:74:89-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:df:74:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -67 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:df:74:89-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:df:74:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -67, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:df:74:89-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:df:74:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:df:74:89-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:e5:df:74:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:df:74:89-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:df:74:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02005301", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:df:74:89-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:df:74:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x02005301", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02002d02.json b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02002d02.json index e9859fa39..b585f5318 100644 --- a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02002d02.json +++ b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02002d02.json @@ -207,161 +207,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:26:42:ec-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:26:42:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:26:42:ec-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:26:42:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:26:42:ec-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:26:42:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:26:42:ec-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:26:42:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:26:42:ec-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:26:42:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:26:42:ec-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:26:42:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:26:42:ec-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:26:42:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 95.5, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:17:88:01:0c:26:42:ec-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:17:88:01:0c:26:42:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 95.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:26:42:ec-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:26:42:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02002d02", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:26:42:ec-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:26:42:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x02002d02", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02004d27.json b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02004d27.json index c530ccc21..ed71066de 100644 --- a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02004d27.json +++ b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02004d27.json @@ -202,161 +202,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 184 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 184, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -54 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -54, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02004d27", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x02004d27", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json b/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json index 6ac8cd6d0..110762084 100644 --- a/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json +++ b/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json @@ -229,343 +229,289 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1030-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "HueV2MotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "enum": "HueV2MotionSensitivities", - "options": [ - "Lowest", - "Low", - "Medium", - "High", - "Highest" - ] - }, - "state": { - "class_name": "HueV2MotionSensitivity", - "available": true, - "state": "High" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1030-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "HueV2MotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_option": "High", + "enum": "HueV2MotionSensitivities", + "options": [ + "Lowest", + "Low", + "Medium", + "High", + "Highest" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 61 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 61, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 69.5, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 69.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.81 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 20.81, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-0-trigger_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "HueMotionTriggerIndicatorSwitch", - "translation_key": "trigger_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "trigger_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "HueMotionTriggerIndicatorSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-0-trigger_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "HueMotionTriggerIndicatorSwitch", + "translation_key": "trigger_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "trigger_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02003506", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": "0x02003506", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json b/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json index d39162798..1fe434cdc 100644 --- a/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json +++ b/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json @@ -229,343 +229,289 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-1030-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "HueV2MotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "enum": "HueV2MotionSensitivities", - "options": [ - "Lowest", - "Low", - "Medium", - "High", - "Highest" - ] - }, - "state": { - "class_name": "HueV2MotionSensitivity", - "available": true, - "state": "Lowest" - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-1030-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "HueV2MotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_option": "Lowest", + "enum": "HueV2MotionSensitivities", + "options": [ + "Lowest", + "Low", + "Medium", + "High", + "Highest" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 41 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 41, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 25.87 - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 25.87, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-0-trigger_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "HueMotionTriggerIndicatorSwitch", - "translation_key": "trigger_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "trigger_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "HueMotionTriggerIndicatorSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-0-trigger_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "HueMotionTriggerIndicatorSwitch", + "translation_key": "trigger_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "trigger_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02003506", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": "0x02003506", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sinope-technologies-va4220zb.json b/tests/data/devices/sinope-technologies-va4220zb.json index dd7b7d8b9..248c05c74 100644 --- a/tests/data/devices/sinope-technologies-va4220zb.json +++ b/tests/data/devices/sinope-technologies-va4220zb.json @@ -450,372 +450,310 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 29.1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 29.1, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1028", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Flow", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volume_flow_rate", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m\u00b3/h" - }, - "state": { - "class_name": "Flow", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1028", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Flow", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volume_flow_rate", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m\u00b3/h" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "l/h" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "device_type": "Water Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "l/h", + "device_type": "Water Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "L" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Water Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "L", + "device_type": "Water Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 7 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/smarthjemmet-dk-quad-zig-sw.json b/tests/data/devices/smarthjemmet-dk-quad-zig-sw.json index b2b6f7692..004552312 100644 --- a/tests/data/devices/smarthjemmet-dk-quad-zig-sw.json +++ b/tests/data/devices/smarthjemmet-dk-quad-zig-sw.json @@ -268,94 +268,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:6f:4f:77-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:6f:4f:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:6f:4f:77-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:6f:4f:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:6f:4f:77-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:6f:4f:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:6f:4f:77-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:6f:4f:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:6f:4f:77-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:6f:4f:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 28.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:6f:4f:77-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:35:6f:4f:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 28.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 } ] }, diff --git a/tests/data/devices/smarthjemmet-dk-quad-zig-sw2.json b/tests/data/devices/smarthjemmet-dk-quad-zig-sw2.json index 5e8f971be..88d0e396d 100644 --- a/tests/data/devices/smarthjemmet-dk-quad-zig-sw2.json +++ b/tests/data/devices/smarthjemmet-dk-quad-zig-sw2.json @@ -387,231 +387,192 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-2-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-2-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-3-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 3, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-3-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-4-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 4, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-4-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-5-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 5, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-5-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 5, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.4 } ] }, diff --git a/tests/data/devices/smartthings-multiv4-0x0000001b.json b/tests/data/devices/smartthings-multiv4-0x0000001b.json index e11c66394..b788b5465 100644 --- a/tests/data/devices/smartthings-multiv4-0x0000001b.json +++ b/tests/data/devices/smartthings-multiv4-0x0000001b.json @@ -238,272 +238,228 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-64514", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Accelerometer", - "translation_key": "accelerometer", - "translation_placeholders": null, - "device_class": "moving", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "acceleration" - }, - "state": { - "class_name": "Accelerometer", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-64514", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Accelerometer", + "translation_key": "accelerometer", + "translation_placeholders": null, + "device_class": "moving", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "acceleration" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_voltage": 2.4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.4 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 23.52 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 23.52, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/smartthings-tagv4-0x00000019.json b/tests/data/devices/smartthings-tagv4-0x00000019.json index bc4529e23..fa7c4529c 100644 --- a/tests/data/devices/smartthings-tagv4-0x00000019.json +++ b/tests/data/devices/smartthings-tagv4-0x00000019.json @@ -179,219 +179,185 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "24:fd:5b:00:01:01:4f:5d-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "24:fd:5b:00:01:01:4f:5d-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "24:fd:5b:00:01:01:4f:5d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "24:fd:5b:00:01:01:4f:5d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "device_tracker": [ { - "info_object": { - "fallback_name": "Device scanner", - "unique_id": "24:fd:5b:00:01:01:4f:5d-1", - "migrate_unique_ids": [], - "platform": "device_tracker", - "class_name": "DeviceScannerEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "DeviceScannerEntity", - "available": true, - "connected": true, - "battery_level": 69.0 - } + "fallback_name": "Device scanner", + "unique_id": "24:fd:5b:00:01:01:4f:5d-1", + "migrate_unique_ids": [], + "platform": "device_tracker", + "class_name": "DeviceScannerEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "connected": true, + "battery_level": 69.0 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "24:fd:5b:00:01:01:4f:5d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "24:fd:5b:00:01:01:4f:5d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "24:fd:5b:00:01:01:4f:5d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "24:fd:5b:00:01:01:4f:5d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "24:fd:5b:00:01:01:4f:5d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 69.0, - "battery_voltage": 2.4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "24:fd:5b:00:01:01:4f:5d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 69.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.4 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "24:fd:5b:00:01:01:4f:5d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000019", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "24:fd:5b:00:01:01:4f:5d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000019", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/smartwings-wm25-l-z-0x00000002.json b/tests/data/devices/smartwings-wm25-l-z-0x00000002.json index 178729f0e..a1435a031 100644 --- a/tests/data/devices/smartwings-wm25-l-z-0x00000002.json +++ b/tests/data/devices/smartwings-wm25-l-z-0x00000002.json @@ -300,257 +300,217 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/somfy-situo-4-zigbee-0x00011a00.json b/tests/data/devices/somfy-situo-4-zigbee-0x00011a00.json index cb6873594..36e0b529e 100644 --- a/tests/data/devices/somfy-situo-4-zigbee-0x00011a00.json +++ b/tests/data/devices/somfy-situo-4-zigbee-0x00011a00.json @@ -431,270 +431,227 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-2-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-2-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-3-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 3, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-3-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-4-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 4, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-4-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-232-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 232, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 77.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-232-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 232, + "available": true, + "group_id": null, + "native_value": 77.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-232-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 232, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00011a00", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-232-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 232, + "available": true, + "group_id": null, + "installed_version": "0x00011a00", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/somfy-sonesse-28-wf-li-ion-roller-0x4100e158.json b/tests/data/devices/somfy-sonesse-28-wf-li-ion-roller-0x4100e158.json index 7b96dc427..9e8a8cd88 100644 --- a/tests/data/devices/somfy-sonesse-28-wf-li-ion-roller-0x4100e158.json +++ b/tests/data/devices/somfy-sonesse-28-wf-li-ion-roller-0x4100e158.json @@ -287,256 +287,217 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 34, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 34, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 176 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 176, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -56 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -56, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-232-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 232, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 20.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-232-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 232, + "available": true, + "group_id": null, + "native_value": 20.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-232-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 232, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x4100e158", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-232-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 232, + "available": true, + "group_id": null, + "installed_version": "0x4100e158", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/somfy-ysia-5-hp-zigbee-0x00e00041.json b/tests/data/devices/somfy-ysia-5-hp-zigbee-0x00e00041.json index fd9c5d086..90d04914c 100644 --- a/tests/data/devices/somfy-ysia-5-hp-zigbee-0x00e00041.json +++ b/tests/data/devices/somfy-ysia-5-hp-zigbee-0x00e00041.json @@ -658,297 +658,249 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-2-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-2-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-3-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 3, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-3-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-4-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 4, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-4-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-5-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 5, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-5-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 5, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-232-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 232, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 92.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-232-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 232, + "available": true, + "group_id": null, + "native_value": 92.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-232-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 232, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00e00041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-232-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 232, + "available": true, + "group_id": null, + "installed_version": "0x00e00041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-01minizb.json b/tests/data/devices/sonoff-01minizb.json index 28bda0e60..1e379b923 100644 --- a/tests/data/devices/sonoff-01minizb.json +++ b/tests/data/devices/sonoff-01minizb.json @@ -169,179 +169,146 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:26:b7:de:4f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:26:b7:de:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:12:4b:00:26:b7:de:4f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:26:b7:de:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:26:b7:de:4f-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:12:4b:00:26:b7:de:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "00:12:4b:00:26:b7:de:4f-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:26:b7:de:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:26:b7:de:4f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:26:b7:de:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:26:b7:de:4f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:26:b7:de:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:26:b7:de:4f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:26:b7:de:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:26:b7:de:4f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:26:b7:de:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:26:b7:de:4f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:26:b7:de:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:26:b7:de:4f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:26:b7:de:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-basiczbr3.json b/tests/data/devices/sonoff-basiczbr3.json index 3604ad0cf..9b6984222 100644 --- a/tests/data/devices/sonoff-basiczbr3.json +++ b/tests/data/devices/sonoff-basiczbr3.json @@ -140,144 +140,116 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:ca:86:ba-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:ca:86:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:ca:86:ba-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:ca:86:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:ca:86:ba-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:93:ca:86:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:ca:86:ba-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:ca:86:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:ca:86:ba-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:ca:86:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 172 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:ca:86:ba-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:ca:86:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 172, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:ca:86:ba-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:ca:86:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -68 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:ca:86:ba-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:ca:86:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -68, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/sonoff-dongle-e-r.json b/tests/data/devices/sonoff-dongle-e-r.json index a3a6e4fed..ab9c08955 100644 --- a/tests/data/devices/sonoff-dongle-e-r.json +++ b/tests/data/devices/sonoff-dongle-e-r.json @@ -386,360 +386,294 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 51, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 51, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 65279 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 51, - "xy_color": null, - "color_temp": 17476, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": 51, + "xy_color": null, + "color_temp": 17476, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 65279 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 51 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 51, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-2-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65279, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 17476 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-2-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 17476, + "mode": "auto", + "native_max_value": 65279, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-2-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 51 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-2-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 51, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-2-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 2, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-2-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 212 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 212, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -47 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -47, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/sonoff-mini-zbdim-0x00001005.json b/tests/data/devices/sonoff-mini-zbdim-0x00001005.json index c9f6bcd3c..998cdc918 100644 --- a/tests/data/devices/sonoff-mini-zbdim-0x00001005.json +++ b/tests/data/devices/sonoff-mini-zbdim-0x00001005.json @@ -514,314 +514,264 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 0, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 0, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 240 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 240, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -40 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -40, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001005", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001005", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-mini-zbrbs-0x00001005.json b/tests/data/devices/sonoff-mini-zbrbs-0x00001005.json index 5e3b3e107..bca198f66 100644 --- a/tests/data/devices/sonoff-mini-zbrbs-0x00001005.json +++ b/tests/data/devices/sonoff-mini-zbrbs-0x00001005.json @@ -280,339 +280,283 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} }, { - "info_object": { - "fallback_name": "Configure cover limits", - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-limits_calibration", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "configure_limits", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "limits_calibration", - "attribute_value": 2 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Configure cover limits", + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-limits_calibration", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "configure_limits", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "limits_calibration", + "attribute_value": 2 } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "select": [ { - "info_object": { - "fallback_name": "External trigger mode", - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-external_trigger_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "external_trigger_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SonoffExternalSwitchTriggerType", - "options": [ - "edge trigger", - "pulse trigger" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "External trigger mode", + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-external_trigger_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "external_trigger_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "SonoffExternalSwitchTriggerType", + "options": [ + "edge trigger", + "pulse trigger" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 184 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 184, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -54 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -54, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Calibrated", - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-cover_calibrated", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "calibrated", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Calibrated", + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-cover_calibrated", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "calibrated", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Motor state", - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-motor_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "motor_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Motor state", + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-motor_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "motor_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001005", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001005", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-s26r2zb-0x00002000.json b/tests/data/devices/sonoff-s26r2zb-0x00002000.json index 31d419c53..97ee99f50 100644 --- a/tests/data/devices/sonoff-s26r2zb-0x00002000.json +++ b/tests/data/devices/sonoff-s26r2zb-0x00002000.json @@ -207,155 +207,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 128 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 128, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -79 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -79, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00002000", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00002000", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-s31-lite-zb.json b/tests/data/devices/sonoff-s31-lite-zb.json index 220fe62a3..b636c97ec 100644 --- a/tests/data/devices/sonoff-s31-lite-zb.json +++ b/tests/data/devices/sonoff-s31-lite-zb.json @@ -140,120 +140,100 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:24:56:cb:dc-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:24:56:cb:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:12:4b:00:24:56:cb:dc-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:24:56:cb:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:24:56:cb:dc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:24:56:cb:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:24:56:cb:dc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:24:56:cb:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:24:56:cb:dc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:24:56:cb:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:24:56:cb:dc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:24:56:cb:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:24:56:cb:dc-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:12:4b:00:24:56:cb:dc", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "00:12:4b:00:24:56:cb:dc-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:24:56:cb:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ] }, diff --git a/tests/data/devices/sonoff-s60zbtpg-0x00001002.json b/tests/data/devices/sonoff-s60zbtpg-0x00001002.json index eb76bc0e5..c363e17b1 100644 --- a/tests/data/devices/sonoff-s60zbtpg-0x00001002.json +++ b/tests/data/devices/sonoff-s60zbtpg-0x00001002.json @@ -520,325 +520,277 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 54 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 54, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.07, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.07, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 11.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 11.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.08, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.08, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 239.03, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 239.03, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-snzb-01m-0x00001005.json b/tests/data/devices/sonoff-snzb-01m-0x00001005.json index 0163a8fa7..9e48d1354 100644 --- a/tests/data/devices/sonoff-snzb-01m-0x00001005.json +++ b/tests/data/devices/sonoff-snzb-01m-0x00001005.json @@ -302,160 +302,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:6d:54:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:6d:54:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 54 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 54, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:6d:54:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:6d:54:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:6d:54:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001005", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001005", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-snzb-02d-0x00002300.json b/tests/data/devices/sonoff-snzb-02d-0x00002300.json index d5b4a219a..dea5afa71 100644 --- a/tests/data/devices/sonoff-snzb-02d-0x00002300.json +++ b/tests/data/devices/sonoff-snzb-02d-0x00002300.json @@ -211,437 +211,369 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": "Comfort humidity max", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_humidity_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_humidity_max", - "translation_placeholders": null, - "device_class": "humidity", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 95, - "native_min_value": 5, - "native_step": 0.1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Comfort humidity max", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_humidity_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_humidity_max", + "translation_placeholders": null, + "device_class": "humidity", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 95, + "native_min_value": 5, + "native_step": 0.1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Comfort humidity min", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_humidity_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_humidity_min", - "translation_placeholders": null, - "device_class": "humidity", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 95, - "native_min_value": 5, - "native_step": 0.1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Comfort humidity min", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_humidity_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_humidity_min", + "translation_placeholders": null, + "device_class": "humidity", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 95, + "native_min_value": 5, + "native_step": 0.1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Comfort temperature max", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_temperature_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature_max", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -10, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Comfort temperature max", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_temperature_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature_max", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -10, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Comfort temperature min", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_temperature_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature_min", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -10, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Comfort temperature min", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_temperature_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature_min", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -10, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Humidity offset", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-humidity_offset", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_offset", - "translation_placeholders": null, - "device_class": "humidity", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 50, - "native_min_value": -50, - "native_step": 0.1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Humidity offset", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-humidity_offset", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_offset", + "translation_placeholders": null, + "device_class": "humidity", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": -50, + "native_step": 0.1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Temperature offset", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-temperature_offset", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_offset", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 50, - "native_min_value": -50, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Temperature offset", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-temperature_offset", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_offset", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": -50, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-temperature_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TemperatureUnit", - "options": [ - "Celsius", - "Fahrenheit" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Fahrenheit" - } + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-temperature_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Fahrenheit", + "enum": "TemperatureUnit", + "options": [ + "Celsius", + "Fahrenheit" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 204 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 204, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 63.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 63.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 53.3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 53.3, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00002300", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00002300", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-snzb-04pr2-0x00001001.json b/tests/data/devices/sonoff-snzb-04pr2-0x00001001.json index 6a287bb06..ce33844ff 100644 --- a/tests/data/devices/sonoff-snzb-04pr2-0x00001001.json +++ b/tests/data/devices/sonoff-snzb-04pr2-0x00001001.json @@ -188,189 +188,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 42 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 42, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-snzb-05p-0x00001002.json b/tests/data/devices/sonoff-snzb-05p-0x00001002.json index 25d23ced3..e090d845e 100644 --- a/tests/data/devices/sonoff-snzb-05p-0x00001002.json +++ b/tests/data/devices/sonoff-snzb-05p-0x00001002.json @@ -212,190 +212,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:94:50:f5:8b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:50:f5:8b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:50:f5:8b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:50:f5:8b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:50:f5:8b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 212 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:50:f5:8b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 212, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:50:f5:8b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -58 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:50:f5:8b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -58, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:50:f5:8b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:94:50:f5:8b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:50:f5:8b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:50:f5:8b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-snzb-06p-0x00001006.json b/tests/data/devices/sonoff-snzb-06p-0x00001006.json index e676d5c5d..473b39351 100644 --- a/tests/data/devices/sonoff-snzb-06p-0x00001006.json +++ b/tests/data/devices/sonoff-snzb-06p-0x00001006.json @@ -167,251 +167,211 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-1030-presence_detection_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "SonoffPresenceSenorTimeout", - "translation_key": "presence_detection_timeout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 60, - "native_min_value": 15, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "SonoffPresenceSenorTimeout", - "available": true, - "state": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-1030-presence_detection_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "SonoffPresenceSenorTimeout", + "translation_key": "presence_detection_timeout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 15, + "mode": "box", + "native_max_value": 60, + "native_min_value": 15, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-1030-detection_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "SonoffPresenceDetectionSensitivity", - "translation_key": "detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SonoffPresenceDetectionSensitivityEnum", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "SonoffPresenceDetectionSensitivity", - "available": true, - "state": "Low" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-1030-detection_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "SonoffPresenceDetectionSensitivity", + "translation_key": "detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Low", + "enum": "SonoffPresenceDetectionSensitivityEnum", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 240 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 240, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -51 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -51, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-64529-last_illumination", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SonoffPresenceSenorIlluminationStatus", - "translation_key": "last_illumination_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SonoffPresenceSenorIlluminationStatus", - "available": true, - "state": "Light" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-64529-last_illumination", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SonoffPresenceSenorIlluminationStatus", + "translation_key": "last_illumination_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Light", + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-swv-0x00001002.json b/tests/data/devices/sonoff-swv-0x00001002.json index 511e1b945..a625f265a 100644 --- a/tests/data/devices/sonoff-swv-0x00001002.json +++ b/tests/data/devices/sonoff-swv-0x00001002.json @@ -426,305 +426,256 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Water leak", - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_leak_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "water_leak", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "water_valve_state" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Water leak", + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_leak_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "water_leak", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "water_valve_state" }, { - "info_object": { - "fallback_name": "Water supply", - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_supply_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "water_supply", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "water_valve_state" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Water supply", + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_supply_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "water_supply", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "water_valve_state" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 6.3 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 6.3 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1028", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Flow", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volume_flow_rate", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m\u00b3/h" - }, - "state": { - "class_name": "Flow", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1028", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Flow", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volume_flow_rate", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "m\u00b3/h" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": "Water shortage auto-close", - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-auto_close_water_shortage", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "water_shortage_auto_close", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "auto_close_water_shortage", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 30 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Water shortage auto-close", + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-auto_close_water_shortage", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "water_shortage_auto_close", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "auto_close_water_shortage", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 30 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-swv-0x00001003.json b/tests/data/devices/sonoff-swv-0x00001003.json index 624ff8f8d..925cfd334 100644 --- a/tests/data/devices/sonoff-swv-0x00001003.json +++ b/tests/data/devices/sonoff-swv-0x00001003.json @@ -191,305 +191,256 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Water leak", - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_leak_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "water_leak", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "water_valve_state" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Water leak", + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_leak_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "water_leak", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "water_valve_state" }, { - "info_object": { - "fallback_name": "Water supply", - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_supply_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "water_supply", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "water_valve_state" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Water supply", + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_supply_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "water_supply", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "water_valve_state" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 144 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 144, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 6.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 6.2 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1028", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Flow", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volume_flow_rate", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m\u00b3/h" - }, - "state": { - "class_name": "Flow", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1028", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Flow", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volume_flow_rate", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m\u00b3/h" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": "Water shortage auto-close", - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-auto_close_water_shortage", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "water_shortage_auto_close", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "auto_close_water_shortage", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 30 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Water shortage auto-close", + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-auto_close_water_shortage", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "water_shortage_auto_close", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "auto_close_water_shortage", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 30 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001003", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001003", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-trvzb-0x00001201.json b/tests/data/devices/sonoff-trvzb-0x00001201.json index d008d507e..d0597f813 100644 --- a/tests/data/devices/sonoff-trvzb-0x00001201.json +++ b/tests/data/devices/sonoff-trvzb-0x00001201.json @@ -373,801 +373,668 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} }, { - "info_object": { - "fallback_name": "Boost mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-boost_mode", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "boost_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "temporary_mode", - "attribute_value": 0 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Boost mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-boost_mode", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "boost_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "temporary_mode", + "attribute_value": 0 }, { - "info_object": { - "fallback_name": "Timer mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "timer_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "temporary_mode", - "attribute_value": 1 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Timer mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "timer_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "temporary_mode", + "attribute_value": 1 } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 35.0, - "min_temp": 4.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 18.6, - "outdoor_temperature": null, - "target_temperature": 19.5, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1950, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 18.6, + "outdoor_temperature": null, + "target_temperature": 19.5, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 35.0, + "min_temp": 4.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1950, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "SonoffThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 12.7, - "native_min_value": -12.8, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "SonoffThermostatLocalTempCalibration", - "available": true, - "state": 1.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "SonoffThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.0, + "mode": "box", + "native_max_value": 12.7, + "native_min_value": -12.8, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 35.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.0, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 4.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4.0, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "External temperature sensor value", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_value", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "external_temperature_sensor_value", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 99.9, - "native_min_value": 0.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "External temperature sensor value", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_value", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "external_temperature_sensor_value", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 99.9, + "native_min_value": 0.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Frost protection temperature", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-frost_protection_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "frost_protection_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 10.0 - } + "fallback_name": "Frost protection temperature", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-frost_protection_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "frost_protection_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10.0, + "mode": "auto", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Temperature control accuracy", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temperature_control_accuracy", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_control_accuracy", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": -0.2, - "native_min_value": -1.0, - "native_step": 0.2, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Temperature control accuracy", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temperature_control_accuracy", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_control_accuracy", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": -0.2, + "native_min_value": -1.0, + "native_step": 0.2, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Temporary mode duration", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temporary_mode_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temporary_mode_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1440, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Temporary mode duration", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temporary_mode_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temporary_mode_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1440, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "min" }, { - "info_object": { - "fallback_name": "Timer mode target temperature", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode_target_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "timer_mode_target_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Timer mode target temperature", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode_target_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "timer_mode_target_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Valve closing degree", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_closing_degree", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_closing_degree", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Valve closing degree", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_closing_degree", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_closing_degree", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Valve opening degree", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_opening_degree", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_opening_degree", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Valve opening degree", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_opening_degree", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_opening_degree", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "heating" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "heating", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "External temperature sensor", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "external_temperature_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "external_temperature_sensor_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "External temperature sensor", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "external_temperature_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "external_temperature_sensor_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Open window", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-open_window", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "open_window", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "open_window", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Open window", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-open_window", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "open_window", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "open_window", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Adaptive mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-smart_temperature_control", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "adaptive_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "smart_temperature_control", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 2 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Adaptive mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-smart_temperature_control", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "adaptive_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "smart_temperature_control", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 2 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001201", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001201", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-trvzb-0x00001400.json b/tests/data/devices/sonoff-trvzb-0x00001400.json index 3192c3aa7..cd67b43b2 100644 --- a/tests/data/devices/sonoff-trvzb-0x00001400.json +++ b/tests/data/devices/sonoff-trvzb-0x00001400.json @@ -421,801 +421,668 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} }, { - "info_object": { - "fallback_name": "Boost mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-boost_mode", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "boost_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "temporary_mode", - "attribute_value": 0 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Boost mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-boost_mode", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "boost_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "temporary_mode", + "attribute_value": 0 }, { - "info_object": { - "fallback_name": "Timer mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "timer_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "temporary_mode", - "attribute_value": 1 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Timer mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "timer_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "temporary_mode", + "attribute_value": 1 } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 35.0, - "min_temp": 4.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 18.0, - "outdoor_temperature": null, - "target_temperature": 23.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2300, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 18.0, + "outdoor_temperature": null, + "target_temperature": 23.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 35.0, + "min_temp": 4.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2300, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "SonoffThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 12.7, - "native_min_value": -12.8, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "SonoffThermostatLocalTempCalibration", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "SonoffThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "box", + "native_max_value": 12.7, + "native_min_value": -12.8, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 35.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.0, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 4.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4.0, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "External temperature sensor value", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_value", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "external_temperature_sensor_value", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 99.9, - "native_min_value": 0.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 19.900000000000002 - } + "fallback_name": "External temperature sensor value", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_value", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "external_temperature_sensor_value", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 19.900000000000002, + "mode": "auto", + "native_max_value": 99.9, + "native_min_value": 0.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Frost protection temperature", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-frost_protection_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "frost_protection_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 7.0 - } + "fallback_name": "Frost protection temperature", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-frost_protection_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "frost_protection_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 7.0, + "mode": "auto", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Temperature control accuracy", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temperature_control_accuracy", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_control_accuracy", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": -0.2, - "native_min_value": -1.0, - "native_step": 0.2, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": -1.0 - } + "fallback_name": "Temperature control accuracy", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temperature_control_accuracy", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_control_accuracy", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -1.0, + "mode": "auto", + "native_max_value": -0.2, + "native_min_value": -1.0, + "native_step": 0.2, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Temporary mode duration", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temporary_mode_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temporary_mode_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1440, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Temporary mode duration", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temporary_mode_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temporary_mode_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1440, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "min" }, { - "info_object": { - "fallback_name": "Timer mode target temperature", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode_target_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "timer_mode_target_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Timer mode target temperature", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode_target_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "timer_mode_target_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Valve closing degree", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_closing_degree", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_closing_degree", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 100 - } + "fallback_name": "Valve closing degree", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_closing_degree", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_closing_degree", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Valve opening degree", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_opening_degree", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_opening_degree", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 100 - } + "fallback_name": "Valve opening degree", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_opening_degree", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_opening_degree", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 60, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 87.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 87.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "External temperature sensor", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "external_temperature_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "external_temperature_sensor_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "External temperature sensor", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "external_temperature_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "external_temperature_sensor_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Open window", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-open_window", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "open_window", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "open_window", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Open window", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-open_window", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "open_window", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "open_window", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Adaptive mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-smart_temperature_control", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "adaptive_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "smart_temperature_control", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 2 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Adaptive mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-smart_temperature_control", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "adaptive_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "smart_temperature_control", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 2 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001400", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001400", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-trvzb-0x00001401.json b/tests/data/devices/sonoff-trvzb-0x00001401.json index ad8e1f688..27c4130cf 100644 --- a/tests/data/devices/sonoff-trvzb-0x00001401.json +++ b/tests/data/devices/sonoff-trvzb-0x00001401.json @@ -415,801 +415,668 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} }, { - "info_object": { - "fallback_name": "Boost mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-boost_mode", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "boost_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "temporary_mode", - "attribute_value": 0 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Boost mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-boost_mode", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "boost_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "temporary_mode", + "attribute_value": 0 }, { - "info_object": { - "fallback_name": "Timer mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "timer_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "temporary_mode", - "attribute_value": 1 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Timer mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "timer_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "temporary_mode", + "attribute_value": 1 } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 35.0, - "min_temp": 4.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 32.4, - "outdoor_temperature": null, - "target_temperature": 15.5, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": 2600, - "occupied_heating_setpoint": 1550, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 32.4, + "outdoor_temperature": null, + "target_temperature": 15.5, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 35.0, + "min_temp": 4.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": 2600, + "occupied_heating_setpoint": 1550, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "SonoffThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 12.7, - "native_min_value": -12.8, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "SonoffThermostatLocalTempCalibration", - "available": true, - "state": 12.600000000000001 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "SonoffThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 12.600000000000001, + "mode": "box", + "native_max_value": 12.7, + "native_min_value": -12.8, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 35.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.0, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 4.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4.0, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "External temperature sensor value", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_value", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "external_temperature_sensor_value", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 99.9, - "native_min_value": 0.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 34.7 - } + "fallback_name": "External temperature sensor value", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_value", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "external_temperature_sensor_value", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 34.7, + "mode": "auto", + "native_max_value": 99.9, + "native_min_value": 0.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Frost protection temperature", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-frost_protection_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "frost_protection_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 7.0 - } + "fallback_name": "Frost protection temperature", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-frost_protection_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "frost_protection_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 7.0, + "mode": "auto", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Temperature control accuracy", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temperature_control_accuracy", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_control_accuracy", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": -0.2, - "native_min_value": -1.0, - "native_step": 0.2, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": -1.0 - } + "fallback_name": "Temperature control accuracy", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temperature_control_accuracy", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_control_accuracy", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -1.0, + "mode": "auto", + "native_max_value": -0.2, + "native_min_value": -1.0, + "native_step": 0.2, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Temporary mode duration", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temporary_mode_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temporary_mode_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1440, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Temporary mode duration", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temporary_mode_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temporary_mode_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1440, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "min" }, { - "info_object": { - "fallback_name": "Timer mode target temperature", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode_target_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "timer_mode_target_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Timer mode target temperature", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode_target_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "timer_mode_target_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Valve closing degree", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_closing_degree", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_closing_degree", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 100 - } + "fallback_name": "Valve closing degree", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_closing_degree", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_closing_degree", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Valve opening degree", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_opening_degree", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_opening_degree", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Valve opening degree", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_opening_degree", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_opening_degree", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 108 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 108, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -73 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -73, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "External temperature sensor", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "external_temperature_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "external_temperature_sensor_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "External temperature sensor", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "external_temperature_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "external_temperature_sensor_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Open window", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-open_window", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "open_window", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "open_window", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Open window", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-open_window", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "open_window", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "open_window", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Adaptive mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-smart_temperature_control", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "adaptive_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "smart_temperature_control", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 2 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Adaptive mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-smart_temperature_control", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "adaptive_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "smart_temperature_control", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 2 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001401", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001401", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-zbmicro-0x00001005.json b/tests/data/devices/sonoff-zbmicro-0x00001005.json index 024eca25c..6e2dff590 100644 --- a/tests/data/devices/sonoff-zbmicro-0x00001005.json +++ b/tests/data/devices/sonoff-zbmicro-0x00001005.json @@ -176,190 +176,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "8c:65:a3:ff:fe:54:87:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:65:a3:ff:fe:54:87:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "8c:65:a3:ff:fe:54:87:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:65:a3:ff:fe:54:87:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "8c:65:a3:ff:fe:54:87:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:65:a3:ff:fe:54:87:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "8c:65:a3:ff:fe:54:87:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:65:a3:ff:fe:54:87:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "8c:65:a3:ff:fe:54:87:a0-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "8c:65:a3:ff:fe:54:87:a0", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "8c:65:a3:ff:fe:54:87:a0-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "8c:65:a3:ff:fe:54:87:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "8c:65:a3:ff:fe:54:87:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001005", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:65:a3:ff:fe:54:87:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001005", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-zbminil2-0x0000100e.json b/tests/data/devices/sonoff-zbminil2-0x0000100e.json index db32f87ca..6848bc64f 100644 --- a/tests/data/devices/sonoff-zbminil2-0x0000100e.json +++ b/tests/data/devices/sonoff-zbminil2-0x0000100e.json @@ -184,223 +184,190 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Toggle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Toggle", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 168 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 168, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -58 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -58, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000100e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000100e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sonoff-zbminir2-0x00001004.json b/tests/data/devices/sonoff-zbminir2-0x00001004.json index b5c4b9dc9..2a0ba00ff 100644 --- a/tests/data/devices/sonoff-zbminir2-0x00001004.json +++ b/tests/data/devices/sonoff-zbminir2-0x00001004.json @@ -286,348 +286,293 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] }, { - "info_object": { - "fallback_name": "External trigger mode", - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-external_trigger_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "external_trigger_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SonoffExternalSwitchTriggerType", - "options": [ - "Edge trigger", - "Pulse trigger", - "Normally off follow trigger", - "Normally on follow trigger" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Edge trigger" - } + "fallback_name": "External trigger mode", + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-external_trigger_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "external_trigger_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Edge trigger", + "enum": "SonoffExternalSwitchTriggerType", + "options": [ + "Edge trigger", + "Pulse trigger", + "Normally off follow trigger", + "Normally on follow trigger" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 43 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 43, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": "Detach relay", - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-detach_relay", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "detach_relay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "detach_relay", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Detach relay", + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-detach_relay", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "detach_relay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "detach_relay", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Network LED", - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-network_led", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "network_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "network_led", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Network LED", + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-network_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "network_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "network_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Turbo mode", - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-turbo_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "turbo_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "turbo_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 9, - "on_value": 20 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Turbo mode", + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-turbo_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "turbo_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "turbo_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 9, + "on_value": 20 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00001004", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00001004", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sunricher-hk-dim-0x00000036.json b/tests/data/devices/sunricher-hk-dim-0x00000036.json index 62ceb22fb..252ac1cdb 100644 --- a/tests/data/devices/sunricher-hk-dim-0x00000036.json +++ b/tests/data/devices/sunricher-hk-dim-0x00000036.json @@ -662,456 +662,378 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "occupancy" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 70, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 70, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 70 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 70, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 115 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 115, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-2-1030-pir_o_to_u_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", - "translation_key": "pir_o_to_u_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", - "available": true, - "state": 150 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-2-1030-pir_o_to_u_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", + "translation_key": "pir_o_to_u_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 150, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-2-1030-pir_u_to_o_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "PIRUnoccupiedToOccupiedDelayConfigurationEntity", - "translation_key": "pir_u_to_o_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "PIRUnoccupiedToOccupiedDelayConfigurationEntity", - "available": true, - "state": 150 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-2-1030-pir_u_to_o_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "PIRUnoccupiedToOccupiedDelayConfigurationEntity", + "translation_key": "pir_u_to_o_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 150, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 232 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 232, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -53 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -53, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-3-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 393 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-3-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 393, + "suggested_display_precision": null, + "unit": "lx" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000036", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000036", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sunricher-hk-ln-dim-a-0x00000039.json b/tests/data/devices/sunricher-hk-ln-dim-a-0x00000039.json index fb6c6a70c..1cb45767d 100644 --- a/tests/data/devices/sunricher-hk-ln-dim-a-0x00000039.json +++ b/tests/data/devices/sunricher-hk-ln-dim-a-0x00000039.json @@ -257,310 +257,257 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 184, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 184, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000039", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000039", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/sunricher-on-off-2ch-0x00000004.json b/tests/data/devices/sunricher-on-off-2ch-0x00000004.json index 14d33934f..c88845449 100644 --- a/tests/data/devices/sunricher-on-off-2ch-0x00000004.json +++ b/tests/data/devices/sunricher-on-off-2ch-0x00000004.json @@ -641,465 +641,387 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-2-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-2-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 164 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 164, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -59 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -59, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 3.665395833333333, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 3.665395833333333, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 229.2, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 229.2, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000004", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "installed_version": "0x00000004", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/texasinstruments-ti-router.json b/tests/data/devices/texasinstruments-ti-router.json index 0990672c7..a9ab56bd1 100644 --- a/tests/data/devices/texasinstruments-ti-router.json +++ b/tests/data/devices/texasinstruments-ti-router.json @@ -138,125 +138,105 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:21:b4:96:29-8-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:21:b4:96:29", - "endpoint_id": 8, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:12:4b:00:21:b4:96:29-8-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:21:b4:96:29", + "endpoint_id": 8, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:21:b4:96:29-8-0-transmit_power", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "TiRouterTransmitPower", - "translation_key": "transmit_power", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:21:b4:96:29", - "endpoint_id": 8, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 20, - "native_min_value": -20, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "TiRouterTransmitPower", - "available": true, - "state": 9 - } + "fallback_name": null, + "unique_id": "00:12:4b:00:21:b4:96:29-8-0-transmit_power", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "TiRouterTransmitPower", + "translation_key": "transmit_power", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:21:b4:96:29", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": 9, + "mode": "auto", + "native_max_value": 20, + "native_min_value": -20, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:21:b4:96:29-8-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:21:b4:96:29", - "endpoint_id": 8, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:21:b4:96:29-8-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:21:b4:96:29", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:21:b4:96:29-8-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:21:b4:96:29", - "endpoint_id": 8, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:21:b4:96:29-8-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:21:b4:96:29", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/the-home-depot-ecosmart-zbt-a19-cct-bulb-0x21036500.json b/tests/data/devices/the-home-depot-ecosmart-zbt-a19-cct-bulb-0x21036500.json index e0eb5e47b..44ba9d397 100644 --- a/tests/data/devices/the-home-depot-ecosmart-zbt-a19-cct-bulb-0x21036500.json +++ b/tests/data/devices/the-home-depot-ecosmart-zbt-a19-cct-bulb-0x21036500.json @@ -352,342 +352,284 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 370 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": 370, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": 370, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 370 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 370, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 370, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x21036500", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x21036500", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rap0149bz-0x0000000e.json b/tests/data/devices/third-reality-inc-3rap0149bz-0x0000000e.json index de064bd93..cad273c77 100644 --- a/tests/data/devices/third-reality-inc-3rap0149bz-0x0000000e.json +++ b/tests/data/devices/third-reality-inc-3rap0149bz-0x0000000e.json @@ -221,217 +221,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "hPa" - }, - "state": { - "class_name": "Pressure", - "available": true, - "state": 1005 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1005, + "suggested_display_precision": 0, + "unit": "hPa" }, { - "info_object": { - "fallback_name": "", - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-12-analog_input", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AnalogInputSensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "AnalogInputSensor", - "available": true, - "state": 27.0 - } + "fallback_name": "", + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-12-analog_input", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AnalogInputSensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 27.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000000e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000000e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rds17bz.json b/tests/data/devices/third-reality-inc-3rds17bz.json index df5ddb733..b37fea717 100644 --- a/tests/data/devices/third-reality-inc-3rds17bz.json +++ b/tests/data/devices/third-reality-inc-3rds17bz.json @@ -180,191 +180,162 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "number": [ { - "info_object": { - "fallback_name": "Open delay time", - "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-open_delay_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "open_delay_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 3600, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Open delay time", + "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-open_delay_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "open_delay_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 3600, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 75.0, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 75.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.9 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rms16bz-0x0000004f.json b/tests/data/devices/third-reality-inc-3rms16bz-0x0000004f.json index 145902625..7a464f7be 100644 --- a/tests/data/devices/third-reality-inc-3rms16bz-0x0000004f.json +++ b/tests/data/devices/third-reality-inc-3rms16bz-0x0000004f.json @@ -206,191 +206,162 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "number": [ { - "info_object": { - "fallback_name": "Detection interval", - "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-detection_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 3600, - "native_min_value": 5, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 30 - } + "fallback_name": "Detection interval", + "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-detection_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30, + "mode": "auto", + "native_max_value": 3600, + "native_min_value": 5, + "native_step": 1.0, + "native_unit_of_measurement": "s" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 50.5, - "battery_voltage": 2.6 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 50.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.6 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json b/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json index 37f1b88fc..6f2394bd4 100644 --- a/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json +++ b/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json @@ -312,309 +312,259 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": "Allow remote binding", - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-allow_bind", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "allow_remote_binding", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "allow_bind", - "attribute_value": 1 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Allow remote binding", + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-allow_bind", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "allow_remote_binding", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "allow_bind", + "attribute_value": 1 } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 33, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 33, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 58.0, - "battery_voltage": 5.3 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 58.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 5.3 }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": "Enable PIR remote", - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-enable_disable_pir_remote", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "enable_pir_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "enable_disable_pir_remote", - "invert_attribute_name": null, - "force_inverted": true, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": true - } + "fallback_name": "Enable PIR remote", + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-enable_disable_pir_remote", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "enable_pir_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": true, + "attribute_name": "enable_disable_pir_remote", + "invert_attribute_name": null, + "force_inverted": true, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsb22bz.json b/tests/data/devices/third-reality-inc-3rsb22bz.json index 736c34489..c3efa4f84 100644 --- a/tests/data/devices/third-reality-inc-3rsb22bz.json +++ b/tests/data/devices/third-reality-inc-3rsb22bz.json @@ -158,163 +158,139 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e3:74:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e3:74:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e3:74:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e3:74:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e3:74:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 67.5, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "28:2c:02:bf:ff:e3:74:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 67.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.9 } ], "switch": [ { - "info_object": { - "fallback_name": "Disable double click", - "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-disable_double_click", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "disable_double_click", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e3:74:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "disable_double_click", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Disable double click", + "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-disable_double_click", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "disable_double_click", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e3:74:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "disable_double_click", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e3:74:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e3:74:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsm0147z-0x0000001f.json b/tests/data/devices/third-reality-inc-3rsm0147z-0x0000001f.json index d19bddc09..bb3c7c2e1 100644 --- a/tests/data/devices/third-reality-inc-3rsm0147z-0x0000001f.json +++ b/tests/data/devices/third-reality-inc-3rsm0147z-0x0000001f.json @@ -179,249 +179,210 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Humidity offset", - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-humidity_offset", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_offset", - "translation_placeholders": null, - "device_class": "humidity", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10000, - "native_min_value": -10000, - "native_step": 0.1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Humidity offset", + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-humidity_offset", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_offset", + "translation_placeholders": null, + "device_class": "humidity", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10000, + "native_min_value": -10000, + "native_step": 0.1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Temperature offset", - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-temperature_offset_celsius", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_offset", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10000, - "native_min_value": -10000, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Temperature offset", + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-temperature_offset_celsius", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_offset", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10000, + "native_min_value": -10000, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 1.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 1.5 }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.3 - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.3, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 31.21 - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 31.21, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsnl02043z-0x0000003c.json b/tests/data/devices/third-reality-inc-3rsnl02043z-0x0000003c.json index 5ad098a02..b2ad1025a 100644 --- a/tests/data/devices/third-reality-inc-3rsnl02043z-0x0000003c.json +++ b/tests/data/devices/third-reality-inc-3rsnl02043z-0x0000003c.json @@ -342,405 +342,336 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off", - "colorloop" - ], - "supported_features": 44, - "min_mireds": 153, - "max_mireds": 65279 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.30699626153963533, - 0.6139925230792707 - ], - "color_temp": 65535, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.30699626153963533, + 0.6139925230792707 + ], + "color_temp": 65535, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 65279 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65279, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 65279, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 10 - } + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 472 - } + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 472, + "suggested_display_precision": null, + "unit": "lx" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000003c", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000003c", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsp019bz-0x1001301e.json b/tests/data/devices/third-reality-inc-3rsp019bz-0x1001301e.json index 784e6eea6..e595d00ff 100644 --- a/tests/data/devices/third-reality-inc-3rsp019bz-0x1001301e.json +++ b/tests/data/devices/third-reality-inc-3rsp019bz-0x1001301e.json @@ -315,190 +315,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:09:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:09:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:09:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:09:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:09:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:09:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:09:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:09:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:09:0d-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "28:2c:02:bf:ff:eb:09:0d", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:09:0d-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:09:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:09:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x1001301e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:09:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x1001301e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json b/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json index 781d9bce5..b925f9fbe 100644 --- a/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json +++ b/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json @@ -399,440 +399,380 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} }, { - "info_object": { - "fallback_name": "Reset summation delivered", - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-reset_summation_delivered", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "reset_summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "reset_summation_delivered", - "attribute_value": 1 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Reset summation delivered", + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-reset_summation_delivered", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "reset_summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "reset_summation_delivered", + "attribute_value": 1 } ], "number": [ { - "info_object": { - "fallback_name": "Turn on delay", - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-off_to_on_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "turn_on_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Turn on delay", + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-off_to_on_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "turn_on_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Turn off delay", - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-on_to_off_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "turn_off_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Turn off delay", + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-on_to_off_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "turn_off_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 60.0, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 124.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 124.5, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x10013058", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x10013058", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json b/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json index 53d751658..4befb09cb 100644 --- a/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json +++ b/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json @@ -570,509 +570,434 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} }, { - "info_object": { - "fallback_name": "Reset summation delivered", - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-reset_summation_delivered", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "reset_summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "reset_summation_delivered", - "attribute_value": 1 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Reset summation delivered", + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-reset_summation_delivered", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "reset_summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "reset_summation_delivered", + "attribute_value": 1 } ], "number": [ { - "info_object": { - "fallback_name": "Turn on delay", - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-off_to_on_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "turn_on_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Turn on delay", + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-off_to_on_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "turn_on_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Turn off delay", - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-on_to_off_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "turn_off_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Turn off delay", + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-on_to_off_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "turn_off_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 188 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 188, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -53 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -53, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.968, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.968, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 60.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 60.0, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 126.1, - "measurement_type": "ACTIVE_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 126.1, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000002f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000002f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rss007z.json b/tests/data/devices/third-reality-inc-3rss007z.json index f6156da73..990ddaede 100644 --- a/tests/data/devices/third-reality-inc-3rss007z.json +++ b/tests/data/devices/third-reality-inc-3rss007z.json @@ -138,155 +138,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e0:16:01-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e0:16:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e0:16:01-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e0:16:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e0:16:01-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e0:16:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e0:16:01-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e0:16:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e0:16:01-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e0:16:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e0:16:01-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e0:16:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e0:16:01-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "28:2c:02:bf:ff:e0:16:01", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e0:16:01-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e0:16:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e0:16:01-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateServerEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e0:16:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateServerEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e0:16:01-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateServerEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e0:16:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rss009z-0x0000001d.json b/tests/data/devices/third-reality-inc-3rss009z-0x0000001d.json index 2bc721050..2a8fcc64f 100644 --- a/tests/data/devices/third-reality-inc-3rss009z-0x0000001d.json +++ b/tests/data/devices/third-reality-inc-3rss009z-0x0000001d.json @@ -184,221 +184,187 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Turn on delay", - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-off_to_on_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "turn_on_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Turn on delay", + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-off_to_on_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "turn_on_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Turn off delay", - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-on_to_off_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "turn_off_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Turn off delay", + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-on_to_off_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "turn_off_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 56.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 56.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rths24bz-0x00000015.json b/tests/data/devices/third-reality-inc-3rths24bz-0x00000015.json index 9763fddb5..3a100a226 100644 --- a/tests/data/devices/third-reality-inc-3rths24bz-0x00000015.json +++ b/tests/data/devices/third-reality-inc-3rths24bz-0x00000015.json @@ -179,249 +179,210 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Humidity offset", - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-humidity_offset", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_offset", - "translation_placeholders": null, - "device_class": "humidity", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10000, - "native_min_value": -10000, - "native_step": 0.1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Humidity offset", + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-humidity_offset", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_offset", + "translation_placeholders": null, + "device_class": "humidity", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10000, + "native_min_value": -10000, + "native_step": 0.1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Temperature offset", - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-temperature_offset_celsius", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_offset", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10000, - "native_min_value": -10000, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Temperature offset", + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-temperature_offset_celsius", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_offset", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10000, + "native_min_value": -10000, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 42.0, - "battery_voltage": 2.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 42.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.5 }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 26.4 - } + "fallback_name": null, + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 26.4, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 56.0 - } + "fallback_name": null, + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 56.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000015", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000015", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rvs01031z-0x00000028.json b/tests/data/devices/third-reality-inc-3rvs01031z-0x00000028.json index 16297c8ca..8852e50a5 100644 --- a/tests/data/devices/third-reality-inc-3rvs01031z-0x00000028.json +++ b/tests/data/devices/third-reality-inc-3rvs01031z-0x00000028.json @@ -212,158 +212,134 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 83.5, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 83.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000028", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000028", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rws18bz-0x00000038.json b/tests/data/devices/third-reality-inc-3rws18bz-0x00000038.json index aece4a5ac..a683584c6 100644 --- a/tests/data/devices/third-reality-inc-3rws18bz-0x00000038.json +++ b/tests/data/devices/third-reality-inc-3rws18bz-0x00000038.json @@ -230,252 +230,213 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "number": [ { - "info_object": { - "fallback_name": "Siren time", - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-siren_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "siren_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Siren time", + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-siren_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "siren_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "min" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 52.0, - "battery_voltage": 2.6 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 52.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.6 } ], "switch": [ { - "info_object": { - "fallback_name": "Enable siren", - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-enable_siren", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "enable_siren", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "enable_siren", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Enable siren", + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-enable_siren", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "enable_siren", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "enable_siren", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000038", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000038", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/third-reality-inc-3rws18bz-0x00000049.json b/tests/data/devices/third-reality-inc-3rws18bz-0x00000049.json index bfec202f7..85baee232 100644 --- a/tests/data/devices/third-reality-inc-3rws18bz-0x00000049.json +++ b/tests/data/devices/third-reality-inc-3rws18bz-0x00000049.json @@ -243,252 +243,213 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "number": [ { - "info_object": { - "fallback_name": "Siren time", - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-siren_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "siren_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Siren time", + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-siren_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "siren_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "min" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 60, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 78.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 78.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 } ], "switch": [ { - "info_object": { - "fallback_name": "Enable siren", - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-enable_siren", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "enable_siren", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "enable_siren", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Enable siren", + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-enable_siren", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "enable_siren", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "enable_siren", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/trust-international-b-v-zll-colortempera.json b/tests/data/devices/trust-international-b-v-zll-colortempera.json index 246ba7090..d48ba0b25 100644 --- a/tests/data/devices/trust-international-b-v-zll-colortempera.json +++ b/tests/data/devices/trust-international-b-v-zll-colortempera.json @@ -373,243 +373,200 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 454 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 3, - "xy_color": null, - "color_temp": 370, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 3, + "xy_color": null, + "color_temp": 370, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 454 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 10 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 164 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 164, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -59 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -59, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tubeszb-tubeszb-router.json b/tests/data/devices/tubeszb-tubeszb-router.json index 37058ba8f..88cf81258 100644 --- a/tests/data/devices/tubeszb-tubeszb-router.json +++ b/tests/data/devices/tubeszb-tubeszb-router.json @@ -168,92 +168,77 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:22:98:38:6d-8-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:22:98:38:6d", - "endpoint_id": 8, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:12:4b:00:22:98:38:6d-8-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:22:98:38:6d", + "endpoint_id": 8, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:22:98:38:6d-8-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:22:98:38:6d", - "endpoint_id": 8, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:22:98:38:6d-8-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:22:98:38:6d", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:12:4b:00:22:98:38:6d-8-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:12:4b:00:22:98:38:6d", - "endpoint_id": 8, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:12:4b:00:22:98:38:6d-8-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:22:98:38:6d", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/tuyatec-gqhxixyk-rh3052.json b/tests/data/devices/tuyatec-gqhxixyk-rh3052.json index c53c1bc53..687d9addb 100644 --- a/tests/data/devices/tuyatec-gqhxixyk-rh3052.json +++ b/tests/data/devices/tuyatec-gqhxixyk-rh3052.json @@ -184,182 +184,153 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "60:a4:23:ff:fe:37:11:33-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "60:a4:23:ff:fe:37:11:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "60:a4:23:ff:fe:37:11:33-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "60:a4:23:ff:fe:37:11:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "60:a4:23:ff:fe:37:11:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "60:a4:23:ff:fe:37:11:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "60:a4:23:ff:fe:37:11:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "60:a4:23:ff:fe:37:11:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "60:a4:23:ff:fe:37:11:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "60:a4:23:ff:fe:37:11:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "60:a4:23:ff:fe:37:11:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "60:a4:23:ff:fe:37:11:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "60:a4:23:ff:fe:37:11:33-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "60:a4:23:ff:fe:37:11:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "60:a4:23:ff:fe:37:11:33-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "60:a4:23:ff:fe:37:11:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "60:a4:23:ff:fe:37:11:33-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "60:a4:23:ff:fe:37:11:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 25.89 - } + "fallback_name": null, + "unique_id": "60:a4:23:ff:fe:37:11:33-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "60:a4:23:ff:fe:37:11:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25.89, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "60:a4:23:ff:fe:37:11:33-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "60:a4:23:ff:fe:37:11:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 43.04 - } + "fallback_name": null, + "unique_id": "60:a4:23:ff:fe:37:11:33-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "60:a4:23:ff:fe:37:11:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 43.04, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/tuyatec-r9hgssol-rh3001.json b/tests/data/devices/tuyatec-r9hgssol-rh3001.json index fff5b87e7..7466af9ea 100644 --- a/tests/data/devices/tuyatec-r9hgssol-rh3001.json +++ b/tests/data/devices/tuyatec-r9hgssol-rh3001.json @@ -192,155 +192,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ] }, diff --git a/tests/data/devices/tuyatec-rkqiqvcs-rh3001.json b/tests/data/devices/tuyatec-rkqiqvcs-rh3001.json index a156b728b..ce1b49200 100644 --- a/tests/data/devices/tuyatec-rkqiqvcs-rh3001.json +++ b/tests/data/devices/tuyatec-rkqiqvcs-rh3001.json @@ -198,155 +198,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 49.0, - "battery_voltage": 2.6 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 49.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.6 } ] }, diff --git a/tests/data/devices/tuyatec-yg5dcbfu-rh3052.json b/tests/data/devices/tuyatec-yg5dcbfu-rh3052.json index afead449d..68d1095fb 100644 --- a/tests/data/devices/tuyatec-yg5dcbfu-rh3052.json +++ b/tests/data/devices/tuyatec-yg5dcbfu-rh3052.json @@ -196,182 +196,153 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:3b:04:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:3b:04:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:3b:04:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:3b:04:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:3b:04:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:3b:04:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:3b:04:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 76.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "14:b4:57:ff:fe:3b:04:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 76.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:3b:04:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.3 - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:3b:04:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20.3, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "14:b4:57:ff:fe:3b:04:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 62.85 - } + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:3b:04:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 62.85, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/tyst11-czk78ptr-zk78ptr.json b/tests/data/devices/tyst11-czk78ptr-zk78ptr.json index a98833a2e..7db04a3cb 100644 --- a/tests/data/devices/tyst11-czk78ptr-zk78ptr.json +++ b/tests/data/devices/tyst11-czk78ptr-zk78ptr.json @@ -226,373 +226,308 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 17.6, - "outdoor_temperature": null, - "target_temperature": 13.5, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1350, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": 1650 - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 17.6, + "outdoor_temperature": null, + "target_temperature": 13.5, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1350, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": 1650 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "heating" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "heating", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tyst11-i5j6ifxj-5j6ifxj-0x00000049.json b/tests/data/devices/tyst11-i5j6ifxj-5j6ifxj-0x00000049.json index efc3bb185..a5be96bb7 100644 --- a/tests/data/devices/tyst11-i5j6ifxj-5j6ifxj-0x00000049.json +++ b/tests/data/devices/tyst11-i5j6ifxj-5j6ifxj-0x00000049.json @@ -171,156 +171,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tyzb01-1xktopx6-ts0041a.json b/tests/data/devices/tyzb01-1xktopx6-ts0041a.json index 7089efd40..46cd1b741 100644 --- a/tests/data/devices/tyzb01-1xktopx6-ts0041a.json +++ b/tests/data/devices/tyzb01-1xktopx6-ts0041a.json @@ -159,157 +159,133 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:76:87:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 204 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:76:87:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 204, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:76:87:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:76:87:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:76:87:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:76:87:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8d:76:87:d5", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:76:87:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:76:87:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:76:87:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tyzb01-8scntis1-ts0216.json b/tests/data/devices/tyzb01-8scntis1-ts0216.json index dffdddeeb..9656de6c9 100644 --- a/tests/data/devices/tyzb01-8scntis1-ts0216.json +++ b/tests/data/devices/tyzb01-8scntis1-ts0216.json @@ -233,328 +233,278 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-SirenLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultSirenLevelSelectEntity", - "translation_key": "default_siren_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SirenLevel", - "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" - ] - }, - "state": { - "class_name": "DefaultSirenLevelSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-SirenLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultSirenLevelSelectEntity", + "translation_key": "default_siren_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "SirenLevel", + "options": [ + "Low level sound", + "Medium level sound", + "High level sound", + "Very high level sound" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-Strobe", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeSelectEntity", - "translation_key": "default_strobe", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "Strobe", - "options": [ - "No Strobe", - "Strobe" - ] - }, - "state": { - "class_name": "DefaultStrobeSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-Strobe", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeSelectEntity", + "translation_key": "default_strobe", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "Strobe", + "options": [ + "No Strobe", + "Strobe" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-StrobeLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeLevelSelectEntity", - "translation_key": "default_strobe_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StrobeLevel", - "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" - ] - }, - "state": { - "class_name": "DefaultStrobeLevelSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-StrobeLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeLevelSelectEntity", + "translation_key": "default_strobe_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "StrobeLevel", + "options": [ + "Low level strobe", + "Medium level strobe", + "High level strobe", + "Very high level strobe" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-WarningMode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultToneSelectEntity", - "translation_key": "default_siren_tone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "WarningMode", - "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" - ] - }, - "state": { - "class_name": "DefaultToneSelectEntity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-WarningMode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultToneSelectEntity", + "translation_key": "default_siren_tone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "WarningMode", + "options": [ + "Stop", + "Burglar", + "Fire", + "Emergency", + "Police Panic", + "Fire Panic", + "Emergency Panic" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "siren": [ { - "info_object": { - "fallback_name": "Siren", - "unique_id": "ab:cd:ef:12:52:26:72:dc-1", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "AdvancedSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "available_tones": { - "1": "Burglar", - "2": "Fire", - "3": "Emergency", - "4": "Police Panic", - "5": "Fire Panic", - "6": "Emergency Panic" - }, - "supported_features": 31 + "fallback_name": "Siren", + "unique_id": "ab:cd:ef:12:52:26:72:dc-1", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "AdvancedSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "available_tones": { + "1": "Burglar", + "2": "Fire", + "3": "Emergency", + "4": "Police Panic", + "5": "Fire Panic", + "6": "Emergency Panic" }, - "state": { - "class_name": "AdvancedSiren", - "available": true, - "state": false - } + "supported_features": 31 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tyzb01-mtunwanm-ts011f.json b/tests/data/devices/tyzb01-mtunwanm-ts011f.json index 1a8033aaf..25559f103 100644 --- a/tests/data/devices/tyzb01-mtunwanm-ts011f.json +++ b/tests/data/devices/tyzb01-mtunwanm-ts011f.json @@ -170,123 +170,103 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:72:86:1c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:72:86:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:72:86:1c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:72:86:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:72:86:1c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:72:86:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:72:86:1c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:72:86:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:72:86:1c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:34:72:86:1c", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:72:86:1c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:72:86:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:72:86:1c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:72:86:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:72:86:1c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:72:86:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tyzb01-o63ssaah-ts0207-0x00000043.json b/tests/data/devices/tyzb01-o63ssaah-ts0207-0x00000043.json index 92cca64c8..9678a8536 100644 --- a/tests/data/devices/tyzb01-o63ssaah-ts0207-0x00000043.json +++ b/tests/data/devices/tyzb01-o63ssaah-ts0207-0x00000043.json @@ -217,190 +217,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tyzb01-qm6djpta-ts0215-0x00000046.json b/tests/data/devices/tyzb01-qm6djpta-ts0215-0x00000046.json index 57b003069..96e73c1a4 100644 --- a/tests/data/devices/tyzb01-qm6djpta-ts0215-0x00000046.json +++ b/tests/data/devices/tyzb01-qm6djpta-ts0215-0x00000046.json @@ -218,221 +218,187 @@ "zha_lib_entities": { "alarm_control_panel": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-1281", - "migrate_unique_ids": [], - "platform": "alarm_control_panel", - "class_name": "AlarmControlPanel", - "translation_key": "alarm_control_panel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "code_arm_required": false, - "code_format": "number", - "supported_features": 15 - }, - "state": { - "class_name": "AlarmControlPanel", - "available": true, - "state": "disarmed" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-1281", + "migrate_unique_ids": [], + "platform": "alarm_control_panel", + "class_name": "AlarmControlPanel", + "translation_key": "alarm_control_panel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "alarm_state": "disarmed", + "code_arm_required": false, + "code_format": "number", + "supported_features": 15 } ], "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tyzb01-rifa0wlb-ts0011-0x00000041.json b/tests/data/devices/tyzb01-rifa0wlb-ts0011-0x00000041.json index 521ddd37a..3b664e916 100644 --- a/tests/data/devices/tyzb01-rifa0wlb-ts0011-0x00000041.json +++ b/tests/data/devices/tyzb01-rifa0wlb-ts0011-0x00000041.json @@ -201,147 +201,119 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tyzb01-vkwryfdr-ts0115.json b/tests/data/devices/tyzb01-vkwryfdr-ts0115.json index c5e2f207e..95c8a0798 100644 --- a/tests/data/devices/tyzb01-vkwryfdr-ts0115.json +++ b/tests/data/devices/tyzb01-vkwryfdr-ts0115.json @@ -345,227 +345,187 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 4, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-7-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 7, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-7-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 7, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tyzb01-zanh6v1o-ts0121.json b/tests/data/devices/tyzb01-zanh6v1o-ts0121.json index af8e2fdc7..7cd1c5c87 100644 --- a/tests/data/devices/tyzb01-zanh6v1o-ts0121.json +++ b/tests/data/devices/tyzb01-zanh6v1o-ts0121.json @@ -401,287 +401,247 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 22.568, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.568, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 1.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 8.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 8.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 123.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 123.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz2000-k4yr34vv-sm0301.json b/tests/data/devices/tz2000-k4yr34vv-sm0301.json index 0fc1ba6ff..0f1aee2c8 100644 --- a/tests/data/devices/tz2000-k4yr34vv-sm0301.json +++ b/tests/data/devices/tz2000-k4yr34vv-sm0301.json @@ -297,256 +297,219 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Shade", - "translation_key": "shade", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Shade", - "available": true, - "current_position": 100, - "is_closed": false, - "state": "open" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Shade", + "translation_key": "shade", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": false, + "supported_features": 15 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-09gto2zn-ts0013-0x00000050.json b/tests/data/devices/tz3000-09gto2zn-ts0013-0x00000050.json index 369fa9d0c..bb52c8ef0 100644 --- a/tests/data/devices/tz3000-09gto2zn-ts0013-0x00000050.json +++ b/tests/data/devices/tz3000-09gto2zn-ts0013-0x00000050.json @@ -488,279 +488,220 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 188 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 188, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -53 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -53, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-09gto2zn-ts0013.json b/tests/data/devices/tz3000-09gto2zn-ts0013.json index a61b050ca..2a4ca46df 100644 --- a/tests/data/devices/tz3000-09gto2zn-ts0013.json +++ b/tests/data/devices/tz3000-09gto2zn-ts0013.json @@ -278,279 +278,220 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-1dd0d5yi-ts130f-0x00000047.json b/tests/data/devices/tz3000-1dd0d5yi-ts130f-0x00000047.json index 76ebb6aff..6d06c9c75 100644 --- a/tests/data/devices/tz3000-1dd0d5yi-ts130f-0x00000047.json +++ b/tests/data/devices/tz3000-1dd0d5yi-ts130f-0x00000047.json @@ -390,157 +390,131 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -73 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -73, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000047", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000047", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-1dd0d5yi-ts130f.json b/tests/data/devices/tz3000-1dd0d5yi-ts130f.json index e0cb54539..edaae3331 100644 --- a/tests/data/devices/tz3000-1dd0d5yi-ts130f.json +++ b/tests/data/devices/tz3000-1dd0d5yi-ts130f.json @@ -390,129 +390,108 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -73 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -73, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-1o6x1bl0-ts0201-0x00000041.json b/tests/data/devices/tz3000-1o6x1bl0-ts0201-0x00000041.json index 428a42d3c..03231ba8e 100644 --- a/tests/data/devices/tz3000-1o6x1bl0-ts0201-0x00000041.json +++ b/tests/data/devices/tz3000-1o6x1bl0-ts0201-0x00000041.json @@ -184,189 +184,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d0:74:74:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d0:74:74:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d0:74:74:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 185 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d0:74:74:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 185, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d0:74:74:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d0:74:74:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d0:74:74:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:d0:74:74:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d0:74:74:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.28 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d0:74:74:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.28, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d0:74:74:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d0:74:74:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-2putqrmw-ts011f.json b/tests/data/devices/tz3000-2putqrmw-ts011f.json index 064e9d539..27218ce5f 100644 --- a/tests/data/devices/tz3000-2putqrmw-ts011f.json +++ b/tests/data/devices/tz3000-2putqrmw-ts011f.json @@ -418,318 +418,275 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 5.16, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.16, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 233.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 233.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-2xlvlnez-ts011f.json b/tests/data/devices/tz3000-2xlvlnez-ts011f.json index 8366fcae2..9f67d67b1 100644 --- a/tests/data/devices/tz3000-2xlvlnez-ts011f.json +++ b/tests/data/devices/tz3000-2xlvlnez-ts011f.json @@ -536,276 +536,238 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 184 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 184, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -54 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -54, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": null - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "zcl_unit_of_measurement": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": null, + "device_type": null, + "status": null, + "zcl_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 } ] }, diff --git a/tests/data/devices/tz3000-303avxxt-ts011f.json b/tests/data/devices/tz3000-303avxxt-ts011f.json index 21b784ec1..c9e482168 100644 --- a/tests/data/devices/tz3000-303avxxt-ts011f.json +++ b/tests/data/devices/tz3000-303avxxt-ts011f.json @@ -472,385 +472,330 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "LightWhenOn" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LightWhenOn", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "LastState" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LastState", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 247.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 247.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "TuyaChildLockSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-3ias4w4o-ts011f-0x0000004e.json b/tests/data/devices/tz3000-3ias4w4o-ts011f-0x0000004e.json index 849ad9925..ea533ced4 100644 --- a/tests/data/devices/tz3000-3ias4w4o-ts011f-0x0000004e.json +++ b/tests/data/devices/tz3000-3ias4w4o-ts011f-0x0000004e.json @@ -521,287 +521,247 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 295.79, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 295.79, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 2231.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2231.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 9.587 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 9.587, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 233.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 233.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-5e235jpa-ts0042.json b/tests/data/devices/tz3000-5e235jpa-ts0042.json index f52637ef7..964d3c6ad 100644 --- a/tests/data/devices/tz3000-5e235jpa-ts0042.json +++ b/tests/data/devices/tz3000-5e235jpa-ts0042.json @@ -175,216 +175,184 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-5fkufhn1-ts0502a.json b/tests/data/devices/tz3000-5fkufhn1-ts0502a.json index 64d3610d5..215e2a436 100644 --- a/tests/data/devices/tz3000-5fkufhn1-ts0502a.json +++ b/tests/data/devices/tz3000-5fkufhn1-ts0502a.json @@ -309,185 +309,152 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:4b:44:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:4b:44:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:4b:44:fd-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:97:4b:44:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.6999923704890516, - 0.29999237048905164 - ], - "color_temp": 193, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:4b:44:fd-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:4b:44:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.6999923704890516, + 0.29999237048905164 + ], + "color_temp": 193, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:4b:44:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:4b:44:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:4b:44:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:4b:44:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:4b:44:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:4b:44:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-5ity3zyu-ts0121.json b/tests/data/devices/tz3000-5ity3zyu-ts0121.json index 6e82f328d..c62787985 100644 --- a/tests/data/devices/tz3000-5ity3zyu-ts0121.json +++ b/tests/data/devices/tz3000-5ity3zyu-ts0121.json @@ -395,287 +395,247 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 233.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 233.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-6l1pjfqe-ts011f.json b/tests/data/devices/tz3000-6l1pjfqe-ts011f.json index 5341131c2..b688236a2 100644 --- a/tests/data/devices/tz3000-6l1pjfqe-ts011f.json +++ b/tests/data/devices/tz3000-6l1pjfqe-ts011f.json @@ -468,287 +468,247 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.23, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.23, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 450.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 450.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 3.831 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3.831, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 117.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 117.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-8nkb7mof-ts0121-0x00000042.json b/tests/data/devices/tz3000-8nkb7mof-ts0121-0x00000042.json index 0baa0c214..bad066b73 100644 --- a/tests/data/devices/tz3000-8nkb7mof-ts0121-0x00000042.json +++ b/tests/data/devices/tz3000-8nkb7mof-ts0121-0x00000042.json @@ -444,385 +444,330 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "LightWhenOn" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LightWhenOn", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 1196.95, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1196.95, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 152.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 152.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.709 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.709, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 249.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 249.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "TuyaChildLockSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000042", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000042", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-8nyaanzb-ts011f.json b/tests/data/devices/tz3000-8nyaanzb-ts011f.json index 3097ec245..cbd5f28e4 100644 --- a/tests/data/devices/tz3000-8nyaanzb-ts011f.json +++ b/tests/data/devices/tz3000-8nyaanzb-ts011f.json @@ -261,181 +261,151 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7a:44:0d-2", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7a:44:0d-2", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-8yhypbo7-ts0203.json b/tests/data/devices/tz3000-8yhypbo7-ts0203.json index 13bedb8b1..ead587b2e 100644 --- a/tests/data/devices/tz3000-8yhypbo7-ts0203.json +++ b/tests/data/devices/tz3000-8yhypbo7-ts0203.json @@ -222,217 +222,183 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 67.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 67.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-a37eix1s-ts0004.json b/tests/data/devices/tz3000-a37eix1s-ts0004.json index a594ec16a..0fd9f9fe0 100644 --- a/tests/data/devices/tz3000-a37eix1s-ts0004.json +++ b/tests/data/devices/tz3000-a37eix1s-ts0004.json @@ -357,329 +357,257 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 4, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 4, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-a9buwvb7-ts0726.json b/tests/data/devices/tz3000-a9buwvb7-ts0726.json index f529abda3..bba369d34 100644 --- a/tests/data/devices/tz3000-a9buwvb7-ts0726.json +++ b/tests/data/devices/tz3000-a9buwvb7-ts0726.json @@ -560,285 +560,235 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 4, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-5-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 5, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-5-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 5, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-6-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 6, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-6-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 6, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-adkvzooy-ts0042.json b/tests/data/devices/tz3000-adkvzooy-ts0042.json index 7b28ca869..b21ebaa7d 100644 --- a/tests/data/devices/tz3000-adkvzooy-ts0042.json +++ b/tests/data/devices/tz3000-adkvzooy-ts0042.json @@ -150,215 +150,184 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-aghwaexm-ts0001.json b/tests/data/devices/tz3000-aghwaexm-ts0001.json index e8af227c6..e805228ea 100644 --- a/tests/data/devices/tz3000-aghwaexm-ts0001.json +++ b/tests/data/devices/tz3000-aghwaexm-ts0001.json @@ -152,144 +152,116 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/tz3000-bgsigers-ts0201-0x00000040.json b/tests/data/devices/tz3000-bgsigers-ts0201-0x00000040.json index cd38d0787..7f16fd3e0 100644 --- a/tests/data/devices/tz3000-bgsigers-ts0201-0x00000040.json +++ b/tests/data/devices/tz3000-bgsigers-ts0201-0x00000040.json @@ -185,217 +185,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -33 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -33, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 28.2 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 28.2, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 31.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 31.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-bguser20-ts0201-0x00000045.json b/tests/data/devices/tz3000-bguser20-ts0201-0x00000045.json index 8998241b8..5778c27f0 100644 --- a/tests/data/devices/tz3000-bguser20-ts0201-0x00000045.json +++ b/tests/data/devices/tz3000-bguser20-ts0201-0x00000045.json @@ -185,217 +185,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 1.0, - "battery_voltage": 2.6 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.6 }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": -18.24 - } + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -18.24, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 49.87 - } + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 49.87, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-bjawzodf-ty0201.json b/tests/data/devices/tz3000-bjawzodf-ty0201.json index 2a0db38a8..d3cbf0b7a 100644 --- a/tests/data/devices/tz3000-bjawzodf-ty0201.json +++ b/tests/data/devices/tz3000-bjawzodf-ty0201.json @@ -166,190 +166,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:57:26:74-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:57:26:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:57:26:74-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2b:57:26:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:57:26:74-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:57:26:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:57:26:74-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2b:57:26:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:57:26:74-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:57:26:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:57:26:74-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2b:57:26:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:57:26:74-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:57:26:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:57:26:74-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:2b:57:26:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:57:26:74-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:2b:57:26:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 23.6 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:57:26:74-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2b:57:26:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 23.6, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:57:26:74-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2b:57:26:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:57:26:74-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2b:57:26:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-cehuw1lw-ts011f-0x0000004d.json b/tests/data/devices/tz3000-cehuw1lw-ts011f-0x0000004d.json index 3f7a3f53e..304c3c3fa 100644 --- a/tests/data/devices/tz3000-cehuw1lw-ts011f-0x0000004d.json +++ b/tests/data/devices/tz3000-cehuw1lw-ts011f-0x0000004d.json @@ -437,287 +437,247 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 1.98, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.98, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 231.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 231.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-cfnprab5-ts011f.json b/tests/data/devices/tz3000-cfnprab5-ts011f.json index abfad584c..c93725780 100644 --- a/tests/data/devices/tz3000-cfnprab5-ts011f.json +++ b/tests/data/devices/tz3000-cfnprab5-ts011f.json @@ -414,344 +414,264 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 4, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 4, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-5", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 5, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-5", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 5, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/tz3000-cicwjqth-ts011f-0x74013001.json b/tests/data/devices/tz3000-cicwjqth-ts011f-0x74013001.json index aa87ad495..f07eb9ce1 100644 --- a/tests/data/devices/tz3000-cicwjqth-ts011f-0x74013001.json +++ b/tests/data/devices/tz3000-cicwjqth-ts011f-0x74013001.json @@ -431,251 +431,217 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.102 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.102, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 233.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 233.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x74013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x74013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-dbou1ap4-ts0505a.json b/tests/data/devices/tz3000-dbou1ap4-ts0505a.json index 3ae742e95..b2ae7ded5 100644 --- a/tests/data/devices/tz3000-dbou1ap4-ts0505a.json +++ b/tests/data/devices/tz3000-dbou1ap4-ts0505a.json @@ -302,185 +302,152 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 140, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 291, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 140, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 291, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-dowj6gyi-ts0201.json b/tests/data/devices/tz3000-dowj6gyi-ts0201.json index d016b87d9..bbd91acdc 100644 --- a/tests/data/devices/tz3000-dowj6gyi-ts0201.json +++ b/tests/data/devices/tz3000-dowj6gyi-ts0201.json @@ -178,217 +178,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 21.3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 21.3, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 58.31 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 58.31, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-drc9tuqb-ts0001-0x00000047.json b/tests/data/devices/tz3000-drc9tuqb-ts0001-0x00000047.json index e4bc8e797..7720d4958 100644 --- a/tests/data/devices/tz3000-drc9tuqb-ts0001-0x00000047.json +++ b/tests/data/devices/tz3000-drc9tuqb-ts0001-0x00000047.json @@ -229,245 +229,202 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "LastState" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LastState", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 204 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 204, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -49 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -49, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000047", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000047", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-e2uieqop-ts0001.json b/tests/data/devices/tz3000-e2uieqop-ts0001.json index ff40a7ad5..d4599dc29 100644 --- a/tests/data/devices/tz3000-e2uieqop-ts0001.json +++ b/tests/data/devices/tz3000-e2uieqop-ts0001.json @@ -207,179 +207,146 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-eamtuojw-ts0201-0x00000041.json b/tests/data/devices/tz3000-eamtuojw-ts0201-0x00000041.json index b1d6a8c07..d33e78237 100644 --- a/tests/data/devices/tz3000-eamtuojw-ts0201-0x00000041.json +++ b/tests/data/devices/tz3000-eamtuojw-ts0201-0x00000041.json @@ -173,185 +173,156 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:fc:51:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:fc:51:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:fc:51:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:fc:51:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:fc:51:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 0.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:fc:51:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:fc:51:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:fc:51:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:fc:51:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:fc:51:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:fc:51:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:fc:51:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-empogkya-ts0003.json b/tests/data/devices/tz3000-empogkya-ts0003.json index 15804d5be..ec80c72de 100644 --- a/tests/data/devices/tz3000-empogkya-ts0003.json +++ b/tests/data/devices/tz3000-empogkya-ts0003.json @@ -297,279 +297,220 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-f2bw0b6k-ts0201-0x00000046.json b/tests/data/devices/tz3000-f2bw0b6k-ts0201-0x00000046.json index ac9d7df1a..56f95030d 100644 --- a/tests/data/devices/tz3000-f2bw0b6k-ts0201-0x00000046.json +++ b/tests/data/devices/tz3000-f2bw0b6k-ts0201-0x00000046.json @@ -185,217 +185,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 57.0, - "battery_voltage": 2.7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 57.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.03 - } + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.03, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 78.92 - } + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 78.92, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-famkxci2-ts0043-0x00000044.json b/tests/data/devices/tz3000-famkxci2-ts0043-0x00000044.json index 832be0c99..2b165c012 100644 --- a/tests/data/devices/tz3000-famkxci2-ts0043-0x00000044.json +++ b/tests/data/devices/tz3000-famkxci2-ts0043-0x00000044.json @@ -263,197 +263,170 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 208 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 208, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -48 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -48, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:cb:44:9b-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 0.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:cb:44:9b-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:cb:44:9b-3-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 0.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:cb:44:9b-3-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-fdxihpp7-ts0001.json b/tests/data/devices/tz3000-fdxihpp7-ts0001.json index badc35f33..60a4e47e5 100644 --- a/tests/data/devices/tz3000-fdxihpp7-ts0001.json +++ b/tests/data/devices/tz3000-fdxihpp7-ts0001.json @@ -470,274 +470,233 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 98 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 98, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": null - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "zcl_unit_of_measurement": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": null, + "device_type": null, + "status": null, + "zcl_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ] }, diff --git a/tests/data/devices/tz3000-gbm10jnj-ts0043-0x00000042.json b/tests/data/devices/tz3000-gbm10jnj-ts0043-0x00000042.json index 7d0217072..d8572e937 100644 --- a/tests/data/devices/tz3000-gbm10jnj-ts0043-0x00000042.json +++ b/tests/data/devices/tz3000-gbm10jnj-ts0043-0x00000042.json @@ -267,277 +267,235 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 78.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 78.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 78.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 78.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-3-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 78.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-3-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 78.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": false } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000042", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000042", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-gjpgagal-ts0049-0x00000049.json b/tests/data/devices/tz3000-gjpgagal-ts0049-0x00000049.json index b0ea1a76f..f1cb56783 100644 --- a/tests/data/devices/tz3000-gjpgagal-ts0049-0x00000049.json +++ b/tests/data/devices/tz3000-gjpgagal-ts0049-0x00000049.json @@ -202,189 +202,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-gjrubzje-ts0001.json b/tests/data/devices/tz3000-gjrubzje-ts0001.json index 6a3a6984b..8c770378e 100644 --- a/tests/data/devices/tz3000-gjrubzje-ts0001.json +++ b/tests/data/devices/tz3000-gjrubzje-ts0001.json @@ -418,342 +418,291 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-gwkzibhs-ts004f.json b/tests/data/devices/tz3000-gwkzibhs-ts004f.json index 7462b396b..b120b76ce 100644 --- a/tests/data/devices/tz3000-gwkzibhs-ts004f.json +++ b/tests/data/devices/tz3000-gwkzibhs-ts004f.json @@ -238,161 +238,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:79:a6:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:79:a6:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:79:a6:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 182 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:79:a6:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 182, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:79:a6:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:79:a6:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:79:a6:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:e5:79:a6:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:79:a6:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:79:a6:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-hafsqare-ts0011-0x00000050.json b/tests/data/devices/tz3000-hafsqare-ts0011-0x00000050.json index 01791ea72..f128bfffe 100644 --- a/tests/data/devices/tz3000-hafsqare-ts0011-0x00000050.json +++ b/tests/data/devices/tz3000-hafsqare-ts0011-0x00000050.json @@ -183,155 +183,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bd:23:09:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bd:23:09:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bd:23:09:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bd:23:09:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bd:23:09:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bd:23:09:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:bd:23:09:5e", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bd:23:09:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bd:23:09:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bd:23:09:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-idhkkbqj-ts0012-0x00000041.json b/tests/data/devices/tz3000-idhkkbqj-ts0012-0x00000041.json index 2abfd62f4..371ceb311 100644 --- a/tests/data/devices/tz3000-idhkkbqj-ts0012-0x00000041.json +++ b/tests/data/devices/tz3000-idhkkbqj-ts0012-0x00000041.json @@ -250,197 +250,156 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 109 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 109, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-isw9u95y-ts0201-0x00000040.json b/tests/data/devices/tz3000-isw9u95y-ts0201-0x00000040.json index 1ceee8177..6e13fe43f 100644 --- a/tests/data/devices/tz3000-isw9u95y-ts0201-0x00000040.json +++ b/tests/data/devices/tz3000-isw9u95y-ts0201-0x00000040.json @@ -238,274 +238,230 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-itnrsufe-ts0201-0x00000042.json b/tests/data/devices/tz3000-itnrsufe-ts0201-0x00000042.json index ebc6b285c..1356f0929 100644 --- a/tests/data/devices/tz3000-itnrsufe-ts0201-0x00000042.json +++ b/tests/data/devices/tz3000-itnrsufe-ts0201-0x00000042.json @@ -191,217 +191,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 78.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 78.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 27.94 - } + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 27.94, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 34.3 - } + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 34.3, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000042", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000042", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-j1xl73iw-ts130f-0x00000046.json b/tests/data/devices/tz3000-j1xl73iw-ts130f-0x00000046.json index 49d3603fc..112eb256d 100644 --- a/tests/data/devices/tz3000-j1xl73iw-ts130f-0x00000046.json +++ b/tests/data/devices/tz3000-j1xl73iw-ts130f-0x00000046.json @@ -419,161 +419,134 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e2:fe:70:54", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:fe:70:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:fe:70:54-2-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e2:fe:70:54", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:fe:70:54-2-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:fe:70:54", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e2:fe:70:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:fe:70:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e2:fe:70:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:fe:70:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e2:fe:70:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:fe:70:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-ja5osu5g-ts004f-0x00000041.json b/tests/data/devices/tz3000-ja5osu5g-ts004f-0x00000041.json index 24a3be566..677cbd631 100644 --- a/tests/data/devices/tz3000-ja5osu5g-ts004f-0x00000041.json +++ b/tests/data/devices/tz3000-ja5osu5g-ts004f-0x00000041.json @@ -238,161 +238,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:50:bd:12", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:50:bd:12", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:50:bd:12", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 188 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:50:bd:12", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 188, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:50:bd:12", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -64 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:50:bd:12", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -64, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:50:bd:12", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 88.0, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:a9:50:bd:12", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 88.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.9 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:50:bd:12", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:50:bd:12", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-kjfzuycl-ts004f.json b/tests/data/devices/tz3000-kjfzuycl-ts004f.json index b782ce4a8..ec03fc080 100644 --- a/tests/data/devices/tz3000-kjfzuycl-ts004f.json +++ b/tests/data/devices/tz3000-kjfzuycl-ts004f.json @@ -207,161 +207,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:36:af:0f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "38:5b:44:ff:fe:36:af:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:36:af:0f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "38:5b:44:ff:fe:36:af:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:36:af:0f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "38:5b:44:ff:fe:36:af:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:36:af:0f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "38:5b:44:ff:fe:36:af:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:36:af:0f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "38:5b:44:ff:fe:36:af:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:36:af:0f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "38:5b:44:ff:fe:36:af:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:36:af:0f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "38:5b:44:ff:fe:36:af:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:36:af:0f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "38:5b:44:ff:fe:36:af:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:36:af:0f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "38:5b:44:ff:fe:36:af:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:36:af:0f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "38:5b:44:ff:fe:36:af:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-kmsbwdol-ts130f.json b/tests/data/devices/tz3000-kmsbwdol-ts130f.json index 4790aca93..11a694065 100644 --- a/tests/data/devices/tz3000-kmsbwdol-ts130f.json +++ b/tests/data/devices/tz3000-kmsbwdol-ts130f.json @@ -341,189 +341,157 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:b7:7a:50-2-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:b7:7a:50-2-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:b7:7a:50-2-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:b7:7a:50-2-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-kqvb5akv-ts0001-0x0000004a.json b/tests/data/devices/tz3000-kqvb5akv-ts0001-0x0000004a.json index 7c4393b2c..2e261a33a 100644 --- a/tests/data/devices/tz3000-kqvb5akv-ts0001-0x0000004a.json +++ b/tests/data/devices/tz3000-kqvb5akv-ts0001-0x0000004a.json @@ -539,311 +539,263 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 200 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 200, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 1.54, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.54, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 30.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.245 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.245, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 231.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 231.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-lepzuhto-ts011f.json b/tests/data/devices/tz3000-lepzuhto-ts011f.json index ed5d9f9db..b7d530579 100644 --- a/tests/data/devices/tz3000-lepzuhto-ts011f.json +++ b/tests/data/devices/tz3000-lepzuhto-ts011f.json @@ -420,318 +420,275 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 59.54, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 59.54, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 198.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 198.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 1.049 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.049, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 238.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 238.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-lf56vpxj-ts0202.json b/tests/data/devices/tz3000-lf56vpxj-ts0202.json index 738d9d1bb..9e90297cb 100644 --- a/tests/data/devices/tz3000-lf56vpxj-ts0202.json +++ b/tests/data/devices/tz3000-lf56vpxj-ts0202.json @@ -161,216 +161,183 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-llfaquvp-ts0012.json b/tests/data/devices/tz3000-llfaquvp-ts0012.json index 9c13b96ae..8b613d36c 100644 --- a/tests/data/devices/tz3000-llfaquvp-ts0012.json +++ b/tests/data/devices/tz3000-llfaquvp-ts0012.json @@ -286,229 +286,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:98:ca:b8-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:98:ca:b8-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-lotmgthb-ts011f.json b/tests/data/devices/tz3000-lotmgthb-ts011f.json index 6d1f0f510..d25c8e1d5 100644 --- a/tests/data/devices/tz3000-lotmgthb-ts011f.json +++ b/tests/data/devices/tz3000-lotmgthb-ts011f.json @@ -418,318 +418,275 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.71, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.71, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 125.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 125.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-lrgccsxm-ts0013.json b/tests/data/devices/tz3000-lrgccsxm-ts0013.json index 659ce8676..88a245a08 100644 --- a/tests/data/devices/tz3000-lrgccsxm-ts0013.json +++ b/tests/data/devices/tz3000-lrgccsxm-ts0013.json @@ -254,279 +254,220 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-ltiqubue-ts130f.json b/tests/data/devices/tz3000-ltiqubue-ts130f.json index d29f2de5b..1a11d1c3b 100644 --- a/tests/data/devices/tz3000-ltiqubue-ts130f.json +++ b/tests/data/devices/tz3000-ltiqubue-ts130f.json @@ -153,154 +153,128 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:3b:68:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:3b:68:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:43:3b:68:f1", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:3b:68:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:3b:68:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:3b:68:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:3b:68:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:3b:68:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:43:3b:68:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:3b:68:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ] }, diff --git a/tests/data/devices/tz3000-mg4dy6z6-ts0202.json b/tests/data/devices/tz3000-mg4dy6z6-ts0202.json index 60b57dda2..729769bcb 100644 --- a/tests/data/devices/tz3000-mg4dy6z6-ts0202.json +++ b/tests/data/devices/tz3000-mg4dy6z6-ts0202.json @@ -211,217 +211,183 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-mgusv51k-ts0052-0x00000044.json b/tests/data/devices/tz3000-mgusv51k-ts0052-0x00000044.json index 47acd4ba6..a9842f870 100644 --- a/tests/data/devices/tz3000-mgusv51k-ts0052-0x00000044.json +++ b/tests/data/devices/tz3000-mgusv51k-ts0052-0x00000044.json @@ -261,213 +261,175 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:77:a4:24:d4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:77:a4:24:d4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:77:a4:24:d4-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:77:a4:24:d4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 127, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:77:a4:24:d4-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:77:a4:24:d4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 127, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:77:a4:24:d4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnOffTransitionTimeConfigurationEntity", - "available": true, - "state": 5000 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:77:a4:24:d4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5000, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:77:a4:24:d4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 36 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:77:a4:24:d4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 36, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:77:a4:24:d4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:77:a4:24:d4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:77:a4:24:d4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:77:a4:24:d4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-mkhkxx1p-ts0001-0x00000048.json b/tests/data/devices/tz3000-mkhkxx1p-ts0001-0x00000048.json index a00b2da33..138d257ea 100644 --- a/tests/data/devices/tz3000-mkhkxx1p-ts0001-0x00000048.json +++ b/tests/data/devices/tz3000-mkhkxx1p-ts0001-0x00000048.json @@ -462,311 +462,263 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 237.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 237.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-mugyhz0q-ts0207-0x00000041.json b/tests/data/devices/tz3000-mugyhz0q-ts0207-0x00000041.json index c591b9e32..2e0483a6e 100644 --- a/tests/data/devices/tz3000-mugyhz0q-ts0207-0x00000041.json +++ b/tests/data/devices/tz3000-mugyhz0q-ts0207-0x00000041.json @@ -193,190 +193,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-mw1pqqqt-ts0003-0x0000004a.json b/tests/data/devices/tz3000-mw1pqqqt-ts0003-0x0000004a.json index 459212e84..1c00589e1 100644 --- a/tests/data/devices/tz3000-mw1pqqqt-ts0003-0x0000004a.json +++ b/tests/data/devices/tz3000-mw1pqqqt-ts0003-0x0000004a.json @@ -684,477 +684,393 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "LightWhenOn" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LightWhenOn", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "LastState" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LastState", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 87 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 87, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-npzfdcof-ts0001.json b/tests/data/devices/tz3000-npzfdcof-ts0001.json index 93fd3cfb2..3456e6aae 100644 --- a/tests/data/devices/tz3000-npzfdcof-ts0001.json +++ b/tests/data/devices/tz3000-npzfdcof-ts0001.json @@ -455,311 +455,263 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-o1jzcxou-ts011f-0x00000043.json b/tests/data/devices/tz3000-o1jzcxou-ts011f-0x00000043.json index c7df3088d..d85e6b410 100644 --- a/tests/data/devices/tz3000-o1jzcxou-ts011f-0x00000043.json +++ b/tests/data/devices/tz3000-o1jzcxou-ts011f-0x00000043.json @@ -211,155 +211,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:94:54:69-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8f:94:54:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:94:54:69-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:94:54:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:94:54:69-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8f:94:54:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 204 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:94:54:69-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:94:54:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 204, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:94:54:69-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8f:94:54:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -49 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:94:54:69-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:94:54:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -49, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:94:54:69-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8f:94:54:69", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:94:54:69-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:94:54:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:94:54:69-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8f:94:54:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:94:54:69-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:94:54:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-o4mkahkc-ts0202-0x00000046.json b/tests/data/devices/tz3000-o4mkahkc-ts0202-0x00000046.json index 8fc6d63ec..6f7be5396 100644 --- a/tests/data/devices/tz3000-o4mkahkc-ts0202-0x00000046.json +++ b/tests/data/devices/tz3000-o4mkahkc-ts0202-0x00000046.json @@ -211,217 +211,183 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.9 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-okaz9tjs-ts011f.json b/tests/data/devices/tz3000-okaz9tjs-ts011f.json index 3f2e5cb49..ad895fdb4 100644 --- a/tests/data/devices/tz3000-okaz9tjs-ts011f.json +++ b/tests/data/devices/tz3000-okaz9tjs-ts011f.json @@ -400,287 +400,247 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 239.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 239.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ] }, diff --git a/tests/data/devices/tz3000-p26flek3-ts0001-0x00000053.json b/tests/data/devices/tz3000-p26flek3-ts0001-0x00000053.json index 1a7a49988..5cbe9d31d 100644 --- a/tests/data/devices/tz3000-p26flek3-ts0001-0x00000053.json +++ b/tests/data/devices/tz3000-p26flek3-ts0001-0x00000053.json @@ -236,245 +236,202 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "LastState" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LastState", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 212 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 212, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -58 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -58, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000053", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000053", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-pl5v1yyy-ts011f-0x00000050.json b/tests/data/devices/tz3000-pl5v1yyy-ts011f-0x00000050.json index 29ca37d22..f5fce0c26 100644 --- a/tests/data/devices/tz3000-pl5v1yyy-ts011f-0x00000050.json +++ b/tests/data/devices/tz3000-pl5v1yyy-ts011f-0x00000050.json @@ -784,391 +784,331 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 236 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 236, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -41 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -41, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-2", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-2", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-3", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-3", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-4", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 4, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-4", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-5", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 5, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-5", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 5, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-qa8s8vca-ts130f.json b/tests/data/devices/tz3000-qa8s8vca-ts130f.json index eb316e19a..18ae45fbf 100644 --- a/tests/data/devices/tz3000-qa8s8vca-ts130f.json +++ b/tests/data/devices/tz3000-qa8s8vca-ts130f.json @@ -194,157 +194,131 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:49:87:24-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:fb:49:87:24", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:49:87:24-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:49:87:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:49:87:24-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:49:87:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:49:87:24-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:49:87:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:49:87:24-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:49:87:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:49:87:24-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:49:87:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:49:87:24-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:49:87:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:49:87:24-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:49:87:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:49:87:24-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:49:87:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:49:87:24-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:49:87:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-qdnrzbd3-ts0202-0x00000046.json b/tests/data/devices/tz3000-qdnrzbd3-ts0202-0x00000046.json index ede7a2056..797e1588d 100644 --- a/tests/data/devices/tz3000-qdnrzbd3-ts0202-0x00000046.json +++ b/tests/data/devices/tz3000-qdnrzbd3-ts0202-0x00000046.json @@ -211,217 +211,183 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 244 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 244, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -50 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -50, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-qqdbccb3-ts130f.json b/tests/data/devices/tz3000-qqdbccb3-ts130f.json index 32b3289aa..99ce49d76 100644 --- a/tests/data/devices/tz3000-qqdbccb3-ts130f.json +++ b/tests/data/devices/tz3000-qqdbccb3-ts130f.json @@ -140,189 +140,158 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:e5:28:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:e5:28:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:5a:e5:28:64", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:e5:28:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:e5:28:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:e5:28:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:e5:28:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:e5:28:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:e5:28:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:e5:28:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:e5:28:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:e5:28:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-r6buo8ba-ts011f.json b/tests/data/devices/tz3000-r6buo8ba-ts011f.json index eb0243bee..b3cfc5555 100644 --- a/tests/data/devices/tz3000-r6buo8ba-ts011f.json +++ b/tests/data/devices/tz3000-r6buo8ba-ts011f.json @@ -397,285 +397,247 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 95.36, - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 95.36, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 1.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.045 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.045, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 245.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 245.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-rbl8c85w-ts0012.json b/tests/data/devices/tz3000-rbl8c85w-ts0012.json index c0488968a..e5260c5f0 100644 --- a/tests/data/devices/tz3000-rbl8c85w-ts0012.json +++ b/tests/data/devices/tz3000-rbl8c85w-ts0012.json @@ -207,229 +207,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:31:66:45-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:31:66:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:31:66:45-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:31:66:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:31:66:45-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:31:66:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:31:66:45-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:31:66:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:31:66:45-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:31:66:45", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:31:66:45-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:31:66:45", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:31:66:45-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:31:66:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 47 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:31:66:45-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:31:66:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 47, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:31:66:45-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:31:66:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:31:66:45-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:31:66:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:31:66:45-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:31:66:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:31:66:45-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:31:66:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-sgb0xhwn-ts011f-0x00000050.json b/tests/data/devices/tz3000-sgb0xhwn-ts011f-0x00000050.json index b2e86d711..8bb2e55ed 100644 --- a/tests/data/devices/tz3000-sgb0xhwn-ts011f-0x00000050.json +++ b/tests/data/devices/tz3000-sgb0xhwn-ts011f-0x00000050.json @@ -630,411 +630,351 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "LightWhenOn" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LightWhenOn", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "LastState" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LastState", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 208 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 208, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -48 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -48, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "TuyaChildLockSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-2", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-2", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-snq47izk-ts0013.json b/tests/data/devices/tz3000-snq47izk-ts0013.json index 27a0a77a8..cdbf2bbd8 100644 --- a/tests/data/devices/tz3000-snq47izk-ts0013.json +++ b/tests/data/devices/tz3000-snq47izk-ts0013.json @@ -254,279 +254,220 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-tgddllx4-ts0001.json b/tests/data/devices/tz3000-tgddllx4-ts0001.json index f8ec4d389..983b301c1 100644 --- a/tests/data/devices/tz3000-tgddllx4-ts0001.json +++ b/tests/data/devices/tz3000-tgddllx4-ts0001.json @@ -374,275 +374,233 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 237.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 237.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ] }, diff --git a/tests/data/devices/tz3000-tqlv4ug4-ts0001-0x00000048.json b/tests/data/devices/tz3000-tqlv4ug4-ts0001-0x00000048.json index b6dafd8c2..71b06cf72 100644 --- a/tests/data/devices/tz3000-tqlv4ug4-ts0001-0x00000048.json +++ b/tests/data/devices/tz3000-tqlv4ug4-ts0001-0x00000048.json @@ -562,377 +562,319 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "LightWhenOn" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LightWhenOn", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 208 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 208, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -59 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -59, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-typdpbpg-ts011f-0x10013607.json b/tests/data/devices/tz3000-typdpbpg-ts011f-0x10013607.json index 903059c65..a3a2b4412 100644 --- a/tests/data/devices/tz3000-typdpbpg-ts011f-0x10013607.json +++ b/tests/data/devices/tz3000-typdpbpg-ts011f-0x10013607.json @@ -576,418 +576,358 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "LightWhenOn" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LightWhenOn", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 132 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 132, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -67 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -67, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 3.87, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3.87, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 1.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.022 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.022, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 235.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 235.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "TuyaChildLockSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x10013607", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x10013607", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-u3oupgdy-ts0004-0x00000050.json b/tests/data/devices/tz3000-u3oupgdy-ts0004-0x00000050.json index 57e7a3771..8c2ae84e1 100644 --- a/tests/data/devices/tz3000-u3oupgdy-ts0004-0x00000050.json +++ b/tests/data/devices/tz3000-u3oupgdy-ts0004-0x00000050.json @@ -503,395 +503,313 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 4, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 4, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "LightWhenOn" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LightWhenOn", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-u4kojtqz-ts0002-0x10013607.json b/tests/data/devices/tz3000-u4kojtqz-ts0002-0x10013607.json index 280df5f70..8571a7302 100644 --- a/tests/data/devices/tz3000-u4kojtqz-ts0002-0x10013607.json +++ b/tests/data/devices/tz3000-u4kojtqz-ts0002-0x10013607.json @@ -288,330 +288,269 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-2-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-2-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x10013607", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x10013607", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-uwkja6z1-ts011f-0x00000045.json b/tests/data/devices/tz3000-uwkja6z1-ts011f-0x00000045.json index 129234ffe..b53c47746 100644 --- a/tests/data/devices/tz3000-uwkja6z1-ts011f-0x00000045.json +++ b/tests/data/devices/tz3000-uwkja6z1-ts011f-0x00000045.json @@ -726,445 +726,385 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 318.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 318.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 241.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 241.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 318.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 318.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 241.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 241.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-2", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-2", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-vw8pawxa-ts130f-0x00000048.json b/tests/data/devices/tz3000-vw8pawxa-ts130f-0x00000048.json index bafdbc4c2..cffc27b01 100644 --- a/tests/data/devices/tz3000-vw8pawxa-ts130f-0x00000048.json +++ b/tests/data/devices/tz3000-vw8pawxa-ts130f-0x00000048.json @@ -280,129 +280,108 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:c9:40:68-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:47:c9:40:68", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:c9:40:68-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:c9:40:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:c9:40:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:c9:40:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:c9:40:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:c9:40:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:c9:40:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:c9:40:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:c9:40:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:c9:40:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:c9:40:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:c9:40:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:c9:40:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:c9:40:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-w0qqde0g-ts011f.json b/tests/data/devices/tz3000-w0qqde0g-ts011f.json index b79edbd4a..9cee5d0d8 100644 --- a/tests/data/devices/tz3000-w0qqde0g-ts011f.json +++ b/tests/data/devices/tz3000-w0qqde0g-ts011f.json @@ -418,348 +418,300 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "LightWhenOn" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LightWhenOn", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "LastState" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LastState", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 208.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 208.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "TuyaChildLockSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ] }, diff --git a/tests/data/devices/tz3000-wcgyhnp3-ts0222-0x00000045.json b/tests/data/devices/tz3000-wcgyhnp3-ts0222-0x00000045.json index 5fb95229c..576365f06 100644 --- a/tests/data/devices/tz3000-wcgyhnp3-ts0222-0x00000045.json +++ b/tests/data/devices/tz3000-wcgyhnp3-ts0222-0x00000045.json @@ -238,274 +238,230 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 200 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 200, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-wkai4ga5-ts0044.json b/tests/data/devices/tz3000-wkai4ga5-ts0044.json index 1fae422ad..6c1af73cc 100644 --- a/tests/data/devices/tz3000-wkai4ga5-ts0044.json +++ b/tests/data/devices/tz3000-wkai4ga5-ts0044.json @@ -233,334 +233,286 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-3-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-3-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-4-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 4, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-4-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 4, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": false } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-wkr3jqmr-ts0004.json b/tests/data/devices/tz3000-wkr3jqmr-ts0004.json index 36d6d6b8a..638f21354 100644 --- a/tests/data/devices/tz3000-wkr3jqmr-ts0004.json +++ b/tests/data/devices/tz3000-wkr3jqmr-ts0004.json @@ -526,429 +526,342 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 4, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 4, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "LightWhenOn" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LightWhenOn", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "LastState" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LastState", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-6-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "TuyaChildLockSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-6-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json b/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json index d481422e0..d3688a77c 100644 --- a/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json +++ b/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json @@ -229,245 +229,202 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "LightWhenOn" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LightWhenOn", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 120 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 120, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -81 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -81, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000051", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000051", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-xa9g7rxs-ts1002.json b/tests/data/devices/tz3000-xa9g7rxs-ts1002.json index cd851e866..93b7851c7 100644 --- a/tests/data/devices/tz3000-xa9g7rxs-ts1002.json +++ b/tests/data/devices/tz3000-xa9g7rxs-ts1002.json @@ -213,161 +213,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-xabckq1v-ts004f.json b/tests/data/devices/tz3000-xabckq1v-ts004f.json index 692cb203c..8b17a919d 100644 --- a/tests/data/devices/tz3000-xabckq1v-ts004f.json +++ b/tests/data/devices/tz3000-xabckq1v-ts004f.json @@ -300,241 +300,202 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 4, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": false } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-xkap8wtb-ts000f.json b/tests/data/devices/tz3000-xkap8wtb-ts000f.json index f8ddb4688..5b2dfd50e 100644 --- a/tests/data/devices/tz3000-xkap8wtb-ts000f.json +++ b/tests/data/devices/tz3000-xkap8wtb-ts000f.json @@ -423,377 +423,321 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "On" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "On", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.066 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.066, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 231.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 231.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-xr3htd96-ts0201.json b/tests/data/devices/tz3000-xr3htd96-ts0201.json index b277b5d86..cb92aac08 100644 --- a/tests/data/devices/tz3000-xr3htd96-ts0201.json +++ b/tests/data/devices/tz3000-xr3htd96-ts0201.json @@ -178,217 +178,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 21.21 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 21.21, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 55.47 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 55.47, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-xxacnuab-ts0004.json b/tests/data/devices/tz3000-xxacnuab-ts0004.json index 9c4f13f53..362efd0d0 100644 --- a/tests/data/devices/tz3000-xxacnuab-ts0004.json +++ b/tests/data/devices/tz3000-xxacnuab-ts0004.json @@ -490,363 +490,286 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 4, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 4, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "Off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Off", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-yj6k7vfo-ts0041-0x00000044.json b/tests/data/devices/tz3000-yj6k7vfo-ts0041-0x00000044.json index afbfeee87..9c73f5d93 100644 --- a/tests/data/devices/tz3000-yj6k7vfo-ts0041-0x00000044.json +++ b/tests/data/devices/tz3000-yj6k7vfo-ts0041-0x00000044.json @@ -186,129 +186,110 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 18 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 18, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-ynmowqk2-ts011f.json b/tests/data/devices/tz3000-ynmowqk2-ts011f.json index 2f0ac05c6..01b9cab06 100644 --- a/tests/data/devices/tz3000-ynmowqk2-ts011f.json +++ b/tests/data/devices/tz3000-ynmowqk2-ts011f.json @@ -424,287 +424,247 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 235.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 235.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-zl1kmjqx-0x10013001.json b/tests/data/devices/tz3000-zl1kmjqx-0x10013001.json index 77cd60eac..2c9020cc2 100644 --- a/tests/data/devices/tz3000-zl1kmjqx-0x10013001.json +++ b/tests/data/devices/tz3000-zl1kmjqx-0x10013001.json @@ -179,219 +179,183 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 72.0, - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 72.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 20.62 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20.62, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 46.62 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 46.62, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x10013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x10013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-zl1kmjqx-ty0201.json b/tests/data/devices/tz3000-zl1kmjqx-ty0201.json index f7e566ca7..d4caa6b0b 100644 --- a/tests/data/devices/tz3000-zl1kmjqx-ty0201.json +++ b/tests/data/devices/tz3000-zl1kmjqx-ty0201.json @@ -172,191 +172,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 3.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 3.2 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 17.43 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 17.43, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-zv6x8bt2-ts011f.json b/tests/data/devices/tz3000-zv6x8bt2-ts011f.json index be115d3b8..de0016bb6 100644 --- a/tests/data/devices/tz3000-zv6x8bt2-ts011f.json +++ b/tests/data/devices/tz3000-zv6x8bt2-ts011f.json @@ -578,385 +578,330 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - "state": { - "class_name": "TuyaBacklightModeSelectEntity", - "available": true, - "state": "LightWhenOn" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LightWhenOn", + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - }, - "state": { - "class_name": "TuyaPowerOnStateSelectEntity", - "available": true, - "state": "LastState" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "LastState", + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 51 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 51, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 1.67, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.67, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 1415.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1415.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 6.076 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 6.076, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 242.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 242.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "TuyaChildLockSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3000-zw7yf6yk-ts0001-0x00000048.json b/tests/data/devices/tz3000-zw7yf6yk-ts0001-0x00000048.json index d835fcbcd..deb8a993f 100644 --- a/tests/data/devices/tz3000-zw7yf6yk-ts0001-0x00000048.json +++ b/tests/data/devices/tz3000-zw7yf6yk-ts0001-0x00000048.json @@ -425,311 +425,263 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3002-vaq2bfcu-ts0726-0x00000051.json b/tests/data/devices/tz3002-vaq2bfcu-ts0726-0x00000051.json index fd5824660..ef9d29a91 100644 --- a/tests/data/devices/tz3002-vaq2bfcu-ts0726-0x00000051.json +++ b/tests/data/devices/tz3002-vaq2bfcu-ts0726-0x00000051.json @@ -470,285 +470,235 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 4, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-5-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 5, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-5-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 5, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-6-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 6, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-6-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 6, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000051", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000051", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3002-zjuvw9zf-ts0726-0x00000055.json b/tests/data/devices/tz3002-zjuvw9zf-ts0726-0x00000055.json index b6ae252f1..8dcfff2c0 100644 --- a/tests/data/devices/tz3002-zjuvw9zf-ts0726-0x00000055.json +++ b/tests/data/devices/tz3002-zjuvw9zf-ts0726-0x00000055.json @@ -266,181 +266,151 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 184 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 184, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -54 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -54, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:fa:6e:0f-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:fa:6e:0f-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000055", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000055", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3040-bb6xaihh-ts0202-0x00000048.json b/tests/data/devices/tz3040-bb6xaihh-ts0202-0x00000048.json index ba489dd10..37de92fcf 100644 --- a/tests/data/devices/tz3040-bb6xaihh-ts0202-0x00000048.json +++ b/tests/data/devices/tz3040-bb6xaihh-ts0202-0x00000048.json @@ -236,219 +236,183 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 136 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 136, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -66 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -66, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": 3.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-09hzmirw-ts0502b-0x0000005b.json b/tests/data/devices/tz3210-09hzmirw-ts0502b-0x0000005b.json index 2f1311585..5d4470c81 100644 --- a/tests/data/devices/tz3210-09hzmirw-ts0502b-0x0000005b.json +++ b/tests/data/devices/tz3210-09hzmirw-ts0502b-0x0000005b.json @@ -304,214 +304,176 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:d3:8d:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:d3:8d:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:d3:8d:53-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:93:d3:8d:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 56, - "xy_color": null, - "color_temp": 500, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:d3:8d:53-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:d3:8d:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 56, + "xy_color": null, + "color_temp": 500, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:d3:8d:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 153 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:d3:8d:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 153, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:d3:8d:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:d3:8d:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:d3:8d:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:d3:8d:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:d3:8d:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000005b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:d3:8d:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000005b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-0jxeoadc-ts0049.json b/tests/data/devices/tz3210-0jxeoadc-ts0049.json index fb869efb8..e839f2ed7 100644 --- a/tests/data/devices/tz3210-0jxeoadc-ts0049.json +++ b/tests/data/devices/tz3210-0jxeoadc-ts0049.json @@ -190,219 +190,184 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Irrigation duration", - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-valve_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 1 - } + "fallback_name": "Irrigation duration", + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-valve_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "min" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 0.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": "Error status", - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-error_status", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "error_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Error status", + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-error_status", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "error_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-3mpwqzuu-ts110e-0x00000040.json b/tests/data/devices/tz3210-3mpwqzuu-ts110e-0x00000040.json index c460327ec..416ce5074 100644 --- a/tests/data/devices/tz3210-3mpwqzuu-ts110e-0x00000040.json +++ b/tests/data/devices/tz3210-3mpwqzuu-ts110e-0x00000040.json @@ -382,231 +382,185 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:01:e4:a9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:01:e4:a9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:a9:87-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:01:e4:a9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:a9:87-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:01:e4:a9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:a9:87-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:01:e4:a9:87", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:a9:87-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:01:e4:a9:87", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:01:e4:a9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 176 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:01:e4:a9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 176, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:01:e4:a9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -67 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:01:e4:a9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -67, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:01:e4:a9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:01:e4:a9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-3ulg9kpo-ts0021-0x00000042.json b/tests/data/devices/tz3210-3ulg9kpo-ts0021-0x00000042.json index 8aaf4f31b..87e531302 100644 --- a/tests/data/devices/tz3210-3ulg9kpo-ts0021-0x00000042.json +++ b/tests/data/devices/tz3210-3ulg9kpo-ts0021-0x00000042.json @@ -180,158 +180,134 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 116 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 116, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -71 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -71, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 0.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000042", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000042", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-3ulg9kpo-ts0021.json b/tests/data/devices/tz3210-3ulg9kpo-ts0021.json index d64436164..1863e028c 100644 --- a/tests/data/devices/tz3210-3ulg9kpo-ts0021.json +++ b/tests/data/devices/tz3210-3ulg9kpo-ts0021.json @@ -186,158 +186,134 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 0.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-5rta89nj-ts0601.json b/tests/data/devices/tz3210-5rta89nj-ts0601.json index d8f115203..1164b3ed4 100644 --- a/tests/data/devices/tz3210-5rta89nj-ts0601.json +++ b/tests/data/devices/tz3210-5rta89nj-ts0601.json @@ -223,190 +223,161 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:be:aa:be:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:aa:be:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:aa:be:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:aa:be:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:aa:be:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:aa:be:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:aa:be:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:aa:be:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:aa:be:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:be:aa:be:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:aa:be:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:aa:be:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-7vgttna6-ts0001-0x00000073.json b/tests/data/devices/tz3210-7vgttna6-ts0001-0x00000073.json index 702610b1d..26b1fa030 100644 --- a/tests/data/devices/tz3210-7vgttna6-ts0001-0x00000073.json +++ b/tests/data/devices/tz3210-7vgttna6-ts0001-0x00000073.json @@ -141,123 +141,103 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 21 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 21, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -90 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -90, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000073", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000073", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-a04acm9s-ts0001-0x00000077.json b/tests/data/devices/tz3210-a04acm9s-ts0001-0x00000077.json index de6727191..9389b8750 100644 --- a/tests/data/devices/tz3210-a04acm9s-ts0001-0x00000077.json +++ b/tests/data/devices/tz3210-a04acm9s-ts0001-0x00000077.json @@ -147,123 +147,103 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6e:06:95:22-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6e:06:95:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 156 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 156, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6e:06:95:22-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6e:06:95:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -61 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -61, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6e:06:95:22-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:6e:06:95:22", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6e:06:95:22-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6e:06:95:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000077", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000077", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json b/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json index 1eb662659..d9cd9420a 100644 --- a/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json +++ b/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json @@ -304,284 +304,236 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 1000 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 270, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 270, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 1000 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1000, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 1000 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1000, + "mode": "auto", + "native_max_value": 1000, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 160 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 160, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-comkuwws-ts0502b-0x00000065.json b/tests/data/devices/tz3210-comkuwws-ts0502b-0x00000065.json index f2388b487..ed80452e2 100644 --- a/tests/data/devices/tz3210-comkuwws-ts0502b-0x00000065.json +++ b/tests/data/devices/tz3210-comkuwws-ts0502b-0x00000065.json @@ -304,181 +304,148 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 64, - "xy_color": null, - "color_temp": 500, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 64, + "xy_color": null, + "color_temp": 500, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000065", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000065", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-dwytrmda-ts130f-0x00000042.json b/tests/data/devices/tz3210-dwytrmda-ts130f-0x00000042.json index 14ccef364..68375a110 100644 --- a/tests/data/devices/tz3210-dwytrmda-ts130f-0x00000042.json +++ b/tests/data/devices/tz3210-dwytrmda-ts130f-0x00000042.json @@ -326,129 +326,108 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:ad:85:85-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:98:ad:85:85", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:ad:85:85-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:ad:85:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:ad:85:85-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:ad:85:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:ad:85:85-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:ad:85:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:ad:85:85-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:ad:85:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:ad:85:85-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:ad:85:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:ad:85:85-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:ad:85:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000042", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:ad:85:85-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:ad:85:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000042", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-ehcanwyc-ts0502b-0x00000065.json b/tests/data/devices/tz3210-ehcanwyc-ts0502b-0x00000065.json index 1a342476f..8c705ee79 100644 --- a/tests/data/devices/tz3210-ehcanwyc-ts0502b-0x00000065.json +++ b/tests/data/devices/tz3210-ehcanwyc-ts0502b-0x00000065.json @@ -328,181 +328,148 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 160 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 160, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000065", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000065", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-ekjc2rzh-ts0225.json b/tests/data/devices/tz3210-ekjc2rzh-ts0225.json index 1a27ef388..cb72dc683 100644 --- a/tests/data/devices/tz3210-ekjc2rzh-ts0225.json +++ b/tests/data/devices/tz3210-ekjc2rzh-ts0225.json @@ -168,124 +168,104 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:b6:44:52:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:44:52:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:44:52:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:44:52:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:44:52:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:44:52:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b6:44:52:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:44:52:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-hxtfthp5-ts0505b.json b/tests/data/devices/tz3210-hxtfthp5-ts0505b.json index 98b450521..8978faa3a 100644 --- a/tests/data/devices/tz3210-hxtfthp5-ts0505b.json +++ b/tests/data/devices/tz3210-hxtfthp5-ts0505b.json @@ -315,218 +315,180 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:d6:8f:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:d6:8f:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:d6:8f:73-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:99:d6:8f:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:d6:8f:73-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:d6:8f:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:d6:8f:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 498 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:d6:8f:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 498, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:d6:8f:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:d6:8f:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:d6:8f:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:d6:8f:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:99:d6:8f:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:d6:8f:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-j4pdtz9v-ts0001-0x00000062.json b/tests/data/devices/tz3210-j4pdtz9v-ts0001-0x00000062.json index e52168dba..402407498 100644 --- a/tests/data/devices/tz3210-j4pdtz9v-ts0001-0x00000062.json +++ b/tests/data/devices/tz3210-j4pdtz9v-ts0001-0x00000062.json @@ -203,350 +203,295 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Down movement", - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-down_movement", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "down_movement", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 50, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Down movement", + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-down_movement", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "down_movement", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 50, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Sustain time", - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-sustain_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "sustain_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Sustain time", + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-sustain_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "sustain_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Up movement", - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-up_movement", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "up_movement", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 50, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Up movement", + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-up_movement", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "up_movement", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" } ], "select": [ { - "info_object": { - "fallback_name": "Mode", - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "FingerBotMode", - "options": [ - "CLICK", - "SWITCH", - "PROGRAM" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "SWITCH" - } + "fallback_name": "Mode", + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "SWITCH", + "enum": "FingerBotMode", + "options": [ + "CLICK", + "SWITCH", + "PROGRAM" + ] }, { - "info_object": { - "fallback_name": "Reverse", - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-reverse", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "reverse", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "FingerBotReverse", - "options": [ - "UP ON", - "UP OFF" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Reverse", + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-reverse", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "reverse", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "FingerBotReverse", + "options": [ + "UP ON", + "UP OFF" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "CR2", - "battery_quantity": 1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2", + "battery_quantity": 1, + "battery_voltage": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": "Touch control", - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-touch_control", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "touch_control", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "touch_control", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Touch control", + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-touch_control", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "touch_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "touch_control", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000062", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000062", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-jaap6jeb-ts0505b-0x00000065.json b/tests/data/devices/tz3210-jaap6jeb-ts0505b-0x00000065.json index 2af972aa3..a67fad904 100644 --- a/tests/data/devices/tz3210-jaap6jeb-ts0505b-0x00000065.json +++ b/tests/data/devices/tz3210-jaap6jeb-ts0505b-0x00000065.json @@ -358,185 +358,152 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:42:5d:80:e8:43-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:42:5d:80:e8:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "a4:c1:38:42:5d:80:e8:43-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:42:5d:80:e8:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:42:5d:80:e8:43-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "a4:c1:38:42:5d:80:e8:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 229, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "a4:c1:38:42:5d:80:e8:43-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:42:5d:80:e8:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 229, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:42:5d:80:e8:43-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:42:5d:80:e8:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:42:5d:80:e8:43-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:42:5d:80:e8:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:42:5d:80:e8:43-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:42:5d:80:e8:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:42:5d:80:e8:43-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:42:5d:80:e8:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:42:5d:80:e8:43-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:42:5d:80:e8:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000065", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:42:5d:80:e8:43-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:42:5d:80:e8:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000065", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-jtifm80b-ts0502b-0x00000065.json b/tests/data/devices/tz3210-jtifm80b-ts0502b-0x00000065.json index 58997bc0b..4ccd3907b 100644 --- a/tests/data/devices/tz3210-jtifm80b-ts0502b-0x00000065.json +++ b/tests/data/devices/tz3210-jtifm80b-ts0502b-0x00000065.json @@ -304,181 +304,148 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 120, - "xy_color": null, - "color_temp": 482, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 120, + "xy_color": null, + "color_temp": 482, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 128 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 128, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -68 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -68, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000065", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000065", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-k1msuvg6-ts110e-0x00000040.json b/tests/data/devices/tz3210-k1msuvg6-ts110e-0x00000040.json index 84c009369..045a77e53 100644 --- a/tests/data/devices/tz3210-k1msuvg6-ts110e-0x00000040.json +++ b/tests/data/devices/tz3210-k1msuvg6-ts110e-0x00000040.json @@ -333,180 +333,147 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:31:4b:13:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:31:4b:13:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:4b:13:3c-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:31:4b:13:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:4b:13:3c-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:31:4b:13:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:31:4b:13:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 176 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:31:4b:13:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 176, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:31:4b:13:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -67 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:31:4b:13:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -67, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:31:4b:13:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:31:4b:13:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-kjafhwd2-ts0210-0x00000044.json b/tests/data/devices/tz3210-kjafhwd2-ts0210-0x00000044.json index ae73986a9..60f1272fb 100644 --- a/tests/data/devices/tz3210-kjafhwd2-ts0210-0x00000044.json +++ b/tests/data/devices/tz3210-kjafhwd2-ts0210-0x00000044.json @@ -242,185 +242,156 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:3b:15:29:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3b:15:29:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3b:15:29:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 224 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 224, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3b:15:29:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -44 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -44, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3b:15:29:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 16.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 16.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3b:15:29:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-klv2wul0-ts0505b-0x00000065.json b/tests/data/devices/tz3210-klv2wul0-ts0505b-0x00000065.json index 51a215ac3..f7c397de4 100644 --- a/tests/data/devices/tz3210-klv2wul0-ts0505b-0x00000065.json +++ b/tests/data/devices/tz3210-klv2wul0-ts0505b-0x00000065.json @@ -304,185 +304,152 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:27:e7:71-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:27:e7:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:27:e7:71-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:27:e7:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:27:e7:71-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:22:27:e7:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 500, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:27:e7:71-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:27:e7:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 500, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:27:e7:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:27:e7:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 225 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:27:e7:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:27:e7:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 225, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:27:e7:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:27:e7:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:27:e7:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:27:e7:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:27:e7:71-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:27:e7:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000065", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:27:e7:71-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:27:e7:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000065", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-ncw88jfq-ts0201-0x00000083.json b/tests/data/devices/tz3210-ncw88jfq-ts0201-0x00000083.json index 88490e798..cf072d62b 100644 --- a/tests/data/devices/tz3210-ncw88jfq-ts0201-0x00000083.json +++ b/tests/data/devices/tz3210-ncw88jfq-ts0201-0x00000083.json @@ -179,185 +179,156 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:03:d8:01-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:03:d8:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:03:d8:01-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:03:d8:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:03:d8:01-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:03:d8:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:03:d8:01-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:03:d8:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:03:d8:01-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:03:d8:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:03:d8:01-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:94:03:d8:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:03:d8:01-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:03:d8:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 21.4 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:03:d8:01-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:03:d8:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 21.4, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:03:d8:01-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:03:d8:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 37.1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:03:d8:01-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:03:d8:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 37.1, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:03:d8:01-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:03:d8:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000083", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:03:d8:01-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:03:d8:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000083", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-qkj7rujp-ts0201-0x00000043.json b/tests/data/devices/tz3210-qkj7rujp-ts0201-0x00000043.json index af48283cf..91d89aa69 100644 --- a/tests/data/devices/tz3210-qkj7rujp-ts0201-0x00000043.json +++ b/tests/data/devices/tz3210-qkj7rujp-ts0201-0x00000043.json @@ -191,185 +191,156 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-r5afgmkl-ts0505b-0x10013607.json b/tests/data/devices/tz3210-r5afgmkl-ts0505b-0x10013607.json index 01eaa6d5e..e32b79dd8 100644 --- a/tests/data/devices/tz3210-r5afgmkl-ts0505b-0x10013607.json +++ b/tests/data/devices/tz3210-r5afgmkl-ts0505b-0x10013607.json @@ -287,377 +287,314 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.5470054169527734, - 0.4 - ], - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.5470054169527734, + 0.4 + ], + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 65535 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65535, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 10 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 10 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 126 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 126, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x10013607", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x10013607", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-ru41azca-ts0049-0x00000040.json b/tests/data/devices/tz3210-ru41azca-ts0049-0x00000040.json index 8feb33859..e017d8022 100644 --- a/tests/data/devices/tz3210-ru41azca-ts0049-0x00000040.json +++ b/tests/data/devices/tz3210-ru41azca-ts0049-0x00000040.json @@ -196,158 +196,133 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ff:97:55:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ff:97:55:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ff:97:55:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ff:97:55:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ff:97:55:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 50.0, - "battery_size": "AAA", - "battery_quantity": 4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:ff:97:55:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 50.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 4, + "battery_voltage": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ff:97:55:6f", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": true, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ff:97:55:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ff:97:55:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ff:97:55:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-sb8x2xci-ts0001-0x00000047.json b/tests/data/devices/tz3210-sb8x2xci-ts0001-0x00000047.json index 8db0ae8b3..21b0cc339 100644 --- a/tests/data/devices/tz3210-sb8x2xci-ts0001-0x00000047.json +++ b/tests/data/devices/tz3210-sb8x2xci-ts0001-0x00000047.json @@ -188,155 +188,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000047", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000047", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-sixywxvy-ts0505b.json b/tests/data/devices/tz3210-sixywxvy-ts0505b.json index f4920a7f8..ab1ddc53d 100644 --- a/tests/data/devices/tz3210-sixywxvy-ts0505b.json +++ b/tests/data/devices/tz3210-sixywxvy-ts0505b.json @@ -339,185 +339,152 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.3469901579308766, - 0.1369954985885405 - ], - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.3469901579308766, + 0.1369954985885405 + ], + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-tgvtvdoc-ts0207-0x00000043.json b/tests/data/devices/tz3210-tgvtvdoc-ts0207-0x00000043.json index df8c0a25d..db51ffc81 100644 --- a/tests/data/devices/tz3210-tgvtvdoc-ts0207-0x00000043.json +++ b/tests/data/devices/tz3210-tgvtvdoc-ts0207-0x00000043.json @@ -211,299 +211,248 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": "Cleaning reminder", - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-cleaning_reminder", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "cleaning_reminder" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Cleaning reminder", + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-cleaning_reminder", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "cleaning_reminder" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 79.0, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 79.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 0.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Average light intensity last 20 min", - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-average_light_intensity_20mins", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "average_light_intensity_20mins", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Average light intensity last 20 min", + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-average_light_intensity_20mins", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "average_light_intensity_20mins", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Rain intensity", - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-rain_intensity", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "mV" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Rain intensity", + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-rain_intensity", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "mV" }, { - "info_object": { - "fallback_name": "Today's max light intensity", - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-todays_max_light_intensity", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "todays_max_light_intensity", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Today's max light intensity", + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-todays_max_light_intensity", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "todays_max_light_intensity", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-u1dreag7-ts0502b-0x00000065.json b/tests/data/devices/tz3210-u1dreag7-ts0502b-0x00000065.json index 70e098f55..fe9dc8b6a 100644 --- a/tests/data/devices/tz3210-u1dreag7-ts0502b-0x00000065.json +++ b/tests/data/devices/tz3210-u1dreag7-ts0502b-0x00000065.json @@ -322,181 +322,148 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": 284, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": 284, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 160 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 160, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000065", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000065", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-ue9kyjnj-ts0502b-0x00000059.json b/tests/data/devices/tz3210-ue9kyjnj-ts0502b-0x00000059.json index 6de63ec05..85b646567 100644 --- a/tests/data/devices/tz3210-ue9kyjnj-ts0502b-0x00000059.json +++ b/tests/data/devices/tz3210-ue9kyjnj-ts0502b-0x00000059.json @@ -304,214 +304,176 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1e:71:5f:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1e:71:5f:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:71:5f:57-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:1e:71:5f:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:71:5f:57-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1e:71:5f:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1e:71:5f:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 54196 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1e:71:5f:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 54196, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1e:71:5f:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 124 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1e:71:5f:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 124, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1e:71:5f:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -80 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1e:71:5f:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -80, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1e:71:5f:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000059", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1e:71:5f:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000059", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-umi6vbsz-ts0505b.json b/tests/data/devices/tz3210-umi6vbsz-ts0505b.json index 8e90c5257..ddcaa587e 100644 --- a/tests/data/devices/tz3210-umi6vbsz-ts0505b.json +++ b/tests/data/devices/tz3210-umi6vbsz-ts0505b.json @@ -322,218 +322,180 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 1, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 469, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 1, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 469, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 450 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 450, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-up3pngle-ts0205.json b/tests/data/devices/tz3210-up3pngle-ts0205.json index e2c4e2c4d..11dde0235 100644 --- a/tests/data/devices/tz3210-up3pngle-ts0205.json +++ b/tests/data/devices/tz3210-up3pngle-ts0205.json @@ -210,185 +210,156 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-wuhzzfqg-ts0202-0x000000a1.json b/tests/data/devices/tz3210-wuhzzfqg-ts0202-0x000000a1.json index b78322245..156f84003 100644 --- a/tests/data/devices/tz3210-wuhzzfqg-ts0202-0x000000a1.json +++ b/tests/data/devices/tz3210-wuhzzfqg-ts0202-0x000000a1.json @@ -328,310 +328,263 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.17 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 22.17, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-2-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 55.08 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-2-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 55.08, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-3-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-3-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-3-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 10 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-3-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 10, + "suggested_display_precision": null, + "unit": "lx" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x000000a1", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x000000a1", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3210-zdrhqmo0-ts0502b-0x00000064.json b/tests/data/devices/tz3210-zdrhqmo0-ts0502b-0x00000064.json index 2b6271978..406b894e6 100644 --- a/tests/data/devices/tz3210-zdrhqmo0-ts0502b-0x00000064.json +++ b/tests/data/devices/tz3210-zdrhqmo0-ts0502b-0x00000064.json @@ -322,181 +322,148 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:d2:67:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:d2:67:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:d2:67:9e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:71:d2:67:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 3, - "xy_color": null, - "color_temp": 384, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:d2:67:9e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:d2:67:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 3, + "xy_color": null, + "color_temp": 384, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:d2:67:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 105 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:d2:67:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 105, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:d2:67:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:d2:67:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:d2:67:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000064", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:d2:67:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000064", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3218-7fiyo3kv-ts000f-0x00000051.json b/tests/data/devices/tz3218-7fiyo3kv-ts000f-0x00000051.json index 25dd048f6..97cf69045 100644 --- a/tests/data/devices/tz3218-7fiyo3kv-ts000f-0x00000051.json +++ b/tests/data/devices/tz3218-7fiyo3kv-ts000f-0x00000051.json @@ -194,179 +194,146 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000051", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000051", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3218-awarhusb-ts0225.json b/tests/data/devices/tz3218-awarhusb-ts0225.json index cd69d9639..14641f266 100644 --- a/tests/data/devices/tz3218-awarhusb-ts0225.json +++ b/tests/data/devices/tz3218-awarhusb-ts0225.json @@ -185,156 +185,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:b1:73:0b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:73:0b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:73:0b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:73:0b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:73:0b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:73:0b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:73:0b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:73:0b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:73:0b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:73:0b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3218-t9ynfz4x-ts0225-0x00000045.json b/tests/data/devices/tz3218-t9ynfz4x-ts0225-0x00000045.json index 3b4bce8c0..e1eef827b 100644 --- a/tests/data/devices/tz3218-t9ynfz4x-ts0225-0x00000045.json +++ b/tests/data/devices/tz3218-t9ynfz4x-ts0225-0x00000045.json @@ -192,156 +192,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3218-ya5d6wth-ts000f-0x00000064.json b/tests/data/devices/tz3218-ya5d6wth-ts000f-0x00000064.json index d5b50f556..e6dc9ff17 100644 --- a/tests/data/devices/tz3218-ya5d6wth-ts000f-0x00000064.json +++ b/tests/data/devices/tz3218-ya5d6wth-ts000f-0x00000064.json @@ -374,329 +374,257 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 4, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 4, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000064", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000064", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201-0x00000043.json b/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201-0x00000043.json index 2b9c868b9..c355b3b09 100644 --- a/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201-0x00000043.json +++ b/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201-0x00000043.json @@ -188,155 +188,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 232 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 232, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -42 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -42, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201.json b/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201.json index 092a74b86..1588e932e 100644 --- a/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201.json +++ b/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201.json @@ -188,155 +188,130 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz3290-ot6ewjvmejq5ekhl-ts1201-0x00000043.json b/tests/data/devices/tz3290-ot6ewjvmejq5ekhl-ts1201-0x00000043.json index 250611bb3..723ebf79a 100644 --- a/tests/data/devices/tz3290-ot6ewjvmejq5ekhl-ts1201-0x00000043.json +++ b/tests/data/devices/tz3290-ot6ewjvmejq5ekhl-ts1201-0x00000043.json @@ -202,189 +202,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:61:a8:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:61:a8:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:61:a8:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 120 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:61:a8:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 120, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:61:a8:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:61:a8:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:61:a8:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 61.0, - "battery_voltage": 1.3 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:15:61:a8:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 61.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 1.3 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:15:61:a8:f8", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:61:a8:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:61:a8:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:61:a8:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tz6210-duv6fhwt-ts0601-0x00000042.json b/tests/data/devices/tz6210-duv6fhwt-ts0601-0x00000042.json index 57cd88c2d..b2fb623ef 100644 --- a/tests/data/devices/tz6210-duv6fhwt-ts0601-0x00000042.json +++ b/tests/data/devices/tz6210-duv6fhwt-ts0601-0x00000042.json @@ -159,309 +159,259 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "tamper" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "tamper" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "min" }, { - "info_object": { - "fallback_name": "Motionless detection", - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-motionless_detection", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "motionless_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motionless detection", + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-motionless_detection", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "motionless_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" } ], "switch": [ { - "info_object": { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000042", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000042", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tzb210-417ikxay-ts0505b-0x00000040.json b/tests/data/devices/tzb210-417ikxay-ts0505b-0x00000040.json index 84b8e8d2d..7822301fe 100644 --- a/tests/data/devices/tzb210-417ikxay-ts0505b-0x00000040.json +++ b/tests/data/devices/tzb210-417ikxay-ts0505b-0x00000040.json @@ -322,218 +322,180 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:e7:c4:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:e7:c4:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:e7:c4:28-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:81:e7:c4:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 254, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:e7:c4:28-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:e7:c4:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 254, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:e7:c4:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 153 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:e7:c4:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 153, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:e7:c4:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:e7:c4:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:e7:c4:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:e7:c4:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:81:e7:c4:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:81:e7:c4:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tzb210-lmqquxus-ts0502b-0x00000040.json b/tests/data/devices/tzb210-lmqquxus-ts0502b-0x00000040.json index b5b834637..1d969127f 100644 --- a/tests/data/devices/tzb210-lmqquxus-ts0502b-0x00000040.json +++ b/tests/data/devices/tzb210-lmqquxus-ts0502b-0x00000040.json @@ -322,214 +322,176 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:78:f7:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:78:f7:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:78:f7:ef-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:02:78:f7:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 232, - "xy_color": null, - "color_temp": 0, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:78:f7:ef-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:78:f7:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 232, + "xy_color": null, + "color_temp": 0, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:78:f7:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 153 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:78:f7:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 153, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:78:f7:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 132 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:78:f7:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 132, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:78:f7:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -67 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:78:f7:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -67, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:78:f7:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:78:f7:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tzb210-rawkvnnm-ts0502b-0x00000040.json b/tests/data/devices/tzb210-rawkvnnm-ts0502b-0x00000040.json index c478b6247..6a4c8fd27 100644 --- a/tests/data/devices/tzb210-rawkvnnm-ts0502b-0x00000040.json +++ b/tests/data/devices/tzb210-rawkvnnm-ts0502b-0x00000040.json @@ -340,214 +340,176 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 84, - "xy_color": null, - "color_temp": 0, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 84, + "xy_color": null, + "color_temp": 0, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 153 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 153, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 138 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 138, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-1n2zev06-ts0601.json b/tests/data/devices/tze200-1n2zev06-ts0601.json index 69195e7d9..7948e5220 100644 --- a/tests/data/devices/tze200-1n2zev06-ts0601.json +++ b/tests/data/devices/tze200-1n2zev06-ts0601.json @@ -208,277 +208,232 @@ "zha_lib_entities": { "select": [ { - "info_object": { - "fallback_name": "Weather delay", - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-weather_delay", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "weather_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaValveWeatherDelay", - "options": [ - "Disabled", - "Delayed 24h", - "Delayed 48h", - "Delayed 72h" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Weather delay", + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-weather_delay", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "weather_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaValveWeatherDelay", + "options": [ + "Disabled", + "Delayed 24h", + "Delayed 48h", + "Delayed 72h" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "L" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": null, - "device_type": "Water Metering", - "zcl_unit_of_measurement": 7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 3, + "unit": "L", + "device_type": "Water Metering", + "status": null, + "zcl_unit_of_measurement": 7 }, { - "info_object": { - "fallback_name": "Last valve open duration", - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-last_valve_open_duration", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "last_valve_open_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "min" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Last valve open duration", + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-last_valve_open_duration", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "last_valve_open_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "min" }, { - "info_object": { - "fallback_name": "Time left", - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-time_left", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "time_left", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "s" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Time left", + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-time_left", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "time_left", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "s" }, { - "info_object": { - "fallback_name": "Timer state", - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-timer_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "timer_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Timer state", + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-timer_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "timer_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-2aaelwxk-ts0225.json b/tests/data/devices/tze200-2aaelwxk-ts0225.json index c19814853..87f2e7c51 100644 --- a/tests/data/devices/tze200-2aaelwxk-ts0225.json +++ b/tests/data/devices/tze200-2aaelwxk-ts0225.json @@ -594,656 +594,551 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": "Motion detection distance", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-large_motion_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "large_motion_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion detection distance", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-large_motion_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "large_motion_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Motion detection sensitivity", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-large_motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "large_motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion detection sensitivity", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-large_motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "large_motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Medium motion detection distance", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-medium_motion_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "medium_motion_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": 0, - "native_step": 0.01, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Medium motion detection distance", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-medium_motion_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "medium_motion_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": 0, + "native_step": 0.01, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Medium motion detection sensitivity", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-medium_motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "medium_motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Medium motion detection sensitivity", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-medium_motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "medium_motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 28800, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 28800, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Small motion detection distance", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-small_motion_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "small_motion_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": 0, - "native_step": 0.01, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Small motion detection distance", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-small_motion_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "small_motion_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": 0, + "native_step": 0.01, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Small motion detection sensitivity", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-small_motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "small_motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Small motion detection sensitivity", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-small_motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "small_motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "fading_time", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-2-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "fading_time", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-2-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "large_sensitivity", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-3-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "large_sensitivity", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-3-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "large_distance", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-4-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 4, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1000, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "large_distance", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-4-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1000, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "small_sensitivity", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-5-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 5, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "small_sensitivity", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-5-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "small_distance", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-6-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 6, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "small_distance", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-6-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 6, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "static_sensitivity", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-7-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 7, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "static_sensitivity", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-7-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 7, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "static_distance", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-8-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 8, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "static_distance", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-8-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" } ], "select": [ { - "info_object": { - "fallback_name": "Motion state", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-motion_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motion_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPresenceStateV02", - "options": [ - "Unoccupied", - "Large", - "Medium", - "Small", - "Huge", - "Gigantic" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Motion state", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-motion_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motion_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaPresenceStateV02", + "options": [ + "Unoccupied", + "Large", + "Medium", + "Small", + "Huge", + "Gigantic" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "suggested_display_precision": null, + "unit": "lx" } ], "switch": [ { - "info_object": { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ] }, diff --git a/tests/data/devices/tze200-2ekuz3dz-ts0601.json b/tests/data/devices/tze200-2ekuz3dz-ts0601.json index 342a7ebcc..1d11cd5d9 100644 --- a/tests/data/devices/tze200-2ekuz3dz-ts0601.json +++ b/tests/data/devices/tze200-2ekuz3dz-ts0601.json @@ -150,95 +150,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b0:68:9a:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b0:68:9a:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b0:68:9a:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b0:68:9a:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b0:68:9a:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b0:68:9a:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b0:68:9a:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b0:68:9a:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b0:68:9a:0a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b0:68:9a:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b0:68:9a:0a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b0:68:9a:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-2gtsuokt-ts0601.json b/tests/data/devices/tze200-2gtsuokt-ts0601.json index 488392aa1..f0c566c20 100644 --- a/tests/data/devices/tze200-2gtsuokt-ts0601.json +++ b/tests/data/devices/tze200-2gtsuokt-ts0601.json @@ -226,95 +226,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:f3:f3:1d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:f3:f3:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:f3:f3:1d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:f3:f3:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:f3:f3:1d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:f3:f3:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:f3:f3:1d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:f3:f3:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:f3:f3:1d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:f3:f3:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:f3:f3:1d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:f3:f3:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-2se8efxh-ts0601-0x00000048.json b/tests/data/devices/tze200-2se8efxh-ts0601-0x00000048.json index 9070a17d1..e8a42920e 100644 --- a/tests/data/devices/tze200-2se8efxh-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-2se8efxh-ts0601-0x00000048.json @@ -177,186 +177,156 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "SoilMoisture", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-3t91nb6k-ts0601-0x00000046.json b/tests/data/devices/tze200-3t91nb6k-ts0601-0x00000046.json index 394f88e8f..a7a5a5ff6 100644 --- a/tests/data/devices/tze200-3t91nb6k-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-3t91nb6k-ts0601-0x00000046.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ee:04:18:fc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ee:04:18:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ee:04:18:fc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ee:04:18:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ee:04:18:fc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ee:04:18:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ee:04:18:fc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ee:04:18:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ee:04:18:fc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ee:04:18:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ee:04:18:fc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ee:04:18:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-3towulqd-ts0601-0x00000046.json b/tests/data/devices/tze200-3towulqd-ts0601-0x00000046.json index f0514577f..d902bf736 100644 --- a/tests/data/devices/tze200-3towulqd-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-3towulqd-ts0601-0x00000046.json @@ -210,314 +210,264 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "number": [ { - "info_object": { - "fallback_name": "Illuminance interval", - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-illuminance_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "illuminance_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 720, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Illuminance interval", + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-illuminance_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "illuminance_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 720, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "min" } ], "select": [ { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-fading_time", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaMotionFadeTime", - "options": [ - " 10 seconds", - " 30 seconds", - " 60 seconds", - " 120 seconds" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": " 10 seconds" - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-fading_time", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": " 10 seconds", + "enum": "TuyaMotionFadeTime", + "options": [ + " 10 seconds", + " 30 seconds", + " 60 seconds", + " 120 seconds" + ] }, { - "info_object": { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaMotionPresenceSensitivity", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Medium" - } + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Medium", + "enum": "TuyaMotionPresenceSensitivity", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 10.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 340 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 340, + "suggested_display_precision": null, + "unit": "lx" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-3ylew7b4-ts0601.json b/tests/data/devices/tze200-3ylew7b4-ts0601.json index dec134d54..a72c19d18 100644 --- a/tests/data/devices/tze200-3ylew7b4-ts0601.json +++ b/tests/data/devices/tze200-3ylew7b4-ts0601.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:40:50:25-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:40:50:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 128 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:40:50:25-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:40:50:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 128, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:40:50:25-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:40:50:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -79 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:40:50:25-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:40:50:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -79, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:40:50:25-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:40:50:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:40:50:25-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:40:50:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-4utwozi2-ts0601-0x00000043.json b/tests/data/devices/tze200-4utwozi2-ts0601-0x00000043.json index 8d3287739..ec86ee701 100644 --- a/tests/data/devices/tze200-4utwozi2-ts0601-0x00000043.json +++ b/tests/data/devices/tze200-4utwozi2-ts0601-0x00000043.json @@ -195,346 +195,286 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "error_or_battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "error_or_battery_low" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 220 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 220, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -45 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -45, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-4vobcgd3-ts0601-0x00000053.json b/tests/data/devices/tze200-4vobcgd3-ts0601-0x00000053.json index 253c5d46c..1c4b76830 100644 --- a/tests/data/devices/tze200-4vobcgd3-ts0601-0x00000053.json +++ b/tests/data/devices/tze200-4vobcgd3-ts0601-0x00000053.json @@ -134,95 +134,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:51:f6:e4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:51:f6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 132 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:51:f6:e4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:51:f6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 132, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:51:f6:e4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:51:f6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -67 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:51:f6:e4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:51:f6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -67, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:51:f6:e4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ae:51:f6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000053", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:51:f6:e4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ae:51:f6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000053", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-4wxtg5y9-ts0601.json b/tests/data/devices/tze200-4wxtg5y9-ts0601.json index 2385b6f7b..513d9562a 100644 --- a/tests/data/devices/tze200-4wxtg5y9-ts0601.json +++ b/tests/data/devices/tze200-4wxtg5y9-ts0601.json @@ -192,95 +192,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:f7:e2:fc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8b:f7:e2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:f7:e2:fc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8b:f7:e2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:f7:e2:fc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8b:f7:e2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:f7:e2:fc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8b:f7:e2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:f7:e2:fc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8b:f7:e2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:f7:e2:fc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8b:f7:e2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-579lguh2-ts0601-0x00000044.json b/tests/data/devices/tze200-579lguh2-ts0601-0x00000044.json index d9e5e5a3e..37b6f73f9 100644 --- a/tests/data/devices/tze200-579lguh2-ts0601-0x00000044.json +++ b/tests/data/devices/tze200-579lguh2-ts0601-0x00000044.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7e:7b:6f:42-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7e:7b:6f:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 76 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7e:7b:6f:42-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7e:7b:6f:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 76, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7e:7b:6f:42-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7e:7b:6f:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -92 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7e:7b:6f:42-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7e:7b:6f:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -92, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7e:7b:6f:42-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7e:7b:6f:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7e:7b:6f:42-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7e:7b:6f:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-68nvbio9-ts0601.json b/tests/data/devices/tze200-68nvbio9-ts0601.json index dcb80a04f..8ba0928af 100644 --- a/tests/data/devices/tze200-68nvbio9-ts0601.json +++ b/tests/data/devices/tze200-68nvbio9-ts0601.json @@ -291,129 +291,108 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:21:db:80-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:2e:21:db:80", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 0, - "current_tilt_position": null, - "state": "closed", - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:21:db:80-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:21:db:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:21:db:80-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:21:db:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:21:db:80-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:21:db:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:21:db:80-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:21:db:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:21:db:80-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:21:db:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:21:db:80-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:21:db:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:21:db:80-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:21:db:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-6rdj8dzm-ts0601.json b/tests/data/devices/tze200-6rdj8dzm-ts0601.json index 9b1132f1b..3c637d314 100644 --- a/tests/data/devices/tze200-6rdj8dzm-ts0601.json +++ b/tests/data/devices/tze200-6rdj8dzm-ts0601.json @@ -188,346 +188,286 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "error_or_battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "error_or_battery_low" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-7bztmfm1-ts0601-0x00000046.json b/tests/data/devices/tze200-7bztmfm1-ts0601-0x00000046.json index 3d746ae11..526ddaa59 100644 --- a/tests/data/devices/tze200-7bztmfm1-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-7bztmfm1-ts0601-0x00000046.json @@ -199,263 +199,218 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "CarbonDioxideConcentration", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "ppm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "PM25", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1067", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "FormaldehydeConcentration", - "translation_key": "formaldehyde", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "FormaldehydeConcentration", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1067", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "FormaldehydeConcentration", + "translation_key": "formaldehyde", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "ppm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "VOCLevel", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-7iqgciln-ts0601-0x00000041.json b/tests/data/devices/tze200-7iqgciln-ts0601-0x00000041.json index 4c495e033..e480479fd 100644 --- a/tests/data/devices/tze200-7iqgciln-ts0601-0x00000041.json +++ b/tests/data/devices/tze200-7iqgciln-ts0601-0x00000041.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2a:c0:6c:7e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2a:c0:6c:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 164 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2a:c0:6c:7e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2a:c0:6c:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 164, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2a:c0:6c:7e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2a:c0:6c:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -59 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2a:c0:6c:7e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2a:c0:6c:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -59, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2a:c0:6c:7e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2a:c0:6c:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2a:c0:6c:7e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2a:c0:6c:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-7ytb3h8u-ts0601-0x00000048.json b/tests/data/devices/tze200-7ytb3h8u-ts0601-0x00000048.json index 6bfe21592..643bdaae3 100644 --- a/tests/data/devices/tze200-7ytb3h8u-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-7ytb3h8u-ts0601-0x00000048.json @@ -264,438 +264,368 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Irrigation cycles", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_cycles", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_cycles", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Irrigation cycles", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_cycles", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_cycles", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Irrigation interval", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Irrigation interval", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Irrigation target", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_target", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_target", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Irrigation target", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_target", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_target", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": "Irrigation mode", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "irrigation_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "GiexIrrigationMode", - "options": [ - "Duration", - "Capacity" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Duration" - } + "fallback_name": "Irrigation mode", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "irrigation_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Duration", + "enum": "GiexIrrigationMode", + "options": [ + "Duration", + "Capacity" + ] }, { - "info_object": { - "fallback_name": "Weather delay", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-weather_delay", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "weather_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "GiexIrrigationWeatherDelay", - "options": [ - "NoDelay", - "TwentyFourHourDelay", - "FortyEightHourDelay", - "SeventyTwoHourDelay" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Weather delay", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-weather_delay", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "weather_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "GiexIrrigationWeatherDelay", + "options": [ + "NoDelay", + "TwentyFourHourDelay", + "FortyEightHourDelay", + "SeventyTwoHourDelay" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 200.0, - "battery_size": "AA", - "battery_quantity": 4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 200.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "L" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Water Metering", - "zcl_unit_of_measurement": 7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "L", + "device_type": "Water Metering", + "status": null, + "zcl_unit_of_measurement": 7 }, { - "info_object": { - "fallback_name": "Irrigation duration", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_duration", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "s" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": "00:00:00,0" - } + "fallback_name": "Irrigation duration", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_duration", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "00:00:00,0", + "suggested_display_precision": null, + "unit": "s" }, { - "info_object": { - "fallback_name": "Irrigation end time", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_end_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_end_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": "05:36:38" - } + "fallback_name": "Irrigation end time", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_end_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_end_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "05:36:38", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Irrigation start time", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_start_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_start_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": "05:36:38" - } + "fallback_name": "Irrigation start time", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_start_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_start_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "05:36:38", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-81isopgh-ts0601-0x00000048.json b/tests/data/devices/tze200-81isopgh-ts0601-0x00000048.json index 8d9275bdc..928b52d5f 100644 --- a/tests/data/devices/tze200-81isopgh-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-81isopgh-ts0601-0x00000048.json @@ -294,312 +294,262 @@ "zha_lib_entities": { "select": [ { - "info_object": { - "fallback_name": "Weather delay", - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-weather_delay", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "weather_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaValveWeatherDelay", - "options": [ - "Disabled", - "Delayed 24h", - "Delayed 48h", - "Delayed 72h" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Weather delay", + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-weather_delay", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "weather_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaValveWeatherDelay", + "options": [ + "Disabled", + "Delayed 24h", + "Delayed 48h", + "Delayed 72h" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "L" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Water Metering", - "zcl_unit_of_measurement": 7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "L", + "device_type": "Water Metering", + "status": null, + "zcl_unit_of_measurement": 7 }, { - "info_object": { - "fallback_name": "Last valve open duration", - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-last_valve_open_duration", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "last_valve_open_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "min" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Last valve open duration", + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-last_valve_open_duration", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "last_valve_open_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "min" }, { - "info_object": { - "fallback_name": "Time left", - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-time_left", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "time_left", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "s" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Time left", + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-time_left", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "time_left", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "s" }, { - "info_object": { - "fallback_name": "Timer state", - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-timer_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "timer_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Timer state", + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-timer_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "timer_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-86nbew0j-ts0601.json b/tests/data/devices/tze200-86nbew0j-ts0601.json index 8d9d1eb23..8416dc16c 100644 --- a/tests/data/devices/tze200-86nbew0j-ts0601.json +++ b/tests/data/devices/tze200-86nbew0j-ts0601.json @@ -133,95 +133,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:c5:16:fc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:c5:16:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:c5:16:fc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:c5:16:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:c5:16:fc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:c5:16:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:c5:16:fc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:c5:16:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:c5:16:fc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0d:c5:16:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:c5:16:fc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:c5:16:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-8whfphjv-ts0601-0x00000048.json b/tests/data/devices/tze200-8whfphjv-ts0601-0x00000048.json index 578669da2..1a27cf35a 100644 --- a/tests/data/devices/tze200-8whfphjv-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-8whfphjv-ts0601-0x00000048.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:05:90:9e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:05:90:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:05:90:9e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:05:90:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:05:90:9e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:05:90:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:05:90:9e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:05:90:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:05:90:9e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f9:05:90:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:05:90:9e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f9:05:90:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-9caxna4s-ts0301-0x00000049.json b/tests/data/devices/tze200-9caxna4s-ts0301-0x00000049.json index 84fb46c82..c2016c691 100644 --- a/tests/data/devices/tze200-9caxna4s-ts0301-0x00000049.json +++ b/tests/data/devices/tze200-9caxna4s-ts0301-0x00000049.json @@ -232,223 +232,188 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 35.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-9xfjixap-ts0601-0x00000043.json b/tests/data/devices/tze200-9xfjixap-ts0601-0x00000043.json index 3aeeedfd6..266700d25 100644 --- a/tests/data/devices/tze200-9xfjixap-ts0601-0x00000043.json +++ b/tests/data/devices/tze200-9xfjixap-ts0601-0x00000043.json @@ -195,346 +195,286 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "error_or_battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "error_or_battery_low" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-a0syesf5-ts0601.json b/tests/data/devices/tze200-a0syesf5-ts0601.json index 6ba69fd37..318b0644e 100644 --- a/tests/data/devices/tze200-a0syesf5-ts0601.json +++ b/tests/data/devices/tze200-a0syesf5-ts0601.json @@ -153,148 +153,120 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 2, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 2, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-a1dia7ml-ts0601.json b/tests/data/devices/tze200-a1dia7ml-ts0601.json index 44668f91f..e3752343d 100644 --- a/tests/data/devices/tze200-a1dia7ml-ts0601.json +++ b/tests/data/devices/tze200-a1dia7ml-ts0601.json @@ -133,95 +133,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b7:bf:3b:5a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b7:bf:3b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b7:bf:3b:5a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b7:bf:3b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b7:bf:3b:5a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b7:bf:3b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b7:bf:3b:5a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b7:bf:3b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b7:bf:3b:5a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b7:bf:3b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b7:bf:3b:5a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b7:bf:3b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-a7sghmms-ts0601-0x00000048.json b/tests/data/devices/tze200-a7sghmms-ts0601-0x00000048.json index 9333d4def..66518c740 100644 --- a/tests/data/devices/tze200-a7sghmms-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-a7sghmms-ts0601-0x00000048.json @@ -270,438 +270,368 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Irrigation cycles", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_cycles", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_cycles", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Irrigation cycles", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_cycles", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_cycles", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Irrigation interval", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Irrigation interval", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Irrigation target", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_target", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_target", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Irrigation target", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_target", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_target", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": "Irrigation mode", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "irrigation_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "GiexIrrigationMode", - "options": [ - "Duration", - "Capacity" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Duration" - } + "fallback_name": "Irrigation mode", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "irrigation_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Duration", + "enum": "GiexIrrigationMode", + "options": [ + "Duration", + "Capacity" + ] }, { - "info_object": { - "fallback_name": "Weather delay", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-weather_delay", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "weather_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "GiexIrrigationWeatherDelay", - "options": [ - "NoDelay", - "TwentyFourHourDelay", - "FortyEightHourDelay", - "SeventyTwoHourDelay" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "NoDelay" - } + "fallback_name": "Weather delay", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-weather_delay", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "weather_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "NoDelay", + "enum": "GiexIrrigationWeatherDelay", + "options": [ + "NoDelay", + "TwentyFourHourDelay", + "FortyEightHourDelay", + "SeventyTwoHourDelay" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 90.0, - "battery_size": "AA", - "battery_quantity": 4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 90.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "L" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Water Metering", - "zcl_unit_of_measurement": 7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "L", + "device_type": "Water Metering", + "status": null, + "zcl_unit_of_measurement": 7 }, { - "info_object": { - "fallback_name": "Irrigation duration", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_duration", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "s" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 6 - } + "fallback_name": "Irrigation duration", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_duration", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 6, + "suggested_display_precision": null, + "unit": "s" }, { - "info_object": { - "fallback_name": "Irrigation end time", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_end_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_end_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": "2025-07-05 09:33:23.709383+04:00" - } + "fallback_name": "Irrigation end time", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_end_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_end_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "2025-07-05 09:33:23.709383+04:00", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Irrigation start time", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_start_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_start_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": "2025-07-05 09:33:17.905219+04:00" - } + "fallback_name": "Irrigation start time", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_start_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_start_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "2025-07-05 09:33:17.905219+04:00", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-a7sghmms-ts0601.json b/tests/data/devices/tze200-a7sghmms-ts0601.json index b500b5e6e..70e21d3bd 100644 --- a/tests/data/devices/tze200-a7sghmms-ts0601.json +++ b/tests/data/devices/tze200-a7sghmms-ts0601.json @@ -190,438 +190,368 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Irrigation cycles", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_cycles", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_cycles", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Irrigation cycles", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_cycles", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_cycles", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Irrigation interval", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Irrigation interval", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Irrigation target", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_target", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_target", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Irrigation target", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_target", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_target", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": "Irrigation mode", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "irrigation_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "GiexIrrigationMode", - "options": [ - "Duration", - "Capacity" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Irrigation mode", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "irrigation_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "GiexIrrigationMode", + "options": [ + "Duration", + "Capacity" + ] }, { - "info_object": { - "fallback_name": "Weather delay", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-weather_delay", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "weather_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "GiexIrrigationWeatherDelay", - "options": [ - "NoDelay", - "TwentyFourHourDelay", - "FortyEightHourDelay", - "SeventyTwoHourDelay" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Weather delay", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-weather_delay", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "weather_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "GiexIrrigationWeatherDelay", + "options": [ + "NoDelay", + "TwentyFourHourDelay", + "FortyEightHourDelay", + "SeventyTwoHourDelay" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 183 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 183, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "L" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": null, - "device_type": "Water Metering", - "zcl_unit_of_measurement": 7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 3, + "unit": "L", + "device_type": "Water Metering", + "status": null, + "zcl_unit_of_measurement": 7 }, { - "info_object": { - "fallback_name": "Irrigation duration", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_duration", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "s" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Irrigation duration", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_duration", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "s" }, { - "info_object": { - "fallback_name": "Irrigation end time", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_end_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_end_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Irrigation end time", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_end_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_end_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Irrigation start time", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_start_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_start_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Irrigation start time", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_start_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_start_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-abatw3kj-ts0601-0x00000046.json b/tests/data/devices/tze200-abatw3kj-ts0601-0x00000046.json index b44e634b3..40677144e 100644 --- a/tests/data/devices/tze200-abatw3kj-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-abatw3kj-ts0601-0x00000046.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:15:fd:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:15:fd:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:15:fd:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:15:fd:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:15:fd:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:15:fd:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:15:fd:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:15:fd:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:15:fd:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:15:fd:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:15:fd:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:15:fd:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-agumlajc-ts0601.json b/tests/data/devices/tze200-agumlajc-ts0601.json index 13821c513..5cd9d8980 100644 --- a/tests/data/devices/tze200-agumlajc-ts0601.json +++ b/tests/data/devices/tze200-agumlajc-ts0601.json @@ -188,95 +188,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:2b:64:9f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:2b:64:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:2b:64:9f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:2b:64:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:2b:64:9f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:2b:64:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:2b:64:9f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:2b:64:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:2b:64:9f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fb:2b:64:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:2b:64:9f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fb:2b:64:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-akjefhj5-ts0601.json b/tests/data/devices/tze200-akjefhj5-ts0601.json index a193f461e..d04a65f20 100644 --- a/tests/data/devices/tze200-akjefhj5-ts0601.json +++ b/tests/data/devices/tze200-akjefhj5-ts0601.json @@ -133,95 +133,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:46:3c:81-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:46:3c:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:46:3c:81-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:46:3c:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:46:3c:81-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:46:3c:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:46:3c:81-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:46:3c:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:46:3c:81-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:46:3c:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:46:3c:81-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:46:3c:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-aoclfnxz-ts0601.json b/tests/data/devices/tze200-aoclfnxz-ts0601.json index 8752d91c4..d10c84300 100644 --- a/tests/data/devices/tze200-aoclfnxz-ts0601.json +++ b/tests/data/devices/tze200-aoclfnxz-ts0601.json @@ -279,278 +279,228 @@ "zha_lib_entities": { "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 21.5, - "outdoor_temperature": null, - "target_temperature": 18.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1800, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 21.5, + "outdoor_temperature": null, + "target_temperature": 18.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1800, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-b6wax7g0-ts0601-0x00000043.json b/tests/data/devices/tze200-b6wax7g0-ts0601-0x00000043.json index 77ac9a676..09beede27 100644 --- a/tests/data/devices/tze200-b6wax7g0-ts0601-0x00000043.json +++ b/tests/data/devices/tze200-b6wax7g0-ts0601-0x00000043.json @@ -259,372 +259,307 @@ "zha_lib_entities": { "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "BecaThermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 401, - "fan_modes": null, - "preset_modes": [ - "none", - "away", - "Schedule", - "eco", - "boost", - "Temporary manual" - ], - "hvac_modes": [ - "heat" - ] - }, - "state": { - "class_name": "BecaThermostat", - "available": true, - "current_temperature": 16.0, - "outdoor_temperature": null, - "target_temperature": 14.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1400, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "BecaThermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 16.0, + "outdoor_temperature": null, + "target_temperature": 14.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 401, + "fan_modes": null, + "preset_modes": [ + "none", + "away", + "Schedule", + "eco", + "boost", + "Temporary manual" + ], + "hvac_modes": [ + "heat" + ], + "sys_mode": "[]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1400, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "heating" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "heating", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-bcusnqt8-ts0601.json b/tests/data/devices/tze200-bcusnqt8-ts0601.json index 09385bcda..c1d045df6 100644 --- a/tests/data/devices/tze200-bcusnqt8-ts0601.json +++ b/tests/data/devices/tze200-bcusnqt8-ts0601.json @@ -133,95 +133,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:88:c9:0a:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:88:c9:0a:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:88:c9:0a:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:88:c9:0a:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:88:c9:0a:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:88:c9:0a:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:88:c9:0a:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:88:c9:0a:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:88:c9:0a:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:88:c9:0a:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:88:c9:0a:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:88:c9:0a:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-bkkmqmyo-ts0601-0x00000041.json b/tests/data/devices/tze200-bkkmqmyo-ts0601-0x00000041.json index 48fa08168..559f3e9c0 100644 --- a/tests/data/devices/tze200-bkkmqmyo-ts0601-0x00000041.json +++ b/tests/data/devices/tze200-bkkmqmyo-ts0601-0x00000041.json @@ -565,286 +565,249 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 160 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 160, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 1396.8, - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1396.8, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummationReceived", - "available": true, - "state": 1253.2, - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1253.2, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 8.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 8.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 50.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 50.0, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 7, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-16", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 16, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-16", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 16, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-bvrlmajk-ts0601.json b/tests/data/devices/tze200-bvrlmajk-ts0601.json index 0366c4be3..536c1883f 100644 --- a/tests/data/devices/tze200-bvrlmajk-ts0601.json +++ b/tests/data/devices/tze200-bvrlmajk-ts0601.json @@ -133,95 +133,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:62:e5:8a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:62:e5:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:62:e5:8a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:62:e5:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:62:e5:8a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:62:e5:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:62:e5:8a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:62:e5:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:62:e5:8a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:62:e5:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:62:e5:8a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:62:e5:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-byzdayie-ts0601.json b/tests/data/devices/tze200-byzdayie-ts0601.json index 2b999c2c0..9b0e94b8e 100644 --- a/tests/data/devices/tze200-byzdayie-ts0601.json +++ b/tests/data/devices/tze200-byzdayie-ts0601.json @@ -499,225 +499,197 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 8994.84, - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 8994.84, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 184.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 184.8, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 1.499 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.499, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 229.7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 229.7, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-c88teujp-ts0601-0x00000055.json b/tests/data/devices/tze200-c88teujp-ts0601-0x00000055.json index 4ec67a698..0d341e9d5 100644 --- a/tests/data/devices/tze200-c88teujp-ts0601-0x00000055.json +++ b/tests/data/devices/tze200-c88teujp-ts0601-0x00000055.json @@ -262,470 +262,390 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Battery low", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Battery low", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "battery_low" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 19.0, - "outdoor_temperature": null, - "target_temperature": 20.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 19.0, + "outdoor_temperature": null, + "target_temperature": 20.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Valve position", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-valve_position", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "valve_position", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Valve position", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-valve_position", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "valve_position", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "switch": [ { - "info_object": { - "fallback_name": "Away mode", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-away_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "away_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "away_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Away mode", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-away_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "away_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "away_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Schedule enable", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-schedule_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "schedule_enable", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "schedule_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Schedule enable", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-schedule_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "schedule_enable", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "schedule_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000055", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000055", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-cirvgep4-ts0601-0x00000048.json b/tests/data/devices/tze200-cirvgep4-ts0601-0x00000048.json index 9f733bf42..1ae792a7f 100644 --- a/tests/data/devices/tze200-cirvgep4-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-cirvgep4-ts0601-0x00000048.json @@ -186,219 +186,184 @@ "zha_lib_entities": { "select": [ { - "info_object": { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AAA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 25.8 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25.8, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 34.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 34.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-cpbo62rn-ts0601.json b/tests/data/devices/tze200-cpbo62rn-ts0601.json index 79c4acb7a..5be471bf4 100644 --- a/tests/data/devices/tze200-cpbo62rn-ts0601.json +++ b/tests/data/devices/tze200-cpbo62rn-ts0601.json @@ -146,157 +146,131 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 56, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 56, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-cpmgn2cf-ts0601.json b/tests/data/devices/tze200-cpmgn2cf-ts0601.json index f20170553..30662cbb1 100644 --- a/tests/data/devices/tze200-cpmgn2cf-ts0601.json +++ b/tests/data/devices/tze200-cpmgn2cf-ts0601.json @@ -951,627 +951,524 @@ "zha_lib_entities": { "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "MoesThermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 401, - "fan_modes": null, - "preset_modes": [ - "none", - "away", - "Schedule", - "comfort", - "eco", - "boost", - "Complex" - ], - "hvac_modes": [ - "heat" - ] - }, - "state": { - "class_name": "MoesThermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "MoesThermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 401, + "fan_modes": null, + "preset_modes": [ + "none", + "away", + "Schedule", + "comfort", + "eco", + "boost", + "Complex" + ], + "hvac_modes": [ + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "ThermostatLocalTempCalibration", - "available": true, - "state": 35.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.0, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Eco temperature", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-10-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 10, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Eco temperature", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-10-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Away temperature", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-11-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 11, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Away temperature", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-11-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 11, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Valve State", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-3-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Valve State", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-3-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Temperature Calibration", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-4-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 4, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": -9, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Temperature Calibration", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-4-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": -9, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Boost Time", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-5-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 5, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9999, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Boost Time", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-5-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9999, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Min. temperature", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-7-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 7, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 15, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Min. temperature", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-7-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 7, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 15, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Max. temperature", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-8-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 8, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 15, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Max. temperature", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-8-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 8, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 15, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Comfort temperature", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-9-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 9, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Comfort temperature", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-9-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 9, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-crq3r3la-ck-bl702-mws-01-7016.json b/tests/data/devices/tze200-crq3r3la-ck-bl702-mws-01-7016.json index 17f739b35..72c998463 100644 --- a/tests/data/devices/tze200-crq3r3la-ck-bl702-mws-01-7016.json +++ b/tests/data/devices/tze200-crq3r3la-ck-bl702-mws-01-7016.json @@ -230,501 +230,421 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": "Motion detection distance", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-large_motion_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "large_motion_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion detection distance", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-large_motion_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "large_motion_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Motion detection sensitivity", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-large_motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "large_motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion detection sensitivity", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-large_motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "large_motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Medium motion detection distance", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-medium_motion_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "medium_motion_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": 0, - "native_step": 0.01, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Medium motion detection distance", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-medium_motion_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "medium_motion_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": 0, + "native_step": 0.01, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Medium motion detection sensitivity", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-medium_motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "medium_motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Medium motion detection sensitivity", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-medium_motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "medium_motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 28800, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 28800, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Small motion detection distance", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-small_motion_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "small_motion_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": 0, - "native_step": 0.01, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Small motion detection distance", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-small_motion_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "small_motion_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": 0, + "native_step": 0.01, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Small motion detection sensitivity", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-small_motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "small_motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Small motion detection sensitivity", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-small_motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "small_motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": "Motion state", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-motion_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motion_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPresenceStateV02", - "options": [ - "Unoccupied", - "Large", - "Medium", - "Small", - "Huge", - "Gigantic" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Motion state", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-motion_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motion_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaPresenceStateV02", + "options": [ + "Unoccupied", + "Large", + "Medium", + "Small", + "Huge", + "Gigantic" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -39 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -39, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 1255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1255, + "suggested_display_precision": null, + "unit": "lx" } ], "switch": [ { - "info_object": { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-dwcarsat-ts0601.json b/tests/data/devices/tze200-dwcarsat-ts0601.json index 70250c5ff..2c211e0fd 100644 --- a/tests/data/devices/tze200-dwcarsat-ts0601.json +++ b/tests/data/devices/tze200-dwcarsat-ts0601.json @@ -299,263 +299,218 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 23.4 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 23.4, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 57.5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 57.5, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "CarbonDioxideConcentration", - "available": true, - "state": 7.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 7.0, + "suggested_display_precision": 0, + "unit": "ppm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "PM25", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1067", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "FormaldehydeConcentration", - "translation_key": "formaldehyde", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "FormaldehydeConcentration", - "available": true, - "state": 890.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1067", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "FormaldehydeConcentration", + "translation_key": "formaldehyde", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 890.0, + "suggested_display_precision": 0, + "unit": "ppm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "VOCLevel", - "available": true, - "state": 679.9999999999999 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 679.9999999999999, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-e5hpkc6d-ts0601.json b/tests/data/devices/tze200-e5hpkc6d-ts0601.json index 199132bba..8e362c485 100644 --- a/tests/data/devices/tze200-e5hpkc6d-ts0601.json +++ b/tests/data/devices/tze200-e5hpkc6d-ts0601.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0f:8f:90:d6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0f:8f:90:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0f:8f:90:d6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0f:8f:90:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0f:8f:90:d6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0f:8f:90:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0f:8f:90:d6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0f:8f:90:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0f:8f:90:d6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0f:8f:90:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0f:8f:90:d6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0f:8f:90:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-eevqq1uv-ts0601.json b/tests/data/devices/tze200-eevqq1uv-ts0601.json index 8f83ce1e8..d9661b92a 100644 --- a/tests/data/devices/tze200-eevqq1uv-ts0601.json +++ b/tests/data/devices/tze200-eevqq1uv-ts0601.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:77:2b:fd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:77:2b:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:77:2b:fd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:77:2b:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:77:2b:fd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:77:2b:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:77:2b:fd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:77:2b:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:77:2b:fd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:77:2b:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:77:2b:fd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:77:2b:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-ewxhg6o9-ts0601.json b/tests/data/devices/tze200-ewxhg6o9-ts0601.json index 85d0d4d10..66d43e04f 100644 --- a/tests/data/devices/tze200-ewxhg6o9-ts0601.json +++ b/tests/data/devices/tze200-ewxhg6o9-ts0601.json @@ -437,225 +437,197 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 4.3385, - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4.3385, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 52.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 52.8, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.466 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.466, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 23.81 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 23.81, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-f1pvdgoh-ts0601.json b/tests/data/devices/tze200-f1pvdgoh-ts0601.json index df9652667..7615c5bfe 100644 --- a/tests/data/devices/tze200-f1pvdgoh-ts0601.json +++ b/tests/data/devices/tze200-f1pvdgoh-ts0601.json @@ -133,95 +133,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:fa:d5:b9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:fa:d5:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:fa:d5:b9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:fa:d5:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:fa:d5:b9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:fa:d5:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:fa:d5:b9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:fa:d5:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:fa:d5:b9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:fa:d5:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:fa:d5:b9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:fa:d5:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-fvldku9h-ts0601.json b/tests/data/devices/tze200-fvldku9h-ts0601.json index 0b94e4456..6ff90361d 100644 --- a/tests/data/devices/tze200-fvldku9h-ts0601.json +++ b/tests/data/devices/tze200-fvldku9h-ts0601.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ec:90:fb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f6:ec:90:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ec:90:fb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f6:ec:90:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ec:90:fb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f6:ec:90:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ec:90:fb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f6:ec:90:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ec:90:fb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f6:ec:90:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ec:90:fb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f6:ec:90:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-g9a3awaj-ts0601-0x00000048.json b/tests/data/devices/tze200-g9a3awaj-ts0601-0x00000048.json index b28a76571..1f7665163 100644 --- a/tests/data/devices/tze200-g9a3awaj-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-g9a3awaj-ts0601-0x00000048.json @@ -310,214 +310,174 @@ "zha_lib_entities": { "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-gaj531w3-ts0601.json b/tests/data/devices/tze200-gaj531w3-ts0601.json index 0201be14f..0d8488090 100644 --- a/tests/data/devices/tze200-gaj531w3-ts0601.json +++ b/tests/data/devices/tze200-gaj531w3-ts0601.json @@ -193,129 +193,108 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": null, - "current_tilt_position": null, - "state": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": null, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-gjldowol-ts0601-0x00000050.json b/tests/data/devices/tze200-gjldowol-ts0601-0x00000050.json index f3bc13125..8edaa059b 100644 --- a/tests/data/devices/tze200-gjldowol-ts0601-0x00000050.json +++ b/tests/data/devices/tze200-gjldowol-ts0601-0x00000050.json @@ -166,285 +166,240 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 3600, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 3600, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Illuminance interval", - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-illuminance_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "illuminance_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 720, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Illuminance interval", + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-illuminance_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "illuminance_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 720, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "min" } ], "select": [ { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaSensitivityMode", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaSensitivityMode", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-gkfbdvyx-ts0601.json b/tests/data/devices/tze200-gkfbdvyx-ts0601.json index 4c915d174..a3e63705e 100644 --- a/tests/data/devices/tze200-gkfbdvyx-ts0601.json +++ b/tests/data/devices/tze200-gkfbdvyx-ts0601.json @@ -132,336 +132,281 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 15000, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 15000, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 172 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 172, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -68 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -68, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m" } ], "switch": [ { - "info_object": { - "fallback_name": "Distance tracking", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-distance_tracking", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "distance_tracking", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "distance_tracking", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Distance tracking", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-distance_tracking", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "distance_tracking", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "distance_tracking", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ] }, diff --git a/tests/data/devices/tze200-gubdgai2-ts0601.json b/tests/data/devices/tze200-gubdgai2-ts0601.json index 198670ee0..d354f4c41 100644 --- a/tests/data/devices/tze200-gubdgai2-ts0601.json +++ b/tests/data/devices/tze200-gubdgai2-ts0601.json @@ -158,157 +158,131 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e5:a7:00:54", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 10, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:a7:00:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 10, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:a7:00:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:a7:00:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:a7:00:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:a7:00:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:a7:00:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:a7:00:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e5:a7:00:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:a7:00:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-guvc7pdy-ts0601-0x00000046.json b/tests/data/devices/tze200-guvc7pdy-ts0601-0x00000046.json index 056c2de01..a60417526 100644 --- a/tests/data/devices/tze200-guvc7pdy-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-guvc7pdy-ts0601-0x00000046.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:c9:f7:0f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:c9:f7:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 104 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:c9:f7:0f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:c9:f7:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 104, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:c9:f7:0f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:c9:f7:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -74 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:c9:f7:0f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:c9:f7:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -74, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:c9:f7:0f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:c9:f7:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:c9:f7:0f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:c9:f7:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-h4cgnbzg-ts0601.json b/tests/data/devices/tze200-h4cgnbzg-ts0601.json index f816d3854..fa3c49e57 100644 --- a/tests/data/devices/tze200-h4cgnbzg-ts0601.json +++ b/tests/data/devices/tze200-h4cgnbzg-ts0601.json @@ -222,379 +222,314 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Battery low", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Battery low", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "battery_low" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 26.7, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "off", - "hvac_mode": "off", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[0]/off", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 26.7, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "off", + "hvac_mode": "off", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[0]/off", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": -4 - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -4, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "off", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Valve position", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-valve_position", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "valve_position", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Valve position", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-valve_position", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "valve_position", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "switch": [ { - "info_object": { - "fallback_name": "Away mode", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-away_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "away_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "away_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Away mode", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-away_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "away_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "away_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Schedule enable", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-schedule_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "schedule_enable", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "schedule_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Schedule enable", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-schedule_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "schedule_enable", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "schedule_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ] }, diff --git a/tests/data/devices/tze200-hhrtiq0x-ts0601-0x00000055.json b/tests/data/devices/tze200-hhrtiq0x-ts0601-0x00000055.json index a4659347f..da5a321de 100644 --- a/tests/data/devices/tze200-hhrtiq0x-ts0601-0x00000055.json +++ b/tests/data/devices/tze200-hhrtiq0x-ts0601-0x00000055.json @@ -233,341 +233,281 @@ "zha_lib_entities": { "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 23.7, - "outdoor_temperature": null, - "target_temperature": 7.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 700, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 23.7, + "outdoor_temperature": null, + "target_temperature": 7.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 700, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 5.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "heating" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "heating", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000055", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000055", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-hl0ss9oa-ts0225.json b/tests/data/devices/tze200-hl0ss9oa-ts0225.json index da90ff81d..49c6b51d8 100644 --- a/tests/data/devices/tze200-hl0ss9oa-ts0225.json +++ b/tests/data/devices/tze200-hl0ss9oa-ts0225.json @@ -219,149 +219,124 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 1161 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1161, + "suggested_display_precision": null, + "unit": "lx" } ] }, diff --git a/tests/data/devices/tze200-hr0tdd47-ts0601-0x00000048.json b/tests/data/devices/tze200-hr0tdd47-ts0601-0x00000048.json index ab7b7ef67..6c4c71912 100644 --- a/tests/data/devices/tze200-hr0tdd47-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-hr0tdd47-ts0601-0x00000048.json @@ -178,249 +178,209 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": "CO concentration", - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-co", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "ppm" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "CO concentration", + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-co", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "ppm" }, { - "info_object": { - "fallback_name": "Self test result", - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-self_test_result", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "self_test_result", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Self test result", + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-self_test_result", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "self_test_result", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Mute siren", - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-mute_siren", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "mute_siren", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "mute_siren", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Mute siren", + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-mute_siren", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "mute_siren", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "mute_siren", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-iba1ckek-ts0601.json b/tests/data/devices/tze200-iba1ckek-ts0601.json index 93f55d8e1..818b2abc2 100644 --- a/tests/data/devices/tze200-iba1ckek-ts0601.json +++ b/tests/data/devices/tze200-iba1ckek-ts0601.json @@ -172,155 +172,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "vibration", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:7c:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "vibration", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:7c:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 } ] }, diff --git a/tests/data/devices/tze200-icka1clh-ts0601.json b/tests/data/devices/tze200-icka1clh-ts0601.json index 1697715f7..b2ec224a5 100644 --- a/tests/data/devices/tze200-icka1clh-ts0601.json +++ b/tests/data/devices/tze200-icka1clh-ts0601.json @@ -193,129 +193,108 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": null, - "current_tilt_position": null, - "state": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": null, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-ijey4q29-ts0601.json b/tests/data/devices/tze200-ijey4q29-ts0601.json index abc831bc8..8fd69a02d 100644 --- a/tests/data/devices/tze200-ijey4q29-ts0601.json +++ b/tests/data/devices/tze200-ijey4q29-ts0601.json @@ -197,183 +197,154 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:4e:54:99:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:99:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:54:99:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:99:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:54:99:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:99:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:54:99:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:99:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:54:99:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.3 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:4e:54:99:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.3 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:54:99:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:99:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "suggested_display_precision": null, + "unit": "lx" } ] }, diff --git a/tests/data/devices/tze200-iuk8kupi-ts0601.json b/tests/data/devices/tze200-iuk8kupi-ts0601.json index 6c2e0a47a..cff226998 100644 --- a/tests/data/devices/tze200-iuk8kupi-ts0601.json +++ b/tests/data/devices/tze200-iuk8kupi-ts0601.json @@ -156,95 +156,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:ce:89:0c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:ce:89:0c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:ce:89:0c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:ce:89:0c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:ce:89:0c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:ce:89:0c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:ce:89:0c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:ce:89:0c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:ce:89:0c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:ce:89:0c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:ce:89:0c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:ce:89:0c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-js3mgbjb-ts0601-0x00000044.json b/tests/data/devices/tze200-js3mgbjb-ts0601-0x00000044.json index 60bc383a6..9f8742f67 100644 --- a/tests/data/devices/tze200-js3mgbjb-ts0601-0x00000044.json +++ b/tests/data/devices/tze200-js3mgbjb-ts0601-0x00000044.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:3e:31:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6d:3e:31:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:3e:31:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:3e:31:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:3e:31:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6d:3e:31:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:3e:31:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:3e:31:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:3e:31:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6d:3e:31:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:3e:31:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:3e:31:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-jva8ink8-ts0601.json b/tests/data/devices/tze200-jva8ink8-ts0601.json index c41b9fe10..26d604422 100644 --- a/tests/data/devices/tze200-jva8ink8-ts0601.json +++ b/tests/data/devices/tze200-jva8ink8-ts0601.json @@ -245,368 +245,308 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 6.0 - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 6.0, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0.6 - } + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.6, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 7 - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 7, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 1.0 - } + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.0, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 2 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m" }, { - "info_object": { - "fallback_name": "Self test result", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-self_test", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "self_test", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": "CheckSuccess" - } + "fallback_name": "Self test result", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-self_test", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "self_test", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "CheckSuccess", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-jwsjbxjs-ts0601-0x00000046.json b/tests/data/devices/tze200-jwsjbxjs-ts0601-0x00000046.json index 2d79eeaa5..62fd6f8cd 100644 --- a/tests/data/devices/tze200-jwsjbxjs-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-jwsjbxjs-ts0601-0x00000046.json @@ -293,347 +293,267 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 4, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 4, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-5", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 5, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-5", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 5, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-kb5noeto-ts0601.json b/tests/data/devices/tze200-kb5noeto-ts0601.json index 5a0afd1b4..065005aee 100644 --- a/tests/data/devices/tze200-kb5noeto-ts0601.json +++ b/tests/data/devices/tze200-kb5noeto-ts0601.json @@ -209,434 +209,363 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": "Motion detection sensitivity", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion detection sensitivity", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 28800, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 28800, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Static detection distance", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-static_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "static_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Static detection distance", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-static_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "static_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Static detection sensitivity", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-static_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "static_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Static detection sensitivity", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-static_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "static_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": "Motion detection mode", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-motion_detection_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motion_detection_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaMotionDetectionMode", - "options": [ - "Only PIR", - "PIR and radar", - "Only radar" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Motion detection mode", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-motion_detection_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motion_detection_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaMotionDetectionMode", + "options": [ + "Only PIR", + "PIR and radar", + "Only radar" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 5.0, - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 1.7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 1.7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 1436 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1436, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Human motion state", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-human_motion_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "human_motion_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Human motion state", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-human_motion_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "human_motion_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ] }, diff --git a/tests/data/devices/tze200-khozatfx-ts0601.json b/tests/data/devices/tze200-khozatfx-ts0601.json index f9a700723..33d1e35bc 100644 --- a/tests/data/devices/tze200-khozatfx-ts0601.json +++ b/tests/data/devices/tze200-khozatfx-ts0601.json @@ -133,95 +133,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:a4:6c:2b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b3:a4:6c:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:a4:6c:2b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b3:a4:6c:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:a4:6c:2b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b3:a4:6c:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:a4:6c:2b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b3:a4:6c:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:a4:6c:2b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b3:a4:6c:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:a4:6c:2b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b3:a4:6c:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-kyfqmmyl-ts0601.json b/tests/data/devices/tze200-kyfqmmyl-ts0601.json index f90b70eca..3d6fde79b 100644 --- a/tests/data/devices/tze200-kyfqmmyl-ts0601.json +++ b/tests/data/devices/tze200-kyfqmmyl-ts0601.json @@ -207,247 +207,193 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:bb:95:b1-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:bb:95:b1-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:bb:95:b1-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:bb:95:b1-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-la2c2uo9-ts0601.json b/tests/data/devices/tze200-la2c2uo9-ts0601.json index e2e17c879..373f4cea5 100644 --- a/tests/data/devices/tze200-la2c2uo9-ts0601.json +++ b/tests/data/devices/tze200-la2c2uo9-ts0601.json @@ -153,148 +153,120 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:73:2a:0e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:84:73:2a:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 19, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:73:2a:0e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:73:2a:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 19, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:73:2a:0e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:73:2a:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:73:2a:0e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:73:2a:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:73:2a:0e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:73:2a:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:73:2a:0e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:73:2a:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:73:2a:0e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:84:73:2a:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:73:2a:0e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:73:2a:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-laqjm8qd-ts0601.json b/tests/data/devices/tze200-laqjm8qd-ts0601.json index 2b0d686cb..7fb7987e4 100644 --- a/tests/data/devices/tze200-laqjm8qd-ts0601.json +++ b/tests/data/devices/tze200-laqjm8qd-ts0601.json @@ -156,95 +156,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:7b:70:ef-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:7b:70:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:7b:70:ef-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:7b:70:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:7b:70:ef-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:7b:70:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:7b:70:ef-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:7b:70:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:7b:70:ef-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:7b:70:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:7b:70:ef-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:7b:70:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-libht6ua-ts0601.json b/tests/data/devices/tze200-libht6ua-ts0601.json index 01410ebd9..f5d4c680c 100644 --- a/tests/data/devices/tze200-libht6ua-ts0601.json +++ b/tests/data/devices/tze200-libht6ua-ts0601.json @@ -133,95 +133,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:a7:64:05-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:a7:64:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:a7:64:05-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:a7:64:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:a7:64:05-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:a7:64:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:a7:64:05-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:a7:64:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:a7:64:05-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:25:a7:64:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:a7:64:05-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:a7:64:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-locansqn-ts0601-0x00000048.json b/tests/data/devices/tze200-locansqn-ts0601-0x00000048.json index 9f99216e2..141649cee 100644 --- a/tests/data/devices/tze200-locansqn-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-locansqn-ts0601-0x00000048.json @@ -289,525 +289,440 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Alarm humidity max", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_humidity_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_humidity_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 60 - } + "fallback_name": "Alarm humidity max", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_humidity_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_humidity_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 60, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Alarm humidity min", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_humidity_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_humidity_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 20 - } + "fallback_name": "Alarm humidity min", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_humidity_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_humidity_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Alarm temperature max", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_temperature_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_temperature_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -20, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 39.0 - } + "fallback_name": "Alarm temperature max", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_temperature_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_temperature_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 39.0, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -20, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Alarm temperature min", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_temperature_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_temperature_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -20, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0.0 - } + "fallback_name": "Alarm temperature min", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_temperature_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_temperature_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -20, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Humidity report interval", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-humidity_report_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_report_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 120, - "native_min_value": 5, - "native_step": 5, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 120 - } + "fallback_name": "Humidity report interval", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-humidity_report_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_report_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 120, + "mode": "auto", + "native_max_value": 120, + "native_min_value": 5, + "native_step": 5, + "native_unit_of_measurement": "min" }, { - "info_object": { - "fallback_name": "Humidity sensitivity", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-humidity_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 2 - } + "fallback_name": "Humidity sensitivity", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-humidity_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Temperature report interval", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-temperature_report_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_report_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 120, - "native_min_value": 5, - "native_step": 5, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 120 - } + "fallback_name": "Temperature report interval", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-temperature_report_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_report_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 120, + "mode": "auto", + "native_max_value": 120, + "native_min_value": 5, + "native_step": 5, + "native_unit_of_measurement": "min" }, { - "info_object": { - "fallback_name": "Temperature sensitivity", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-temperature_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 50, - "native_min_value": 0.1, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0.2 - } + "fallback_name": "Temperature sensitivity", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-temperature_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.2, + "mode": "auto", + "native_max_value": 50, + "native_min_value": 0.1, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Celsius" - } + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Celsius", + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 1.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 18.3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 18.3, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 38.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 38.0, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": "Humidity alarm", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-humidity_alarm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "humidity_alarm", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": "Canceled" - } + "fallback_name": "Humidity alarm", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-humidity_alarm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "humidity_alarm", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Canceled", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Temperature alarm", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-temperature_alarm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "temperature_alarm", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": "Canceled" - } + "fallback_name": "Temperature alarm", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-temperature_alarm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "temperature_alarm", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Canceled", + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-m9skfctm-ts0601.json b/tests/data/devices/tze200-m9skfctm-ts0601.json index 2bffef694..98ab0c238 100644 --- a/tests/data/devices/tze200-m9skfctm-ts0601.json +++ b/tests/data/devices/tze200-m9skfctm-ts0601.json @@ -152,124 +152,104 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ef:2f:91:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:2f:91:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:2f:91:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:2f:91:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:2f:91:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:2f:91:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ef:2f:91:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ef:2f:91:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-mgxy2d9f-ts0601-0x00000043.json b/tests/data/devices/tze200-mgxy2d9f-ts0601-0x00000043.json index 6a29ab385..e10bb1c63 100644 --- a/tests/data/devices/tze200-mgxy2d9f-ts0601-0x00000043.json +++ b/tests/data/devices/tze200-mgxy2d9f-ts0601-0x00000043.json @@ -134,95 +134,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:35:bf:88-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9c:35:bf:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:35:bf:88-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9c:35:bf:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:35:bf:88-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9c:35:bf:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:35:bf:88-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9c:35:bf:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:35:bf:88-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9c:35:bf:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:35:bf:88-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9c:35:bf:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-mja3fuja-ts0601.json b/tests/data/devices/tze200-mja3fuja-ts0601.json index 83b4241a8..cf4cb6664 100644 --- a/tests/data/devices/tze200-mja3fuja-ts0601.json +++ b/tests/data/devices/tze200-mja3fuja-ts0601.json @@ -186,235 +186,195 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "CarbonDioxideConcentration", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "ppm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1067", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "FormaldehydeConcentration", - "translation_key": "formaldehyde", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "FormaldehydeConcentration", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1067", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "FormaldehydeConcentration", + "translation_key": "formaldehyde", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "ppm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "VOCLevel", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-moycceze-ts0601-0x00000043.json b/tests/data/devices/tze200-moycceze-ts0601-0x00000043.json index 141fc8457..68b6e657b 100644 --- a/tests/data/devices/tze200-moycceze-ts0601-0x00000043.json +++ b/tests/data/devices/tze200-moycceze-ts0601-0x00000043.json @@ -134,95 +134,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d8:e7:36:48-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d8:e7:36:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d8:e7:36:48-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d8:e7:36:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d8:e7:36:48-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d8:e7:36:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d8:e7:36:48-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d8:e7:36:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d8:e7:36:48-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d8:e7:36:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d8:e7:36:48-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d8:e7:36:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-mudxchsu-ts0601-0x00000045.json b/tests/data/devices/tze200-mudxchsu-ts0601-0x00000045.json index fd6a9c7a5..333fd23b1 100644 --- a/tests/data/devices/tze200-mudxchsu-ts0601-0x00000045.json +++ b/tests/data/devices/tze200-mudxchsu-ts0601-0x00000045.json @@ -641,556 +641,461 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Open Window Detected", - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInputWithDescription", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInputWithDescription", - "available": true, - "state": false - } + "fallback_name": "Open Window Detected", + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInputWithDescription", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "ZONNSMARTThermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 401, - "fan_modes": null, - "preset_modes": [ - "none", - "holiday", - "Schedule", - "frost protect" - ], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "ZONNSMARTThermostat", - "available": true, - "current_temperature": 20.6, - "outdoor_temperature": null, - "target_temperature": 15.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1500, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": 1600 - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "ZONNSMARTThermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 20.6, + "outdoor_temperature": null, + "target_temperature": 15.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 401, + "fan_modes": null, + "preset_modes": [ + "none", + "holiday", + "Schedule", + "frost protect" + ], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1500, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": 1600 } ], "number": [ { - "info_object": { - "fallback_name": "Temperature Offset", - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 5, - "native_min_value": -5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 0.0 - } + "fallback_name": "Temperature Offset", + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "auto", + "native_max_value": 5, + "native_min_value": -5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "ThermostatLocalTempCalibration", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Opened Window Temperature", - "unique_id": "ab:cd:ef:12:65:80:74:f3-2-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 5.0 - } + "fallback_name": "Opened Window Temperature", + "unique_id": "ab:cd:ef:12:65:80:74:f3-2-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "auto", + "native_max_value": 30.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-myd45weu-ts0601-0x00000048.json b/tests/data/devices/tze200-myd45weu-ts0601-0x00000048.json index ff3a06765..8ad160f7e 100644 --- a/tests/data/devices/tze200-myd45weu-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-myd45weu-ts0601-0x00000048.json @@ -204,186 +204,156 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 20.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 25.0 - } + "fallback_name": null, + "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "SoilMoisture", - "available": true, - "state": 72.0 - } + "fallback_name": null, + "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 72.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-mz5y07w2-ts0601.json b/tests/data/devices/tze200-mz5y07w2-ts0601.json index 26742f1f5..a47e60784 100644 --- a/tests/data/devices/tze200-mz5y07w2-ts0601.json +++ b/tests/data/devices/tze200-mz5y07w2-ts0601.json @@ -238,398 +238,330 @@ "zha_lib_entities": { "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 28.8, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "off", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[0]/off", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 500, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 28.8, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "off", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[0]/off", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 500, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Temperature Offset", - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 0 - } + "fallback_name": "Temperature Offset", + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-mzik0ov2-ts0601.json b/tests/data/devices/tze200-mzik0ov2-ts0601.json index 423b70f4a..f30134cec 100644 --- a/tests/data/devices/tze200-mzik0ov2-ts0601.json +++ b/tests/data/devices/tze200-mzik0ov2-ts0601.json @@ -134,95 +134,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:9b:c1:59-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:9b:c1:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:9b:c1:59-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:9b:c1:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:9b:c1:59-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:9b:c1:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:9b:c1:59-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:9b:c1:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:9b:c1:59-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:9b:c1:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:9b:c1:59-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:9b:c1:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-nklqjk62-ts0601-0x00000046.json b/tests/data/devices/tze200-nklqjk62-ts0601-0x00000046.json index 86b3fdfd4..a6c0c8763 100644 --- a/tests/data/devices/tze200-nklqjk62-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-nklqjk62-ts0601-0x00000046.json @@ -200,95 +200,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:58:0b:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 116 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:58:0b:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 116, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:58:0b:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -82 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:58:0b:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -82, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:58:0b:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:58:0b:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-nklqjk62-ts0601.json b/tests/data/devices/tze200-nklqjk62-ts0601.json index 3ddf12f6c..9a7c42762 100644 --- a/tests/data/devices/tze200-nklqjk62-ts0601.json +++ b/tests/data/devices/tze200-nklqjk62-ts0601.json @@ -144,95 +144,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:58:0b:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:58:0b:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:58:0b:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:58:0b:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:58:0b:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:58:0b:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-nojsjtj2-ts0601.json b/tests/data/devices/tze200-nojsjtj2-ts0601.json index 2c26bbde1..8dfeb33f7 100644 --- a/tests/data/devices/tze200-nojsjtj2-ts0601.json +++ b/tests/data/devices/tze200-nojsjtj2-ts0601.json @@ -154,155 +154,131 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f4:9a:26:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:9a:26:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:9a:26:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:9a:26:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:9a:26:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:9a:26:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:9a:26:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:9a:26:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:9a:26:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:f4:9a:26:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.8 } ] }, diff --git a/tests/data/devices/tze200-npj9bug3-ts0601.json b/tests/data/devices/tze200-npj9bug3-ts0601.json index 8495d8cbb..71e312b90 100644 --- a/tests/data/devices/tze200-npj9bug3-ts0601.json +++ b/tests/data/devices/tze200-npj9bug3-ts0601.json @@ -166,182 +166,153 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 180 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 180, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -55 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -55, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 24.9 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 24.9, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/tze200-nqaqq4cf-ts0601-0x00000044.json b/tests/data/devices/tze200-nqaqq4cf-ts0601-0x00000044.json index be82150d2..2aaab88c9 100644 --- a/tests/data/devices/tze200-nqaqq4cf-ts0601-0x00000044.json +++ b/tests/data/devices/tze200-nqaqq4cf-ts0601-0x00000044.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:f2:ce:d0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:f2:ce:d0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 100 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:f2:ce:d0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:f2:ce:d0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:f2:ce:d0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:f2:ce:d0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -75 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:f2:ce:d0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:f2:ce:d0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -75, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:f2:ce:d0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:f2:ce:d0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:f2:ce:d0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:f2:ce:d0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-ntcy3xu1-ts0601.json b/tests/data/devices/tze200-ntcy3xu1-ts0601.json index 51bb48869..cb3805457 100644 --- a/tests/data/devices/tze200-ntcy3xu1-ts0601.json +++ b/tests/data/devices/tze200-ntcy3xu1-ts0601.json @@ -184,186 +184,156 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:3c:49:18:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:49:18:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:49:18:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "tamper" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:49:18:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "tamper" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:49:18:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:49:18:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:49:18:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:49:18:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:49:18:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AAA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:3c:49:18:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3c:49:18:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3c:49:18:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-ny94onlb-ts0601.json b/tests/data/devices/tze200-ny94onlb-ts0601.json index 62396994a..95cdc011f 100644 --- a/tests/data/devices/tze200-ny94onlb-ts0601.json +++ b/tests/data/devices/tze200-ny94onlb-ts0601.json @@ -862,705 +862,632 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.26, - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.26, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 298.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 298.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-active_power_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhB", - "translation_key": "active_power_ph_b", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePowerPhB", - "available": true, - "state": 266.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-active_power_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhB", + "translation_key": "active_power_ph_b", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max_ph_b", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 266.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-active_power_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhC", - "translation_key": "active_power_ph_c", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePowerPhC", - "available": true, - "state": 70.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-active_power_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhC", + "translation_key": "active_power_ph_c", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max_ph_c", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 70.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 1.38 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.38, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_current_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "translation_key": "rms_current_ph_b", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "available": true, - "state": 1.576 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_current_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "translation_key": "rms_current_ph_b", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max_ph_b" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.576, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_current_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "translation_key": "rms_current_ph_c", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "available": true, - "state": 0.413 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_current_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "translation_key": "rms_current_ph_c", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max_ph_c" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.413, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 223.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 223.8, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_voltage_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "translation_key": "rms_voltage_ph_b", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "available": true, - "state": 215.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_voltage_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "translation_key": "rms_voltage_ph_b", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max_ph_b" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 215.9, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_voltage_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "translation_key": "rms_voltage_ph_c", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "available": true, - "state": 227.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_voltage_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "translation_key": "rms_voltage_ph_c", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max_ph_c" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 227.2, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-10-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 298.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-10-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 298.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-10-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 1.38 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-10-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 1.38, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-10-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 10, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 223.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-10-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 10, + "available": true, + "group_id": null, + "native_value": 223.8, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-20-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 20, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 266.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-20-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 20, + "available": true, + "group_id": null, + "native_value": 266.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-20-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 20, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 1.576 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-20-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 20, + "available": true, + "group_id": null, + "native_value": 1.576, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-20-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 20, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 215.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-20-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 20, + "available": true, + "group_id": null, + "native_value": 215.9, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-30-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 30, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 70.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-30-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 30, + "available": true, + "group_id": null, + "native_value": 70.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-30-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 30, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.413 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-30-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 30, + "available": true, + "group_id": null, + "native_value": 0.413, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-30-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 30, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 227.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-30-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 30, + "available": true, + "group_id": null, + "native_value": 227.2, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-nyvavzbj-ts0601.json b/tests/data/devices/tze200-nyvavzbj-ts0601.json index da0ada21d..f191528dc 100644 --- a/tests/data/devices/tze200-nyvavzbj-ts0601.json +++ b/tests/data/devices/tze200-nyvavzbj-ts0601.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:83:cd:d7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:83:cd:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:83:cd:d7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:83:cd:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:83:cd:d7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:83:cd:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:83:cd:d7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:83:cd:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:83:cd:d7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:83:cd:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:83:cd:d7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:83:cd:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-pay2byax-ts0601.json b/tests/data/devices/tze200-pay2byax-ts0601.json index 84c4620cd..8f21ffd28 100644 --- a/tests/data/devices/tze200-pay2byax-ts0601.json +++ b/tests/data/devices/tze200-pay2byax-ts0601.json @@ -182,185 +182,154 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 481 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 481, + "suggested_display_precision": null, + "unit": "lx" } ] }, diff --git a/tests/data/devices/tze200-pl31aqf5-ts0601-0x00000046.json b/tests/data/devices/tze200-pl31aqf5-ts0601-0x00000046.json index 4a447acd3..e9d55bbe9 100644 --- a/tests/data/devices/tze200-pl31aqf5-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-pl31aqf5-ts0601-0x00000046.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:8d:08:24-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:8d:08:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:8d:08:24-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:8d:08:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:8d:08:24-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:8d:08:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:8d:08:24-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:8d:08:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:8d:08:24-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cb:8d:08:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:8d:08:24-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cb:8d:08:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-pw7mji0l-ts0601.json b/tests/data/devices/tze200-pw7mji0l-ts0601.json index 4a73eba7f..23b1b71e5 100644 --- a/tests/data/devices/tze200-pw7mji0l-ts0601.json +++ b/tests/data/devices/tze200-pw7mji0l-ts0601.json @@ -146,157 +146,131 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-qhlxve78-ts0601.json b/tests/data/devices/tze200-qhlxve78-ts0601.json index 4fbed0748..77dc2fa75 100644 --- a/tests/data/devices/tze200-qhlxve78-ts0601.json +++ b/tests/data/devices/tze200-qhlxve78-ts0601.json @@ -195,95 +195,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:5a:28:81-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:5a:28:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:5a:28:81-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:5a:28:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:5a:28:81-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:5a:28:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:5a:28:81-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:5a:28:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:5a:28:81-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:5a:28:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:5a:28:81-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:5a:28:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-qrztc3ev-ts0601.json b/tests/data/devices/tze200-qrztc3ev-ts0601.json index 481b4469f..bfd3d1e42 100644 --- a/tests/data/devices/tze200-qrztc3ev-ts0601.json +++ b/tests/data/devices/tze200-qrztc3ev-ts0601.json @@ -164,525 +164,440 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Alarm humidity max", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_humidity_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_humidity_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm humidity max", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_humidity_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_humidity_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Alarm humidity min", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_humidity_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_humidity_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm humidity min", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_humidity_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_humidity_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Alarm temperature max", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_temperature_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_temperature_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -20, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm temperature max", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_temperature_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_temperature_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -20, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Alarm temperature min", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_temperature_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_temperature_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -20, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm temperature min", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_temperature_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_temperature_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -20, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Humidity report interval", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-humidity_report_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_report_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 120, - "native_min_value": 5, - "native_step": 5, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Humidity report interval", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-humidity_report_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_report_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 120, + "native_min_value": 5, + "native_step": 5, + "native_unit_of_measurement": "min" }, { - "info_object": { - "fallback_name": "Humidity sensitivity", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-humidity_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Humidity sensitivity", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-humidity_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Temperature report interval", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-temperature_report_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_report_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 120, - "native_min_value": 5, - "native_step": 5, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Temperature report interval", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-temperature_report_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_report_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 120, + "native_min_value": 5, + "native_step": 5, + "native_unit_of_measurement": "min" }, { - "info_object": { - "fallback_name": "Temperature sensitivity", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-temperature_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 50, - "native_min_value": 0.1, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Temperature sensitivity", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-temperature_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": 0.1, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": "Humidity alarm", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-humidity_alarm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "humidity_alarm", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Humidity alarm", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-humidity_alarm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "humidity_alarm", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Temperature alarm", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-temperature_alarm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "temperature_alarm", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Temperature alarm", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-temperature_alarm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "temperature_alarm", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-qyflbnbj-ts0601-0x00000046.json b/tests/data/devices/tze200-qyflbnbj-ts0601-0x00000046.json index 6580742c6..108ddea1e 100644 --- a/tests/data/devices/tze200-qyflbnbj-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-qyflbnbj-ts0601-0x00000046.json @@ -223,186 +223,156 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 6550.3 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 6550.3, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 84.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 84.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-r32ctezx-ts0601-0x00000046.json b/tests/data/devices/tze200-r32ctezx-ts0601-0x00000046.json index b8a3c6d86..d997737a3 100644 --- a/tests/data/devices/tze200-r32ctezx-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-r32ctezx-ts0601-0x00000046.json @@ -183,148 +183,120 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:4a:57:6b-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:38:4a:57:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 0, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:4a:57:6b-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:4a:57:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 0, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:4a:57:6b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:4a:57:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:4a:57:6b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:4a:57:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:4a:57:6b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:4a:57:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:4a:57:6b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:4a:57:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:4a:57:6b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:4a:57:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:4a:57:6b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:4a:57:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-r5ksy7qo-ts0601-0x00000043.json b/tests/data/devices/tze200-r5ksy7qo-ts0601-0x00000043.json index ae82db1e7..1c6ceede5 100644 --- a/tests/data/devices/tze200-r5ksy7qo-ts0601-0x00000043.json +++ b/tests/data/devices/tze200-r5ksy7qo-ts0601-0x00000043.json @@ -121,95 +121,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:e1:be:80-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:e1:be:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 196 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:e1:be:80-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:e1:be:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 196, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:e1:be:80-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:e1:be:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -51 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:e1:be:80-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:e1:be:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -51, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:e1:be:80-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:e1:be:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:e1:be:80-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:e1:be:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-rccxox8p-ts0601.json b/tests/data/devices/tze200-rccxox8p-ts0601.json index 4bdb5f179..69262e969 100644 --- a/tests/data/devices/tze200-rccxox8p-ts0601.json +++ b/tests/data/devices/tze200-rccxox8p-ts0601.json @@ -140,124 +140,104 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-rk1wojce-ts0601.json b/tests/data/devices/tze200-rk1wojce-ts0601.json index 7b099d5c7..0bc2ce511 100644 --- a/tests/data/devices/tze200-rk1wojce-ts0601.json +++ b/tests/data/devices/tze200-rk1wojce-ts0601.json @@ -134,95 +134,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:32:83:5b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e2:32:83:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:32:83:5b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:32:83:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:32:83:5b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e2:32:83:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:32:83:5b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:32:83:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:32:83:5b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e2:32:83:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:32:83:5b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:32:83:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-rks0sgb7-ts0601.json b/tests/data/devices/tze200-rks0sgb7-ts0601.json index 82c21d5d6..5da880418 100644 --- a/tests/data/devices/tze200-rks0sgb7-ts0601.json +++ b/tests/data/devices/tze200-rks0sgb7-ts0601.json @@ -133,95 +133,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:ec:b3:fc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:ec:b3:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:ec:b3:fc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:ec:b3:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:ec:b3:fc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:ec:b3:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:ec:b3:fc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:ec:b3:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:ec:b3:fc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a9:ec:b3:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:ec:b3:fc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:ec:b3:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-rmymn92d-ts0601-0x00000046.json b/tests/data/devices/tze200-rmymn92d-ts0601-0x00000046.json index 0058a0f2b..9cdc8918b 100644 --- a/tests/data/devices/tze200-rmymn92d-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-rmymn92d-ts0601-0x00000046.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:44:3f:67-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:44:3f:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:44:3f:67-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:44:3f:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:44:3f:67-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:44:3f:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:44:3f:67-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:44:3f:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:44:3f:67-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1a:44:3f:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:44:3f:67-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:44:3f:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-rtrmfadk-ts0601.json b/tests/data/devices/tze200-rtrmfadk-ts0601.json index 5c1d13eb3..e40fd689d 100644 --- a/tests/data/devices/tze200-rtrmfadk-ts0601.json +++ b/tests/data/devices/tze200-rtrmfadk-ts0601.json @@ -133,95 +133,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:28:8c:ab-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:28:8c:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:28:8c:ab-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:28:8c:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:28:8c:ab-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:28:8c:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:28:8c:ab-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:28:8c:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:28:8c:ab-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:28:28:8c:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:28:8c:ab-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:28:8c:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-rxq4iti9-ts0601.json b/tests/data/devices/tze200-rxq4iti9-ts0601.json index a524ef378..4e1eaa29d 100644 --- a/tests/data/devices/tze200-rxq4iti9-ts0601.json +++ b/tests/data/devices/tze200-rxq4iti9-ts0601.json @@ -345,410 +345,342 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "error_or_battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "error_or_battery_low" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6e:72:22-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6e:72:22-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Temperature Offset", - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Temperature Offset", + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-s6hzw8g2-ts0601.json b/tests/data/devices/tze200-s6hzw8g2-ts0601.json index 20e34630d..afe6d6bcf 100644 --- a/tests/data/devices/tze200-s6hzw8g2-ts0601.json +++ b/tests/data/devices/tze200-s6hzw8g2-ts0601.json @@ -127,95 +127,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:e7:1e:19-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:e7:1e:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:e7:1e:19-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:e7:1e:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:e7:1e:19-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:e7:1e:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:e7:1e:19-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:e7:1e:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:e7:1e:19-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:e7:1e:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:e7:1e:19-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:e7:1e:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-sur6q7ko-ts0601-0x00000045.json b/tests/data/devices/tze200-sur6q7ko-ts0601-0x00000045.json index 41ed04051..fbd5b3598 100644 --- a/tests/data/devices/tze200-sur6q7ko-ts0601-0x00000045.json +++ b/tests/data/devices/tze200-sur6q7ko-ts0601-0x00000045.json @@ -533,607 +533,502 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Open Window Detected", - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInputWithDescription", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInputWithDescription", - "available": true, - "state": false - } + "fallback_name": "Open Window Detected", + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInputWithDescription", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 19.8, - "outdoor_temperature": null, - "target_temperature": 15.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1500, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": 1700 - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 19.8, + "outdoor_temperature": null, + "target_temperature": 15.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1500, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": 1700 } ], "number": [ { - "info_object": { - "fallback_name": "Temperature Offset", - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 5, - "native_min_value": -5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 1.4 - } + "fallback_name": "Temperature Offset", + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.4, + "mode": "auto", + "native_max_value": 5, + "native_min_value": -5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "ThermostatLocalTempCalibration", - "available": true, - "state": 14.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 14.0, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Opened Window Temperature", - "unique_id": "ab:cd:ef:12:a2:68:cb:79-2-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 21.0 - } + "fallback_name": "Opened Window Temperature", + "unique_id": "ab:cd:ef:12:a2:68:cb:79-2-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 21.0, + "mode": "auto", + "native_max_value": 30.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 148 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 148, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -63 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -63, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "PiHeatingDemand", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-t1blo2bj-ts0601.json b/tests/data/devices/tze200-t1blo2bj-ts0601.json index 8ce243259..273a9e2e4 100644 --- a/tests/data/devices/tze200-t1blo2bj-ts0601.json +++ b/tests/data/devices/tze200-t1blo2bj-ts0601.json @@ -175,269 +175,229 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Alarm duration", - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-alarm_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1800, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm duration", + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-alarm_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1800, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" } ], "select": [ { - "info_object": { - "fallback_name": "Alarm ringtone", - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-alarm_ringtone", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_ringtone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "NeoAlarmMelody18", - "options": [ - "Melody 01", - "Melody 02", - "Melody 03", - "Melody 04", - "Melody 05", - "Melody 06", - "Melody 07", - "Melody 08", - "Melody 09", - "Melody 10", - "Melody 11", - "Melody 12", - "Melody 13", - "Melody 14", - "Melody 15", - "Melody 16", - "Melody 17", - "Melody 18" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm ringtone", + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-alarm_ringtone", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_ringtone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "NeoAlarmMelody18", + "options": [ + "Melody 01", + "Melody 02", + "Melody 03", + "Melody 04", + "Melody 05", + "Melody 06", + "Melody 07", + "Melody 08", + "Melody 09", + "Melody 10", + "Melody 11", + "Melody 12", + "Melody 13", + "Melody 14", + "Melody 15", + "Melody 16", + "Melody 17", + "Melody 18" + ] }, { - "info_object": { - "fallback_name": "Alarm volume", - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-alarm_volume", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_volume", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "NeoAlarmVolume", - "options": [ - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm volume", + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-alarm_volume", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_volume", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "NeoAlarmVolume", + "options": [ + "Low", + "Medium", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false }, { - "info_object": { - "fallback_name": "Siren on", - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-siren_on", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "siren_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "siren_on", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Siren on", + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-siren_on", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "siren_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "siren_on", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-t6gq6nju-ts0601.json b/tests/data/devices/tze200-t6gq6nju-ts0601.json index 580aff80d..468e78409 100644 --- a/tests/data/devices/tze200-t6gq6nju-ts0601.json +++ b/tests/data/devices/tze200-t6gq6nju-ts0601.json @@ -216,95 +216,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:0b:62:5b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:0b:62:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:0b:62:5b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:0b:62:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:0b:62:5b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:0b:62:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:0b:62:5b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:0b:62:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:0b:62:5b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:0b:62:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:0b:62:5b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:0b:62:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-udank5zs-ts0601.json b/tests/data/devices/tze200-udank5zs-ts0601.json index 20a81c606..983df021e 100644 --- a/tests/data/devices/tze200-udank5zs-ts0601.json +++ b/tests/data/devices/tze200-udank5zs-ts0601.json @@ -134,95 +134,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7f:df:74-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7f:df:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7f:df:74-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7f:df:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7f:df:74-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7f:df:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7f:df:74-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7f:df:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7f:df:74-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7f:df:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7f:df:74-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7f:df:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-uf1qujxj-ts0601-0x00000048.json b/tests/data/devices/tze200-uf1qujxj-ts0601-0x00000048.json index 756569992..0b7ccdc67 100644 --- a/tests/data/devices/tze200-uf1qujxj-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-uf1qujxj-ts0601-0x00000048.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:ee:a6:97-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:ee:a6:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:ee:a6:97-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:ee:a6:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:ee:a6:97-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:ee:a6:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:ee:a6:97-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:ee:a6:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:ee:a6:97-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:ee:a6:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:ee:a6:97-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:ee:a6:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-v1jqz5cy-ts0601.json b/tests/data/devices/tze200-v1jqz5cy-ts0601.json index 4a54fd09f..c22adb92e 100644 --- a/tests/data/devices/tze200-v1jqz5cy-ts0601.json +++ b/tests/data/devices/tze200-v1jqz5cy-ts0601.json @@ -133,95 +133,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:97:18:07-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:97:18:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:97:18:07-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:97:18:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:97:18:07-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:97:18:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:97:18:07-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:97:18:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:97:18:07-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a4:97:18:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:97:18:07-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a4:97:18:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-v9hkz2yn-ts0601.json b/tests/data/devices/tze200-v9hkz2yn-ts0601.json index 250c60507..9771b4c91 100644 --- a/tests/data/devices/tze200-v9hkz2yn-ts0601.json +++ b/tests/data/devices/tze200-v9hkz2yn-ts0601.json @@ -364,485 +364,431 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": null, - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "W", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 2.164, - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2.164, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummationReceived", - "available": true, - "state": 0.0, - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 35.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 35.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-active_power_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhB", - "translation_key": "active_power_ph_b", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePowerPhB", - "available": true, - "state": 42.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-active_power_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhB", + "translation_key": "active_power_ph_b", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max_ph_b", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 42.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-active_power_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhC", - "translation_key": "active_power_ph_c", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePowerPhC", - "available": true, - "state": 26.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-active_power_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhC", + "translation_key": "active_power_ph_c", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max_ph_c", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 26.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.368 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.368, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_current_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "translation_key": "rms_current_ph_b", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "available": true, - "state": 0.758 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_current_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "translation_key": "rms_current_ph_b", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max_ph_b" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.758, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_current_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "translation_key": "rms_current_ph_c", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "available": true, - "state": 0.301 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_current_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "translation_key": "rms_current_ph_c", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max_ph_c" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.301, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 243.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 243.1, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_voltage_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "translation_key": "rms_voltage_ph_b", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "available": true, - "state": 241.6 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_voltage_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "translation_key": "rms_voltage_ph_b", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max_ph_b" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 241.6, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_voltage_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "translation_key": "rms_voltage_ph_c", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "available": true, - "state": 241.7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_voltage_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "translation_key": "rms_voltage_ph_c", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max_ph_c" - ] + ], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 241.7, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max_ph_c" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-vdiuwbkq-ts0601.json b/tests/data/devices/tze200-vdiuwbkq-ts0601.json index 369510f4d..ff42caf9a 100644 --- a/tests/data/devices/tze200-vdiuwbkq-ts0601.json +++ b/tests/data/devices/tze200-vdiuwbkq-ts0601.json @@ -194,129 +194,108 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:6c:37:b4:92", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": null, - "current_tilt_position": null, - "state": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:37:b4:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": null, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:37:b4:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:37:b4:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:37:b4:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:37:b4:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6c:37:b4:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6c:37:b4:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-viy9ihs7-ts0601.json b/tests/data/devices/tze200-viy9ihs7-ts0601.json index 82a66bf5b..1186d04e6 100644 --- a/tests/data/devices/tze200-viy9ihs7-ts0601.json +++ b/tests/data/devices/tze200-viy9ihs7-ts0601.json @@ -170,509 +170,424 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Fault alarm", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-fault_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "fault_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "fault_alarm" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Fault alarm", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-fault_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "fault_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "fault_alarm" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Deadzone temperature", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-deadzone_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "deadzone_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Deadzone temperature", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-deadzone_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "deadzone_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.9, - "native_min_value": -9.9, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9.9, + "native_min_value": -9.9, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Backlight mode", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BacklightMode", - "options": [ - "Off", - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Backlight mode", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BacklightMode", + "options": [ + "Off", + "Low", + "Medium", + "High" + ] }, { - "info_object": { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "PresetModeV03", - "options": [ - "Auto", - "Manual", - "Temporary Manual" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "PresetModeV03", + "options": [ + "Auto", + "Manual", + "Temporary Manual" + ] }, { - "info_object": { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-temperature_sensor_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SensorMode", - "options": [ - "Air", - "Floor", - "Both" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-temperature_sensor_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "SensorMode", + "options": [ + "Air", + "Floor", + "Both" + ] }, { - "info_object": { - "fallback_name": "Working day", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-working_day", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "working_day", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "WorkingDayV01", - "options": [ - "Disabled", - "Six One", - "Five Two", - "Seven" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Working day", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-working_day", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "working_day", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "WorkingDayV01", + "options": [ + "Disabled", + "Six One", + "Five Two", + "Seven" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Factory reset", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-factory_reset", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "factory_reset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "factory_reset", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Factory reset", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-factory_reset", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "factory_reset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "factory_reset", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-vuqzj1ej-ts0601.json b/tests/data/devices/tze200-vuqzj1ej-ts0601.json index a0da7d5f4..d78418f26 100644 --- a/tests/data/devices/tze200-vuqzj1ej-ts0601.json +++ b/tests/data/devices/tze200-vuqzj1ej-ts0601.json @@ -225,239 +225,200 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 216 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 216, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -46 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -46, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 396 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 396, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 24.1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 24.1, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 65.5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65.5, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/tze200-vvmbj46n-ts0601-0x00000048.json b/tests/data/devices/tze200-vvmbj46n-ts0601-0x00000048.json index 335790184..a28acbebe 100644 --- a/tests/data/devices/tze200-vvmbj46n-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-vvmbj46n-ts0601-0x00000048.json @@ -183,525 +183,440 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Alarm humidity max", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_humidity_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_humidity_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm humidity max", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_humidity_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_humidity_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Alarm humidity min", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_humidity_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_humidity_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm humidity min", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_humidity_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_humidity_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Alarm temperature max", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_temperature_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_temperature_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -20, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm temperature max", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_temperature_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_temperature_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -20, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Alarm temperature min", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_temperature_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_temperature_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -20, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm temperature min", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_temperature_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_temperature_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -20, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Humidity report interval", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-humidity_report_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_report_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 120, - "native_min_value": 5, - "native_step": 5, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Humidity report interval", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-humidity_report_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_report_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 120, + "native_min_value": 5, + "native_step": 5, + "native_unit_of_measurement": "min" }, { - "info_object": { - "fallback_name": "Humidity sensitivity", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-humidity_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Humidity sensitivity", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-humidity_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Temperature report interval", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-temperature_report_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_report_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 120, - "native_min_value": 5, - "native_step": 5, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Temperature report interval", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-temperature_report_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_report_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 120, + "native_min_value": 5, + "native_step": 5, + "native_unit_of_measurement": "min" }, { - "info_object": { - "fallback_name": "Temperature sensitivity", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-temperature_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 50, - "native_min_value": 0.1, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Temperature sensitivity", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-temperature_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": 0.1, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": "Humidity alarm", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-humidity_alarm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "humidity_alarm", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Humidity alarm", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-humidity_alarm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "humidity_alarm", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Temperature alarm", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-temperature_alarm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "temperature_alarm", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Temperature alarm", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-temperature_alarm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "temperature_alarm", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-wdfurkoa-ts0601-0x00000041.json b/tests/data/devices/tze200-wdfurkoa-ts0601-0x00000041.json index 81d3288a8..27bd8d5bf 100644 --- a/tests/data/devices/tze200-wdfurkoa-ts0601-0x00000041.json +++ b/tests/data/devices/tze200-wdfurkoa-ts0601-0x00000041.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:51:0f:39-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:51:0f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 40 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:51:0f:39-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:51:0f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 40, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:51:0f:39-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:51:0f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:51:0f:39-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:51:0f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:51:0f:39-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:51:0f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:51:0f:39-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:51:0f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-wfxuhoea-ts0601-0x00000046.json b/tests/data/devices/tze200-wfxuhoea-ts0601-0x00000046.json index 50671bf68..6729e81ea 100644 --- a/tests/data/devices/tze200-wfxuhoea-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-wfxuhoea-ts0601-0x00000046.json @@ -151,95 +151,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:42:d4:41-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:42:d4:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:42:d4:41-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:42:d4:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:42:d4:41-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:42:d4:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:42:d4:41-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:42:d4:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:42:d4:41-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:51:42:d4:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:42:d4:41-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:51:42:d4:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-wktrysab-ts0601.json b/tests/data/devices/tze200-wktrysab-ts0601.json index a397fa3ae..0d493db02 100644 --- a/tests/data/devices/tze200-wktrysab-ts0601.json +++ b/tests/data/devices/tze200-wktrysab-ts0601.json @@ -427,497 +427,378 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 4, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 4, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-5", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 5, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-5", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 5, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-6", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 6, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-6", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 6, + "available": true, + "group_id": null, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-7", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 7, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-7", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 7, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-8", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 8, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-8", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 8, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-wqashyqo-ts0601.json b/tests/data/devices/tze200-wqashyqo-ts0601.json index 39d162bd6..83fa0ed8c 100644 --- a/tests/data/devices/tze200-wqashyqo-ts0601.json +++ b/tests/data/devices/tze200-wqashyqo-ts0601.json @@ -166,182 +166,153 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 96 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 96, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -76 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -76, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 3.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.1, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 3.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3.0, + "suggested_display_precision": null, + "unit": "%" } ] }, diff --git a/tests/data/devices/tze200-xu4a5rhj-ts0601.json b/tests/data/devices/tze200-xu4a5rhj-ts0601.json index 55b18913c..c1c1ccee6 100644 --- a/tests/data/devices/tze200-xu4a5rhj-ts0601.json +++ b/tests/data/devices/tze200-xu4a5rhj-ts0601.json @@ -156,95 +156,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:14:90:9a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:14:90:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:14:90:9a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:14:90:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:14:90:9a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:14:90:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:14:90:9a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:14:90:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:14:90:9a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:14:90:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:14:90:9a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:14:90:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-ya4ft0w4-ts0601.json b/tests/data/devices/tze200-ya4ft0w4-ts0601.json index 2684bc4cb..0d894b3af 100644 --- a/tests/data/devices/tze200-ya4ft0w4-ts0601.json +++ b/tests/data/devices/tze200-ya4ft0w4-ts0601.json @@ -188,336 +188,281 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 9.0 - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 9.0, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0.75 - } + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.75, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 7 - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 7, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 15000, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 2 - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2, + "mode": "auto", + "native_max_value": 15000, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 0.0 - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "m" } ], "switch": [ { - "info_object": { - "fallback_name": "Distance tracking", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-distance_tracking", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "distance_tracking", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "distance_tracking", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Distance tracking", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-distance_tracking", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "distance_tracking", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "distance_tracking", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ] }, diff --git a/tests/data/devices/tze200-yia0p3tr-ts0601-0x00000046.json b/tests/data/devices/tze200-yia0p3tr-ts0601-0x00000046.json index 43f7550be..59880752b 100644 --- a/tests/data/devices/tze200-yia0p3tr-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-yia0p3tr-ts0601-0x00000046.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:b9:8f:58-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:b9:8f:58", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:b9:8f:58-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:b9:8f:58", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:b9:8f:58-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:b9:8f:58", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:b9:8f:58-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:b9:8f:58", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:b9:8f:58-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:54:b9:8f:58", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:b9:8f:58-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:54:b9:8f:58", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-yjjdcqsq-ts0601.json b/tests/data/devices/tze200-yjjdcqsq-ts0601.json index c4d6eef42..50a18ac0b 100644 --- a/tests/data/devices/tze200-yjjdcqsq-ts0601.json +++ b/tests/data/devices/tze200-yjjdcqsq-ts0601.json @@ -177,219 +177,184 @@ "zha_lib_entities": { "select": [ { - "info_object": { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AAA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-yojqa8xn-ts0601.json b/tests/data/devices/tze200-yojqa8xn-ts0601.json index 5b3c3098e..ee8331e61 100644 --- a/tests/data/devices/tze200-yojqa8xn-ts0601.json +++ b/tests/data/devices/tze200-yojqa8xn-ts0601.json @@ -169,337 +169,282 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": "Preheat active", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-preheat_active", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "preheat_active", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "preheat_active" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Preheat active", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-preheat_active", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "preheat_active", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "preheat_active" }, { - "info_object": { - "fallback_name": "Silence alarm", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-silence_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "silence_alarm", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "silence_alarm" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Silence alarm", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-silence_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "silence_alarm", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "silence_alarm" } ], "number": [ { - "info_object": { - "fallback_name": "Alarm duration", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-alarm_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 180, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm duration", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-alarm_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 180, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" } ], "select": [ { - "info_object": { - "fallback_name": "Alarm ringtone", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-alarm_ringtone", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_ringtone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaSirenRingtone", - "options": [ - "Ringtone 01", - "Ringtone 02", - "Ringtone 03", - "Ringtone 04", - "Ringtone 05" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm ringtone", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-alarm_ringtone", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_ringtone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaSirenRingtone", + "options": [ + "Ringtone 01", + "Ringtone 02", + "Ringtone 03", + "Ringtone 04", + "Ringtone 05" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": "% Lower explosive limit", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-lower_explosive_limit", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "lower_explosive_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%LEL" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "% Lower explosive limit", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-lower_explosive_limit", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "lower_explosive_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%LEL" }, { - "info_object": { - "fallback_name": "Self test result", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-self_test", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "self_test", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Self test result", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-self_test", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "self_test", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Self test", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-self_test_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "self_test_switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "self_test_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Self test", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-self_test_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "self_test_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "self_test_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-yvx5lh6k-ts0601.json b/tests/data/devices/tze200-yvx5lh6k-ts0601.json index 2cacad1ea..38d97c08e 100644 --- a/tests/data/devices/tze200-yvx5lh6k-ts0601.json +++ b/tests/data/devices/tze200-yvx5lh6k-ts0601.json @@ -214,151 +214,126 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:91:a5:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:91:a5:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:91:a5:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:91:a5:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:91:a5:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "PM25", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:91:a5:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:91:a5:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "VOCLevel", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:91:a5:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d5:91:a5:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:91:a5:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-yw7cahqs-ts0601-0x00000055.json b/tests/data/devices/tze200-yw7cahqs-ts0601-0x00000055.json index 904ce6757..bdd90dde7 100644 --- a/tests/data/devices/tze200-yw7cahqs-ts0601-0x00000055.json +++ b/tests/data/devices/tze200-yw7cahqs-ts0601-0x00000055.json @@ -262,470 +262,390 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Battery low", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Battery low", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "battery_low" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:54:17:e4-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 23.2, - "outdoor_temperature": null, - "target_temperature": 30.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 3000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:54:17:e4-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 23.2, + "outdoor_temperature": null, + "target_temperature": 30.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 3000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Valve position", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-valve_position", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "valve_position", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Valve position", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-valve_position", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "valve_position", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "switch": [ { - "info_object": { - "fallback_name": "Away mode", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-away_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "away_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "away_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Away mode", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-away_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "away_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "away_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Schedule enable", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-schedule_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "schedule_enable", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "schedule_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Schedule enable", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-schedule_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "schedule_enable", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "schedule_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000055", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000055", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze200-ztvwu4nk-ts0601.json b/tests/data/devices/tze200-ztvwu4nk-ts0601.json index 7dbeeebd5..f36f23160 100644 --- a/tests/data/devices/tze200-ztvwu4nk-ts0601.json +++ b/tests/data/devices/tze200-ztvwu4nk-ts0601.json @@ -133,95 +133,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:5e:45:8e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:5e:45:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:5e:45:8e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:5e:45:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:5e:45:8e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:5e:45:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:5e:45:8e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:5e:45:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:5e:45:8e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:5e:45:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:5e:45:8e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:5e:45:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-1fuxihti-ts0601.json b/tests/data/devices/tze204-1fuxihti-ts0601.json index e3ba16913..c1133ca14 100644 --- a/tests/data/devices/tze204-1fuxihti-ts0601.json +++ b/tests/data/devices/tze204-1fuxihti-ts0601.json @@ -175,157 +175,131 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": null, - "current_tilt_position": null, - "state": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": null, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-1v1dxkck-ts0601-0x0000004a.json b/tests/data/devices/tze204-1v1dxkck-ts0601-0x0000004a.json index 89392ef84..c592871ed 100644 --- a/tests/data/devices/tze204-1v1dxkck-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-1v1dxkck-ts0601-0x0000004a.json @@ -252,250 +252,196 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:71:6b:96-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:71:6b:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:71:6b:96-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:71:6b:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:71:6b:96-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:71:6b:96", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:71:6b:96-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:71:6b:96", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:71:6b:96-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:71:6b:96", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:71:6b:96-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:71:6b:96", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:71:6b:96-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:71:6b:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:71:6b:96-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:71:6b:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:71:6b:96-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:71:6b:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:71:6b:96-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:71:6b:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:71:6b:96-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:71:6b:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:71:6b:96-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:71:6b:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-1youk3hj-ts0601-0x0000004a.json b/tests/data/devices/tze204-1youk3hj-ts0601-0x0000004a.json index cc323bcc2..04bcc4f3a 100644 --- a/tests/data/devices/tze204-1youk3hj-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-1youk3hj-ts0601-0x0000004a.json @@ -195,464 +195,389 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 150, - "native_step": 75, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 150, + "native_step": 75, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 3, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 3, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Motionless detection sensitivity", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-motionless_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "motionless_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 7, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motionless detection sensitivity", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-motionless_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "motionless_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 7, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Output time", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-output_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "output_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1800, - "native_min_value": 10, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Output time", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-output_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "output_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1800, + "native_min_value": 10, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Radar sensitivity", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-radar_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "radar_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 7, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Radar sensitivity", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-radar_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "radar_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 7, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": "Work mode", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-work_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "work_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaMotionWorkMode", - "options": [ - "Manual", - "Auto" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Work mode", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-work_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "work_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaMotionWorkMode", + "options": [ + "Manual", + "Auto" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Human motion state", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-human_motion_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "human_motion_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Human motion state", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-human_motion_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "human_motion_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-target_distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "target_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "cm" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-target_distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "target_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "cm" } ], "switch": [ { - "info_object": { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Output switch", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-output_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "output_switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "output_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Output switch", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-output_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "output_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "output_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-4fblxpma-ts0601-0x00000049.json b/tests/data/devices/tze204-4fblxpma-ts0601-0x00000049.json index d69ff525c..a1455832c 100644 --- a/tests/data/devices/tze204-4fblxpma-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-4fblxpma-ts0601-0x00000049.json @@ -256,128 +256,110 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:04:0c:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:04:0c:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:04:0c:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:04:0c:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:04:0c:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:f4:04:0c:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f4:04:0c:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f4:04:0c:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-58of2pfn-ts0601-0x0000004a.json b/tests/data/devices/tze204-58of2pfn-ts0601-0x0000004a.json index 79bbef465..1ce2df93b 100644 --- a/tests/data/devices/tze204-58of2pfn-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-58of2pfn-ts0601-0x0000004a.json @@ -265,297 +265,230 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 3, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 3, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 4, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 4, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 164 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 164, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -59 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -59, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-5slehgeo-ts0601-0x0000004a.json b/tests/data/devices/tze204-5slehgeo-ts0601-0x0000004a.json index 5a0a0e3cf..38071a07e 100644 --- a/tests/data/devices/tze204-5slehgeo-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-5slehgeo-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:dc:68:99-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:dc:68:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 136 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:dc:68:99-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:dc:68:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 136, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:dc:68:99-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:dc:68:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -77 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:dc:68:99-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:dc:68:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -77, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:dc:68:99-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c2:dc:68:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:dc:68:99-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c2:dc:68:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-5toc8efa-ts0601.json b/tests/data/devices/tze204-5toc8efa-ts0601.json index f44763034..f97444056 100644 --- a/tests/data/devices/tze204-5toc8efa-ts0601.json +++ b/tests/data/devices/tze204-5toc8efa-ts0601.json @@ -156,95 +156,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:88:70:df:86-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:88:70:df:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:88:70:df:86-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:88:70:df:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:88:70:df:86-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:88:70:df:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:88:70:df:86-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:88:70:df:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:88:70:df:86-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:88:70:df:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:88:70:df:86-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:88:70:df:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-7ytb3h8u-ts0601.json b/tests/data/devices/tze204-7ytb3h8u-ts0601.json index e9d27d552..dce8e1378 100644 --- a/tests/data/devices/tze204-7ytb3h8u-ts0601.json +++ b/tests/data/devices/tze204-7ytb3h8u-ts0601.json @@ -312,438 +312,368 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Irrigation cycles", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_cycles", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_cycles", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Irrigation cycles", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_cycles", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_cycles", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Irrigation interval", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Irrigation interval", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Irrigation target", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_target", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_target", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Irrigation target", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_target", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_target", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": "Irrigation mode", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "irrigation_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "GiexIrrigationMode", - "options": [ - "Duration", - "Capacity" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Duration" - } + "fallback_name": "Irrigation mode", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "irrigation_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Duration", + "enum": "GiexIrrigationMode", + "options": [ + "Duration", + "Capacity" + ] }, { - "info_object": { - "fallback_name": "Weather delay", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-weather_delay", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "weather_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "GiexIrrigationWeatherDelay", - "options": [ - "NoDelay", - "TwentyFourHourDelay", - "FortyEightHourDelay", - "SeventyTwoHourDelay" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Weather delay", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-weather_delay", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "weather_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "GiexIrrigationWeatherDelay", + "options": [ + "NoDelay", + "TwentyFourHourDelay", + "FortyEightHourDelay", + "SeventyTwoHourDelay" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 80.0, - "battery_size": "AA", - "battery_quantity": 4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 80.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "L" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "device_type": "Water Metering", - "zcl_unit_of_measurement": 7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "L", + "device_type": "Water Metering", + "status": null, + "zcl_unit_of_measurement": 7 }, { - "info_object": { - "fallback_name": "Irrigation duration", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_duration", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "s" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": "00:00:06,0" - } + "fallback_name": "Irrigation duration", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_duration", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "00:00:06,0", + "suggested_display_precision": null, + "unit": "s" }, { - "info_object": { - "fallback_name": "Irrigation end time", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_end_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_end_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": "13:53:19" - } + "fallback_name": "Irrigation end time", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_end_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_end_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "13:53:19", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Irrigation start time", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_start_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_start_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": "13:53:13" - } + "fallback_name": "Irrigation start time", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_start_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_start_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "13:53:13", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-81yrt3lo-ts0601-0x0000004a.json b/tests/data/devices/tze204-81yrt3lo-ts0601-0x0000004a.json index 06f35cb4d..b72d6d731 100644 --- a/tests/data/devices/tze204-81yrt3lo-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-81yrt3lo-ts0601-0x0000004a.json @@ -911,834 +911,722 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummationReceived", - "available": true, - "state": 0.0, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 49.13, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 49.13, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 100, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 240.3, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 240.3, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 55.0, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 55.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.33, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0.33, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummationReceived", - "available": true, - "state": 0.0, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 52.5, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 52.5, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 95.4, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 95.4, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 57, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 57, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.397, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 0.397, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-3-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 55.0, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-3-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 55.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-3-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.33, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-3-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0.33, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-3-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummationReceived", - "available": true, - "state": 0.0, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-3-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-3-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 52.5, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-3-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 52.5, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-3-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 95.4, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-3-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 95.4, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-3-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.397, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-3-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0.397, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-9yapgbuv-ts0601.json b/tests/data/devices/tze204-9yapgbuv-ts0601.json index b9a1d016f..a3328eed3 100644 --- a/tests/data/devices/tze204-9yapgbuv-ts0601.json +++ b/tests/data/devices/tze204-9yapgbuv-ts0601.json @@ -170,219 +170,184 @@ "zha_lib_entities": { "select": [ { - "info_object": { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AAA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-a2jcoyuk-ts0601-0x0000004a.json b/tests/data/devices/tze204-a2jcoyuk-ts0601-0x0000004a.json index b9861cc35..73b4a1f5a 100644 --- a/tests/data/devices/tze204-a2jcoyuk-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-a2jcoyuk-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:34:d8:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:34:d8:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:34:d8:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:34:d8:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:34:d8:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:34:d8:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:34:d8:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:34:d8:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:34:d8:e0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5a:34:d8:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:34:d8:e0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5a:34:d8:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-ai4rqhky-ts0601-0x00000049.json b/tests/data/devices/tze204-ai4rqhky-ts0601-0x00000049.json index aff8efc3b..be787c82c 100644 --- a/tests/data/devices/tze204-ai4rqhky-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-ai4rqhky-ts0601-0x00000049.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:50:cc:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:50:cc:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:50:cc:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:50:cc:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:50:cc:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:50:cc:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:50:cc:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:50:cc:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:50:cc:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b1:50:cc:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:50:cc:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:50:cc:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-aoclfnxz-ts0601-0x0000004a.json b/tests/data/devices/tze204-aoclfnxz-ts0601-0x0000004a.json index 4eea62b50..5834e76da 100644 --- a/tests/data/devices/tze204-aoclfnxz-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-aoclfnxz-ts0601-0x0000004a.json @@ -199,95 +199,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:91:c5:14-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:91:c5:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:91:c5:14-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:91:c5:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:91:c5:14-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:91:c5:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:91:c5:14-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:91:c5:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:91:c5:14-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2d:91:c5:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:91:c5:14-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2d:91:c5:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-b8vxct9l-ts0601-0x0000004a.json b/tests/data/devices/tze204-b8vxct9l-ts0601-0x0000004a.json index d77a380a6..8597f5692 100644 --- a/tests/data/devices/tze204-b8vxct9l-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-b8vxct9l-ts0601-0x0000004a.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:fa:60:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:fa:60:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:fa:60:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:fa:60:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:fa:60:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:fa:60:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -52 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:fa:60:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:fa:60:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -52, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:fa:60:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:af:fa:60:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:fa:60:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:af:fa:60:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-bkkmqmyo-ts0601.json b/tests/data/devices/tze204-bkkmqmyo-ts0601.json index 048cef063..30cb061e8 100644 --- a/tests/data/devices/tze204-bkkmqmyo-ts0601.json +++ b/tests/data/devices/tze204-bkkmqmyo-ts0601.json @@ -439,290 +439,255 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.08, - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.08, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummationReceived", - "available": true, - "state": 0.0, - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 10.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 10.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 49.97 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 49.97, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 372 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 372, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-bxoo2swd-ts0601.json b/tests/data/devices/tze204-bxoo2swd-ts0601.json index 4f48cfee0..0da73c19b 100644 --- a/tests/data/devices/tze204-bxoo2swd-ts0601.json +++ b/tests/data/devices/tze204-bxoo2swd-ts0601.json @@ -189,199 +189,158 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:5e:9c:07-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:5e:9c:07-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-c2fmom5z-ts0601-0x0000004a.json b/tests/data/devices/tze204-c2fmom5z-ts0601-0x0000004a.json index e8b949e05..71ff56194 100644 --- a/tests/data/devices/tze204-c2fmom5z-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-c2fmom5z-ts0601-0x0000004a.json @@ -362,263 +362,218 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 18.5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 18.5, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 71.8 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 71.8, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "CarbonDioxideConcentration", - "available": true, - "state": 486.99999999999994 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 486.99999999999994, + "suggested_display_precision": 0, + "unit": "ppm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "PM25", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1067", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "FormaldehydeConcentration", - "translation_key": "formaldehyde", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "FormaldehydeConcentration", - "available": true, - "state": 34.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1067", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "FormaldehydeConcentration", + "translation_key": "formaldehyde", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 34.0, + "suggested_display_precision": 0, + "unit": "ppm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "VOCLevel", - "available": true, - "state": 12.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 12.0, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-chbyv06x-ts0601.json b/tests/data/devices/tze204-chbyv06x-ts0601.json index 8b95e406e..378a3c78d 100644 --- a/tests/data/devices/tze204-chbyv06x-ts0601.json +++ b/tests/data/devices/tze204-chbyv06x-ts0601.json @@ -169,337 +169,282 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": "Preheat active", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-preheat_active", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "preheat_active", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "preheat_active" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Preheat active", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-preheat_active", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "preheat_active", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "preheat_active" }, { - "info_object": { - "fallback_name": "Silence alarm", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-silence_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "silence_alarm", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "silence_alarm" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Silence alarm", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-silence_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "silence_alarm", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "silence_alarm" } ], "number": [ { - "info_object": { - "fallback_name": "Alarm duration", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-alarm_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 180, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm duration", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-alarm_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 180, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" } ], "select": [ { - "info_object": { - "fallback_name": "Alarm ringtone", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-alarm_ringtone", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_ringtone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaSirenRingtone", - "options": [ - "Ringtone 01", - "Ringtone 02", - "Ringtone 03", - "Ringtone 04", - "Ringtone 05" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm ringtone", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-alarm_ringtone", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_ringtone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaSirenRingtone", + "options": [ + "Ringtone 01", + "Ringtone 02", + "Ringtone 03", + "Ringtone 04", + "Ringtone 05" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": "% Lower explosive limit", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-lower_explosive_limit", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "lower_explosive_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%LEL" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "% Lower explosive limit", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-lower_explosive_limit", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "lower_explosive_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%LEL" }, { - "info_object": { - "fallback_name": "Self test result", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-self_test", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "self_test", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Self test result", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-self_test", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "self_test", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Self test", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-self_test_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "self_test_switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "self_test_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Self test", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-self_test_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "self_test_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "self_test_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-cirvgep4-ts0601-0x00000049.json b/tests/data/devices/tze204-cirvgep4-ts0601-0x00000049.json index 6e96a1c13..d9208c049 100644 --- a/tests/data/devices/tze204-cirvgep4-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-cirvgep4-ts0601-0x00000049.json @@ -195,219 +195,184 @@ "zha_lib_entities": { "select": [ { - "info_object": { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AAA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-cjbofhxw-ts0601.json b/tests/data/devices/tze204-cjbofhxw-ts0601.json index f88b8a306..d7f8ac823 100644 --- a/tests/data/devices/tze204-cjbofhxw-ts0601.json +++ b/tests/data/devices/tze204-cjbofhxw-ts0601.json @@ -376,127 +376,109 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 122.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 122.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-d6i25bwg-ts0601-0x0000004a.json b/tests/data/devices/tze204-d6i25bwg-ts0601-0x0000004a.json index c5ee8c110..cc206ba64 100644 --- a/tests/data/devices/tze204-d6i25bwg-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-d6i25bwg-ts0601-0x0000004a.json @@ -189,151 +189,126 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 188 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 188, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -53 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -53, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 19.9 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 19.9, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 44.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 44.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-dqolcpcp-ts0601.json b/tests/data/devices/tze204-dqolcpcp-ts0601.json index 691f98960..fcb342716 100644 --- a/tests/data/devices/tze204-dqolcpcp-ts0601.json +++ b/tests/data/devices/tze204-dqolcpcp-ts0601.json @@ -543,95 +543,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:57:29:bb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:57:29:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:57:29:bb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:57:29:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:57:29:bb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:57:29:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:57:29:bb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:57:29:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:57:29:bb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:57:29:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:57:29:bb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:57:29:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-dtzziy1e-ts0601.json b/tests/data/devices/tze204-dtzziy1e-ts0601.json index bb946e398..09f9b7393 100644 --- a/tests/data/devices/tze204-dtzziy1e-ts0601.json +++ b/tests/data/devices/tze204-dtzziy1e-ts0601.json @@ -152,620 +152,520 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Block time", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-block_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "block_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Block time", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-block_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "block_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-detection_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-detection_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Entry distance indentation", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-entry_distance_indentation", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "entry_distance_indentation", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Entry distance indentation", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-entry_distance_indentation", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "entry_distance_indentation", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Entry sensitivity", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-entry_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "entry_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Entry sensitivity", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-entry_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "entry_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Illuminance threshold", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-illuminance_threshold", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "illuminance_threshold", - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 420, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "lx" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Illuminance threshold", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-illuminance_threshold", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "illuminance_threshold", + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 420, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "lx" }, { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": "Breaker mode", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-breaker_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBreakerMode", - "options": [ - "Standard", - "Local" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Breaker mode", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-breaker_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaBreakerMode", + "options": [ + "Standard", + "Local" + ] }, { - "info_object": { - "fallback_name": "Breaker polarity", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-breaker_polarity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_polarity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBreakerPolarity", - "options": [ - "NC", - "NO" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Breaker polarity", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-breaker_polarity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_polarity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaBreakerPolarity", + "options": [ + "NC", + "NO" + ] }, { - "info_object": { - "fallback_name": "Breaker status", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-breaker_status", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBreakerStatus", - "options": [ - "Off", - "On" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Breaker status", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-breaker_status", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaBreakerStatus", + "options": [ + "Off", + "On" + ] }, { - "info_object": { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-sensor_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaMotionSensorMode", - "options": [ - "On", - "Off", - "Occupied", - "Unoccupied" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-sensor_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaMotionSensorMode", + "options": [ + "On", + "Off", + "Occupied", + "Unoccupied" + ] }, { - "info_object": { - "fallback_name": "Status indication", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-status_indication", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "status_indication", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaStatusIndication", - "options": [ - "Off", - "On" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Status indication", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-status_indication", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "status_indication", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaStatusIndication", + "options": [ + "Off", + "On" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-dwcarsat-ts0601-0x0000004a.json b/tests/data/devices/tze204-dwcarsat-ts0601-0x0000004a.json index e32fb91a7..65b3e079d 100644 --- a/tests/data/devices/tze204-dwcarsat-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-dwcarsat-ts0601-0x0000004a.json @@ -241,263 +241,218 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 23.5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 23.5, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 47.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 47.0, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "CarbonDioxideConcentration", - "available": true, - "state": 3.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3.0, + "suggested_display_precision": 0, + "unit": "ppm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "PM25", - "available": true, - "state": 26 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 26, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1067", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "FormaldehydeConcentration", - "translation_key": "formaldehyde", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "FormaldehydeConcentration", - "available": true, - "state": 477.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1067", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "FormaldehydeConcentration", + "translation_key": "formaldehyde", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 477.0, + "suggested_display_precision": 0, + "unit": "ppm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "VOCLevel", - "available": true, - "state": 126.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 126.0, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-eekpf0ft-ts0601-0x0000004a.json b/tests/data/devices/tze204-eekpf0ft-ts0601-0x0000004a.json index 538d268b6..37da2160e 100644 --- a/tests/data/devices/tze204-eekpf0ft-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-eekpf0ft-ts0601-0x0000004a.json @@ -164,95 +164,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:0c:bc:56-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:0c:bc:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:0c:bc:56-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:0c:bc:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:0c:bc:56-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:0c:bc:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -31 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:0c:bc:56-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:0c:bc:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -31, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:0c:bc:56-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1f:0c:bc:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:0c:bc:56-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:0c:bc:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-ex3rcdha-ts0601-0x0000004a.json b/tests/data/devices/tze204-ex3rcdha-ts0601-0x0000004a.json index 11ee024e0..5ae927f9b 100644 --- a/tests/data/devices/tze204-ex3rcdha-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-ex3rcdha-ts0601-0x0000004a.json @@ -474,526 +474,441 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Sensitivity", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Sensitivity", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Breath detection max", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-breath_detection_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "breath_detection_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Breath detection max", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-breath_detection_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "breath_detection_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Breath detection min", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-breath_detection_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "breath_detection_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Breath detection min", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-breath_detection_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "breath_detection_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Breath sensitivity", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-breath_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "breath_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Breath sensitivity", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-breath_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "breath_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 180, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 180, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Min range", - "unique_id": "ab:cd:ef:12:d9:08:34:09-2-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 950, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Min range", + "unique_id": "ab:cd:ef:12:d9:08:34:09-2-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 950, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Max range", - "unique_id": "ab:cd:ef:12:d9:08:34:09-3-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 950, - "native_min_value": 10, - "native_step": 10, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Max range", + "unique_id": "ab:cd:ef:12:d9:08:34:09-3-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 950, + "native_min_value": 10, + "native_step": 10, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:d9:08:34:09-4-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 4, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 20000, - "native_min_value": 0, - "native_step": 100, - "native_unit_of_measurement": "ms" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 0 - } + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:d9:08:34:09-4-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 20000, + "native_min_value": 0, + "native_step": 100, + "native_unit_of_measurement": "ms" }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:d9:08:34:09-5-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 5, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 200000, - "native_min_value": 2000, - "native_step": 1000, - "native_unit_of_measurement": "ms" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:d9:08:34:09-5-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 200000, + "native_min_value": 2000, + "native_step": 1000, + "native_unit_of_measurement": "ms" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-12-analog_input", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AnalogInputSensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "AnalogInputSensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-12-analog_input", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AnalogInputSensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-fhvdgeuh-ts0601-0x0000004a.json b/tests/data/devices/tze204-fhvdgeuh-ts0601-0x0000004a.json index 4567a5b8a..8867205e4 100644 --- a/tests/data/devices/tze204-fhvdgeuh-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-fhvdgeuh-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:4b:fc:2f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:4b:fc:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:4b:fc:2f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:4b:fc:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:4b:fc:2f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:4b:fc:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:4b:fc:2f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:4b:fc:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:4b:fc:2f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:93:4b:fc:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:4b:fc:2f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:93:4b:fc:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-g2ki0ejr-ts0601.json b/tests/data/devices/tze204-g2ki0ejr-ts0601.json index 6f0013d27..3d516de23 100644 --- a/tests/data/devices/tze204-g2ki0ejr-ts0601.json +++ b/tests/data/devices/tze204-g2ki0ejr-ts0601.json @@ -127,95 +127,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:a5:c0:28-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:a5:c0:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:a5:c0:28-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:a5:c0:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:a5:c0:28-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:a5:c0:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:a5:c0:28-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:a5:c0:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:a5:c0:28-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:47:a5:c0:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:a5:c0:28-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:47:a5:c0:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-goecjd1t-ts0601-0x0000004a.json b/tests/data/devices/tze204-goecjd1t-ts0601-0x0000004a.json index d3e593ffd..612cd4371 100644 --- a/tests/data/devices/tze204-goecjd1t-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-goecjd1t-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:87:3c:45:da-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:87:3c:45:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:87:3c:45:da-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:87:3c:45:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:87:3c:45:da-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:87:3c:45:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:87:3c:45:da-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:87:3c:45:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:87:3c:45:da-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:87:3c:45:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:87:3c:45:da-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:87:3c:45:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-gops3slb-ts0601-0x0000004a.json b/tests/data/devices/tze204-gops3slb-ts0601-0x0000004a.json index 42db989ec..151077bdc 100644 --- a/tests/data/devices/tze204-gops3slb-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-gops3slb-ts0601-0x0000004a.json @@ -230,540 +230,450 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Fault alarm", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-fault_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "fault_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "fault_alarm" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Fault alarm", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-fault_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "fault_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "fault_alarm" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 40.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 25.3, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "off", - "hvac_mode": "off", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[0]/off", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2250, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 25.3, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "off", + "hvac_mode": "off", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 40.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[0]/off", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2250, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 40.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 40.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Deadzone temperature", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-deadzone_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "deadzone_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Deadzone temperature", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-deadzone_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "deadzone_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.9, - "native_min_value": -9.9, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9.9, + "native_min_value": -9.9, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Backlight mode", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BacklightMode", - "options": [ - "Off", - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Backlight mode", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BacklightMode", + "options": [ + "Off", + "Low", + "Medium", + "High" + ] }, { - "info_object": { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "PresetModeV02", - "options": [ - "Manual", - "Auto", - "Temporary Manual" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "PresetModeV02", + "options": [ + "Manual", + "Auto", + "Temporary Manual" + ] }, { - "info_object": { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-temperature_sensor_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SensorMode", - "options": [ - "Air", - "Floor", - "Both" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-temperature_sensor_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "SensorMode", + "options": [ + "Air", + "Floor", + "Both" + ] }, { - "info_object": { - "fallback_name": "Working day", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-working_day", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "working_day", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "WorkingDayV02", - "options": [ - "Disabled", - "Five Two", - "Six One", - "Seven" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Working day", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-working_day", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "working_day", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "WorkingDayV02", + "options": [ + "Disabled", + "Five Two", + "Six One", + "Seven" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 224 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 224, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -55 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -55, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "off" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "off", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Factory reset", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-factory_reset", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "factory_reset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "factory_reset", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Factory reset", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-factory_reset", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "factory_reset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "factory_reset", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-guvc7pdy-ts0601-0x0000004a.json b/tests/data/devices/tze204-guvc7pdy-ts0601-0x0000004a.json index 743c09829..163e921d3 100644 --- a/tests/data/devices/tze204-guvc7pdy-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-guvc7pdy-ts0601-0x0000004a.json @@ -224,129 +224,108 @@ "zha_lib_entities": { "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": null, - "current_tilt_position": null, - "state": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": null, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-hlx9tnzb-ts0601.json b/tests/data/devices/tze204-hlx9tnzb-ts0601.json index 99070d358..70c2bca47 100644 --- a/tests/data/devices/tze204-hlx9tnzb-ts0601.json +++ b/tests/data/devices/tze204-hlx9tnzb-ts0601.json @@ -195,148 +195,120 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": 2, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": 2, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-iaeejhvf-ts0601-0x0000004a.json b/tests/data/devices/tze204-iaeejhvf-ts0601-0x0000004a.json index 398626af3..c121348fd 100644 --- a/tests/data/devices/tze204-iaeejhvf-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-iaeejhvf-ts0601-0x0000004a.json @@ -504,803 +504,673 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Sensitivity", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 5 - } + "fallback_name": "Sensitivity", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Block time", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-block_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "block_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Block time", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-block_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "block_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-detection_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-detection_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Entry distance indentation", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-entry_distance_indentation", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "entry_distance_indentation", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Entry distance indentation", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-entry_distance_indentation", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "entry_distance_indentation", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Entry sensitivity", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-entry_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "entry_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Entry sensitivity", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-entry_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "entry_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Illuminance threshold", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-illuminance_threshold", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "illuminance_threshold", - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 420, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "lx" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Illuminance threshold", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-illuminance_threshold", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "illuminance_threshold", + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 420, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "lx" }, { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Min range", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-2-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 950, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 40.0 - } + "fallback_name": "Min range", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-2-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": 40.0, + "mode": "auto", + "native_max_value": 950, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Max range", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-3-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 950, - "native_min_value": 10, - "native_step": 10, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 140.0 - } + "fallback_name": "Max range", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-3-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 140.0, + "mode": "auto", + "native_max_value": 950, + "native_min_value": 10, + "native_step": 10, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-4-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 4, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 20000, - "native_min_value": 0, - "native_step": 100, - "native_unit_of_measurement": "ms" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 500.0 - } + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-4-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": 500.0, + "mode": "auto", + "native_max_value": 20000, + "native_min_value": 0, + "native_step": 100, + "native_unit_of_measurement": "ms" }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-5-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 5, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 200000, - "native_min_value": 2000, - "native_step": 1000, - "native_unit_of_measurement": "ms" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": 2000.0 - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-5-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 5, + "available": true, + "group_id": null, + "native_value": 2000.0, + "mode": "auto", + "native_max_value": 200000, + "native_min_value": 2000, + "native_step": 1000, + "native_unit_of_measurement": "ms" } ], "select": [ { - "info_object": { - "fallback_name": "Breaker mode", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-breaker_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBreakerMode", - "options": [ - "Standard", - "Local" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Breaker mode", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-breaker_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaBreakerMode", + "options": [ + "Standard", + "Local" + ] }, { - "info_object": { - "fallback_name": "Breaker polarity", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-breaker_polarity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_polarity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBreakerPolarity", - "options": [ - "NC", - "NO" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Breaker polarity", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-breaker_polarity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_polarity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaBreakerPolarity", + "options": [ + "NC", + "NO" + ] }, { - "info_object": { - "fallback_name": "Breaker status", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-breaker_status", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBreakerStatus", - "options": [ - "Off", - "On" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Breaker status", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-breaker_status", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaBreakerStatus", + "options": [ + "Off", + "On" + ] }, { - "info_object": { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-sensor_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaMotionSensorMode", - "options": [ - "On", - "Off", - "Occupied", - "Unoccupied" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-sensor_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaMotionSensorMode", + "options": [ + "On", + "Off", + "Occupied", + "Unoccupied" + ] }, { - "info_object": { - "fallback_name": "Status indication", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-status_indication", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "status_indication", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaStatusIndication", - "options": [ - "Off", - "On" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Status indication", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-status_indication", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "status_indication", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaStatusIndication", + "options": [ + "Off", + "On" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 768 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 768, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-12-analog_input", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AnalogInputSensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "AnalogInputSensor", - "available": true, - "state": 0.0 - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-12-analog_input", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AnalogInputSensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "m" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-ijxvkhd0-ts0601.json b/tests/data/devices/tze204-ijxvkhd0-ts0601.json index 9483c5673..abd6a3215 100644 --- a/tests/data/devices/tze204-ijxvkhd0-ts0601.json +++ b/tests/data/devices/tze204-ijxvkhd0-ts0601.json @@ -156,95 +156,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:78:4c:6e:1d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:78:4c:6e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:78:4c:6e:1d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:78:4c:6e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:78:4c:6e:1d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:78:4c:6e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:78:4c:6e:1d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:78:4c:6e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:78:4c:6e:1d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:78:4c:6e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:78:4c:6e:1d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:78:4c:6e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-jrcfsaa3-ts0601-0x0000004a.json b/tests/data/devices/tze204-jrcfsaa3-ts0601-0x0000004a.json index f8d5adcd5..22eb8e6dc 100644 --- a/tests/data/devices/tze204-jrcfsaa3-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-jrcfsaa3-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:85:7f:ad-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:85:7f:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:85:7f:ad-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:85:7f:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:85:7f:ad-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:85:7f:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:85:7f:ad-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:85:7f:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:85:7f:ad-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:85:7f:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:85:7f:ad-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:85:7f:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-k7mfgaen-ts0601.json b/tests/data/devices/tze204-k7mfgaen-ts0601.json index 9cf2e565c..e6ed36c73 100644 --- a/tests/data/devices/tze204-k7mfgaen-ts0601.json +++ b/tests/data/devices/tze204-k7mfgaen-ts0601.json @@ -194,301 +194,256 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Charging", - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-charge_state", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery_charging", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "charge_state" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Charging", + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-charge_state", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery_charging", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "charge_state" } ], "number": [ { - "info_object": { - "fallback_name": "Alarm duration", - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm duration", + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "min" } ], "select": [ { - "info_object": { - "fallback_name": "Alarm mode", - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaSirenState", - "options": [ - "Sound", - "Light", - "Sound and light", - "Normal" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm mode", + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaSirenState", + "options": [ + "Sound", + "Light", + "Sound and light", + "Normal" + ] }, { - "info_object": { - "fallback_name": "Alarm ringtone", - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_ringtone", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_ringtone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaSirenRingtoneV02", - "options": [ - "Ringtone 01", - "Ringtone 02", - "Ringtone 03", - "Ringtone 04", - "Ringtone 05", - "Ringtone 06", - "Ringtone 07", - "Ringtone 08", - "Door", - "Water", - "Temperature", - "Entered", - "Left" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm ringtone", + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_ringtone", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_ringtone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaSirenRingtoneV02", + "options": [ + "Ringtone 01", + "Ringtone 02", + "Ringtone 03", + "Ringtone 04", + "Ringtone 05", + "Ringtone 06", + "Ringtone 07", + "Ringtone 08", + "Door", + "Water", + "Temperature", + "Entered", + "Left" + ] }, { - "info_object": { - "fallback_name": "Alarm volume", - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_volume", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_volume", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaAlarmVolume", - "options": [ - "Low", - "Medium", - "High", - "Mute" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm volume", + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_volume", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_volume", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaAlarmVolume", + "options": [ + "Low", + "Medium", + "High", + "Mute" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": "Siren on", - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-siren_on", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "siren_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "siren_on", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Siren on", + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-siren_on", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "siren_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "siren_on", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-kobbcyum-ts0601.json b/tests/data/devices/tze204-kobbcyum-ts0601.json index 767d386dd..05eb07aeb 100644 --- a/tests/data/devices/tze204-kobbcyum-ts0601.json +++ b/tests/data/devices/tze204-kobbcyum-ts0601.json @@ -196,95 +196,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:76:55:79-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:76:55:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:76:55:79-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:76:55:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:76:55:79-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:76:55:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:76:55:79-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:76:55:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:76:55:79-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:76:55:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:76:55:79-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:76:55:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-kyhbrfyl-ts0601.json b/tests/data/devices/tze204-kyhbrfyl-ts0601.json index 2acc6bef1..0baed05ba 100644 --- a/tests/data/devices/tze204-kyhbrfyl-ts0601.json +++ b/tests/data/devices/tze204-kyhbrfyl-ts0601.json @@ -166,306 +166,256 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 150, - "native_step": 1, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 150, + "native_step": 1, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 3, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 3, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 7, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 7, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Radar sensitivity", - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-radar_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "radar_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 7, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Radar sensitivity", + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-radar_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "radar_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 7, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": "Human motion state", - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-human_motion_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "human_motion_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Human motion state", + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-human_motion_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "human_motion_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-target_distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "target_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "cm" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-target_distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "target_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "cm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-l8xiyymq-ts0601.json b/tests/data/devices/tze204-l8xiyymq-ts0601.json index 405c37037..676a1e88b 100644 --- a/tests/data/devices/tze204-l8xiyymq-ts0601.json +++ b/tests/data/devices/tze204-l8xiyymq-ts0601.json @@ -165,95 +165,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:f8:60:0e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1e:f8:60:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:f8:60:0e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1e:f8:60:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:f8:60:0e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1e:f8:60:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:f8:60:0e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1e:f8:60:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:f8:60:0e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1e:f8:60:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:f8:60:0e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1e:f8:60:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-lb0fsvba-ts0601-0x0000004a.json b/tests/data/devices/tze204-lb0fsvba-ts0601-0x0000004a.json index dfe0427ec..0f47f6131 100644 --- a/tests/data/devices/tze204-lb0fsvba-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-lb0fsvba-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:30:4a:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:30:4a:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 188 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:30:4a:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:30:4a:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 188, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:30:4a:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:30:4a:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -53 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:30:4a:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:30:4a:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -53, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:30:4a:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a6:30:4a:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:30:4a:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a6:30:4a:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-lbbg34rj-ts0601-0x0000004a.json b/tests/data/devices/tze204-lbbg34rj-ts0601-0x0000004a.json index 87215b07f..b2b4687c1 100644 --- a/tests/data/devices/tze204-lbbg34rj-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-lbbg34rj-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:2f:91:65-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:2f:91:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:2f:91:65-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:2f:91:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:2f:91:65-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:2f:91:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:2f:91:65-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:2f:91:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:2f:91:65-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:2f:91:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:2f:91:65-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:2f:91:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-lpedvtvr-ts0601-0x0000004a.json b/tests/data/devices/tze204-lpedvtvr-ts0601-0x0000004a.json index 0905755e1..92b02e541 100644 --- a/tests/data/devices/tze204-lpedvtvr-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-lpedvtvr-ts0601-0x0000004a.json @@ -321,250 +321,205 @@ "zha_lib_entities": { "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 21.5, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": 20.0, - "hvac_action": "idle", - "hvac_mode": "heat_cool", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[1]/heat_cool", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 21.5, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": 20.0, + "hvac_action": "idle", + "hvac_mode": "heat_cool", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[1]/heat_cool", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-lsanae15-ts0601-0x0000004a.json b/tests/data/devices/tze204-lsanae15-ts0601-0x0000004a.json index ecbfdfc2d..9c882a74c 100644 --- a/tests/data/devices/tze204-lsanae15-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-lsanae15-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:3e:33:41-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:3e:33:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:3e:33:41-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:3e:33:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:3e:33:41-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:3e:33:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:3e:33:41-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:3e:33:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:3e:33:41-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:3e:33:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:3e:33:41-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:3e:33:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004a.json b/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004a.json index 0c36cc247..cba7be6be 100644 --- a/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004a.json @@ -269,693 +269,578 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "window", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_open" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "window", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "window_open" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 19.7, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1800, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 19.7, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1800, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Comfort temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-comfort_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 17.0 - } + "fallback_name": "Comfort temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-comfort_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 17.0, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Eco temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-eco_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "eco_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 20.0 - } + "fallback_name": "Eco temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-eco_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "eco_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20.0, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Holiday temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-holiday_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "holiday_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Holiday temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-holiday_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "holiday_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0.0 - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Max temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-max_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 15, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Max temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-max_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 15, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Min temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-min_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 15, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Min temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-min_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 15, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_brightness", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaDisplayBrightness", - "options": [ - "High", - "Medium", - "Low" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_brightness", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaDisplayBrightness", + "options": [ + "High", + "Medium", + "Low" + ] }, { - "info_object": { - "fallback_name": "Display orientation", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_orientation", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_orientation", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaDisplayOrientation", - "options": [ - "Up", - "Down" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Display orientation", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_orientation", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_orientation", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaDisplayOrientation", + "options": [ + "Up", + "Down" + ] }, { - "info_object": { - "fallback_name": "Hysteresis mode", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-hysteresis_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "hysteresis_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaHysteresis", - "options": [ - "Comfort", - "Eco" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Hysteresis mode", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-hysteresis_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "hysteresis_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaHysteresis", + "options": [ + "Comfort", + "Eco" + ] }, { - "info_object": { - "fallback_name": "Motor thrust", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-motor_thrust", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motor_thrust", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaMotorThrust", - "options": [ - "Strong", - "Middle", - "Weak" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Motor thrust", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-motor_thrust", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motor_thrust", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaMotorThrust", + "options": [ + "Strong", + "Middle", + "Weak" + ] }, { - "info_object": { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPresetMode", - "options": [ - "Eco", - "Auto", - "Off", - "Heat" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaPresetMode", + "options": [ + "Eco", + "Auto", + "Off", + "Heat" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "heating" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "heating", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Valve position", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-valve_position", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "valve_position", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 0.0 - } + "fallback_name": "Valve position", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-valve_position", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "valve_position", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "%" } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004e.json b/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004e.json index b8405dd5f..9d1e72020 100644 --- a/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004e.json +++ b/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004e.json @@ -359,693 +359,578 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "window", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_open" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "window", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "window_open" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 22.2, - "outdoor_temperature": null, - "target_temperature": 21.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2100, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 22.2, + "outdoor_temperature": null, + "target_temperature": 21.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2100, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Comfort temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-comfort_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 21.0 - } + "fallback_name": "Comfort temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-comfort_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 21.0, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Eco temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-eco_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "eco_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 20.0 - } + "fallback_name": "Eco temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-eco_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "eco_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 20.0, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Holiday temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-holiday_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "holiday_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 15.0 - } + "fallback_name": "Holiday temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-holiday_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "holiday_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 15.0, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": -2.4000000000000004 - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -2.4000000000000004, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Max temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-max_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 15, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 30.0 - } + "fallback_name": "Max temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-max_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 15, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Min temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-min_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 15, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 5.0 - } + "fallback_name": "Min temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-min_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "auto", + "native_max_value": 15, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_brightness", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaDisplayBrightness", - "options": [ - "High", - "Medium", - "Low" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "High" - } + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_brightness", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "High", + "enum": "TuyaDisplayBrightness", + "options": [ + "High", + "Medium", + "Low" + ] }, { - "info_object": { - "fallback_name": "Display orientation", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_orientation", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_orientation", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaDisplayOrientation", - "options": [ - "Up", - "Down" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Up" - } + "fallback_name": "Display orientation", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_orientation", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_orientation", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Up", + "enum": "TuyaDisplayOrientation", + "options": [ + "Up", + "Down" + ] }, { - "info_object": { - "fallback_name": "Hysteresis mode", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-hysteresis_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "hysteresis_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaHysteresis", - "options": [ - "Comfort", - "Eco" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Comfort" - } + "fallback_name": "Hysteresis mode", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-hysteresis_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "hysteresis_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Comfort", + "enum": "TuyaHysteresis", + "options": [ + "Comfort", + "Eco" + ] }, { - "info_object": { - "fallback_name": "Motor thrust", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-motor_thrust", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motor_thrust", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaMotorThrust", - "options": [ - "Strong", - "Middle", - "Weak" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Weak" - } + "fallback_name": "Motor thrust", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-motor_thrust", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motor_thrust", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Weak", + "enum": "TuyaMotorThrust", + "options": [ + "Strong", + "Middle", + "Weak" + ] }, { - "info_object": { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPresetMode", - "options": [ - "Eco", - "Auto", - "Off", - "Heat" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Heat" - } + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Heat", + "enum": "TuyaPresetMode", + "options": [ + "Eco", + "Auto", + "Off", + "Heat" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 152 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 152, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -62 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -62, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Valve position", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-valve_position", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "valve_position", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 0.0 - } + "fallback_name": "Valve position", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-valve_position", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "valve_position", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "%" } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-lzriup1j-ts0601.json b/tests/data/devices/tze204-lzriup1j-ts0601.json index aa664b110..bc17bb527 100644 --- a/tests/data/devices/tze204-lzriup1j-ts0601.json +++ b/tests/data/devices/tze204-lzriup1j-ts0601.json @@ -193,509 +193,424 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Fault alarm", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-fault_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "fault_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "fault_alarm" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Fault alarm", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-fault_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "fault_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "fault_alarm" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Deadzone temperature", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-deadzone_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "deadzone_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Deadzone temperature", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-deadzone_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "deadzone_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.9, - "native_min_value": -9.9, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9.9, + "native_min_value": -9.9, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Backlight mode", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BacklightMode", - "options": [ - "Off", - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Backlight mode", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BacklightMode", + "options": [ + "Off", + "Low", + "Medium", + "High" + ] }, { - "info_object": { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "PresetModeV02", - "options": [ - "Manual", - "Auto", - "Temporary Manual" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "PresetModeV02", + "options": [ + "Manual", + "Auto", + "Temporary Manual" + ] }, { - "info_object": { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-temperature_sensor_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SensorMode", - "options": [ - "Air", - "Floor", - "Both" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-temperature_sensor_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "SensorMode", + "options": [ + "Air", + "Floor", + "Both" + ] }, { - "info_object": { - "fallback_name": "Working day", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-working_day", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "working_day", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "WorkingDayV02", - "options": [ - "Disabled", - "Five Two", - "Six One", - "Seven" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Working day", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-working_day", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "working_day", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "WorkingDayV02", + "options": [ + "Disabled", + "Five Two", + "Six One", + "Seven" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Factory reset", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-factory_reset", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "factory_reset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "factory_reset", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Factory reset", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-factory_reset", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "factory_reset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "factory_reset", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-m64smti7-ts0601-0x0000004a.json b/tests/data/devices/tze204-m64smti7-ts0601-0x0000004a.json index 31d401b4a..8cbeb36d8 100644 --- a/tests/data/devices/tze204-m64smti7-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-m64smti7-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:4e:33:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:4e:33:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:4e:33:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:4e:33:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:4e:33:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:4e:33:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:4e:33:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:4e:33:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:4e:33:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:4e:33:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:4e:33:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:4e:33:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-m9dzckna-ts0601-0x0000004a.json b/tests/data/devices/tze204-m9dzckna-ts0601-0x0000004a.json index 036d002b1..314aa8203 100644 --- a/tests/data/devices/tze204-m9dzckna-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-m9dzckna-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:e0:45:b0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:e0:45:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 216 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:e0:45:b0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:e0:45:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 216, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:e0:45:b0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:e0:45:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -57 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:e0:45:b0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:e0:45:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -57, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:e0:45:b0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:e0:45:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:e0:45:b0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:e0:45:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-mpbki2zm-ts0601.json b/tests/data/devices/tze204-mpbki2zm-ts0601.json index 5e7a23123..86ee676c5 100644 --- a/tests/data/devices/tze204-mpbki2zm-ts0601.json +++ b/tests/data/devices/tze204-mpbki2zm-ts0601.json @@ -156,95 +156,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:bc:e2:8f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fd:bc:e2:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:bc:e2:8f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fd:bc:e2:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:bc:e2:8f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fd:bc:e2:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:bc:e2:8f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fd:bc:e2:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:bc:e2:8f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fd:bc:e2:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:bc:e2:8f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fd:bc:e2:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-mtoaryre-ts0601-0x0000004a.json b/tests/data/devices/tze204-mtoaryre-ts0601-0x0000004a.json index 9a80ca388..32d11986c 100644 --- a/tests/data/devices/tze204-mtoaryre-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-mtoaryre-ts0601-0x0000004a.json @@ -182,620 +182,520 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Block time", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-block_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "block_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Block time", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-block_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "block_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-detection_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-detection_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Entry distance indentation", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-entry_distance_indentation", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "entry_distance_indentation", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Entry distance indentation", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-entry_distance_indentation", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "entry_distance_indentation", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Entry sensitivity", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-entry_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "entry_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Entry sensitivity", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-entry_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "entry_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Illuminance threshold", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-illuminance_threshold", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "illuminance_threshold", - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 420, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "lx" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Illuminance threshold", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-illuminance_threshold", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "illuminance_threshold", + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 420, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "lx" }, { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": "Breaker mode", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-breaker_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBreakerMode", - "options": [ - "Standard", - "Local" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Breaker mode", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-breaker_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaBreakerMode", + "options": [ + "Standard", + "Local" + ] }, { - "info_object": { - "fallback_name": "Breaker polarity", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-breaker_polarity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_polarity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBreakerPolarity", - "options": [ - "NC", - "NO" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Breaker polarity", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-breaker_polarity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_polarity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaBreakerPolarity", + "options": [ + "NC", + "NO" + ] }, { - "info_object": { - "fallback_name": "Breaker status", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-breaker_status", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaBreakerStatus", - "options": [ - "Off", - "On" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Breaker status", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-breaker_status", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaBreakerStatus", + "options": [ + "Off", + "On" + ] }, { - "info_object": { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-sensor_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaMotionSensorMode", - "options": [ - "On", - "Off", - "Occupied", - "Unoccupied" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-sensor_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaMotionSensorMode", + "options": [ + "On", + "Off", + "Occupied", + "Unoccupied" + ] }, { - "info_object": { - "fallback_name": "Status indication", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-status_indication", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "status_indication", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaStatusIndication", - "options": [ - "Off", - "On" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Status indication", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-status_indication", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "status_indication", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaStatusIndication", + "options": [ + "Off", + "On" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-muvkrjr5-ts0601.json b/tests/data/devices/tze204-muvkrjr5-ts0601.json index 9b41ed395..791c62407 100644 --- a/tests/data/devices/tze204-muvkrjr5-ts0601.json +++ b/tests/data/devices/tze204-muvkrjr5-ts0601.json @@ -162,274 +162,229 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-find_switch", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "find_switch" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-find_switch", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "find_switch" } ], "number": [ { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6.0, - "native_min_value": 1.5, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6.0, + "native_min_value": 1.5, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1799, - "native_min_value": 3, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1799, + "native_min_value": 3, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 90, - "native_min_value": 68, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 90, + "native_min_value": 68, + "native_step": 1, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-target_distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "target_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "cm" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-target_distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "target_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "cm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-mwomyz5n-ts0601-0x0000004a.json b/tests/data/devices/tze204-mwomyz5n-ts0601-0x0000004a.json index 3b8d94e9d..ebf0a7c46 100644 --- a/tests/data/devices/tze204-mwomyz5n-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-mwomyz5n-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:f0:cd:10-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:f0:cd:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:f0:cd:10-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:f0:cd:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:f0:cd:10-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:f0:cd:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:f0:cd:10-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:f0:cd:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:f0:cd:10-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:f0:cd:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:f0:cd:10-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:f0:cd:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-nbkshs6k-ts0601-0x0000004a.json b/tests/data/devices/tze204-nbkshs6k-ts0601-0x0000004a.json index 5ab260307..201a84767 100644 --- a/tests/data/devices/tze204-nbkshs6k-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-nbkshs6k-ts0601-0x0000004a.json @@ -157,95 +157,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:55:11:88-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:55:11:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:55:11:88-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:55:11:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:55:11:88-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:55:11:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:55:11:88-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:55:11:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:55:11:88-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:05:55:11:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:55:11:88-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:55:11:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-nklqjk62-ts0601-0x0000004a.json b/tests/data/devices/tze204-nklqjk62-ts0601-0x0000004a.json index 1d7cc49ea..4a25db434 100644 --- a/tests/data/devices/tze204-nklqjk62-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-nklqjk62-ts0601-0x0000004a.json @@ -151,95 +151,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:b7:13:b6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:b7:13:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:b7:13:b6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:b7:13:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:b7:13:b6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:b7:13:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:b7:13:b6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:b7:13:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:b7:13:b6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:b7:13:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:b7:13:b6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:b7:13:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-nlrfgpny-ts0601-0x00000049.json b/tests/data/devices/tze204-nlrfgpny-ts0601-0x00000049.json index 9f9a952c5..f334a787e 100644 --- a/tests/data/devices/tze204-nlrfgpny-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-nlrfgpny-ts0601-0x00000049.json @@ -235,406 +235,341 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Charging", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-charge_state", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery_charging", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "charge_state" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Charging", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-charge_state", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery_charging", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "charge_state" }, { - "info_object": { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "tamper" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "tamper" } ], "number": [ { - "info_object": { - "fallback_name": "Alarm duration", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm duration", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "min" } ], "select": [ { - "info_object": { - "fallback_name": "Alarm mode", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaSirenState", - "options": [ - "Sound", - "Light", - "Sound and light", - "Normal" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm mode", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaSirenState", + "options": [ + "Sound", + "Light", + "Sound and light", + "Normal" + ] }, { - "info_object": { - "fallback_name": "Alarm ringtone", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_ringtone", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_ringtone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaSirenRingtone", - "options": [ - "Ringtone 01", - "Ringtone 02", - "Ringtone 03" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Alarm ringtone", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_ringtone", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_ringtone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaSirenRingtone", + "options": [ + "Ringtone 01", + "Ringtone 02", + "Ringtone 03" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Other", - "battery_quantity": 1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": null }, { - "info_object": { - "fallback_name": "Alarm state", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "alarm_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Alarm state", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "alarm_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 }, { - "info_object": { - "fallback_name": "Enable tamper alarm", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-enable_tamper_alarm", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "enable_tamper_alarm", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "enable_tamper_alarm", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Enable tamper alarm", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-enable_tamper_alarm", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "enable_tamper_alarm", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "enable_tamper_alarm", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Siren on", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-siren_on", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "siren_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "siren_on", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Siren on", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-siren_on", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "siren_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "siren_on", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-nqqylykc-ts0601-0x0000004a.json b/tests/data/devices/tze204-nqqylykc-ts0601-0x0000004a.json index ccd6cb856..f2b6d8826 100644 --- a/tests/data/devices/tze204-nqqylykc-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-nqqylykc-ts0601-0x0000004a.json @@ -186,148 +186,120 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:27:8d:66-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:11:27:8d:66", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:27:8d:66-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:27:8d:66", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:27:8d:66-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:27:8d:66", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:27:8d:66-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:27:8d:66", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:27:8d:66-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:27:8d:66", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:27:8d:66-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:27:8d:66", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:27:8d:66-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:27:8d:66", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:27:8d:66-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:27:8d:66", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-nvxorhcj-ts0601-0x0000004a.json b/tests/data/devices/tze204-nvxorhcj-ts0601-0x0000004a.json index cca4481cd..68ca90dc2 100644 --- a/tests/data/devices/tze204-nvxorhcj-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-nvxorhcj-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:22:d1:17-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:22:d1:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 58 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:22:d1:17-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:22:d1:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 58, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:22:d1:17-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:22:d1:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:22:d1:17-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:22:d1:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:22:d1:17-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:86:22:d1:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:22:d1:17-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:86:22:d1:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-ogx8u5z6-ts0601-0x0000004a.json b/tests/data/devices/tze204-ogx8u5z6-ts0601-0x0000004a.json index 8ebb825e3..5595bbfc4 100644 --- a/tests/data/devices/tze204-ogx8u5z6-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-ogx8u5z6-ts0601-0x0000004a.json @@ -201,346 +201,286 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "error_or_battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "error_or_battery_low" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-p3lqqy2r-ts0601.json b/tests/data/devices/tze204-p3lqqy2r-ts0601.json index 9e4fb6fb4..b82fed0aa 100644 --- a/tests/data/devices/tze204-p3lqqy2r-ts0601.json +++ b/tests/data/devices/tze204-p3lqqy2r-ts0601.json @@ -182,584 +182,484 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-window_detection", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_detection" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-window_detection", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "window_detection" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": -9, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": -9, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Regulator set point", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-regulator_set_point", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "regulator_set_point", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Regulator set point", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-regulator_set_point", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "regulator_set_point", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "PresetModeV01", - "options": [ - "Manual", - "Home", - "Away" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "PresetModeV01", + "options": [ + "Manual", + "Home", + "Away" + ] }, { - "info_object": { - "fallback_name": "Regulator period", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-regulator_period", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "regulator_period", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "RegulatorPeriod", - "options": [ - " 15 min", - " 30 min", - " 45 min", - " 60 min", - " 90 min" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Regulator period", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-regulator_period", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "regulator_period", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "RegulatorPeriod", + "options": [ + " 15 min", + " 30 min", + " 45 min", + " 60 min", + " 90 min" + ] }, { - "info_object": { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-temperature_sensor_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SensorMode", - "options": [ - "Air", - "Floor", - "Both" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-temperature_sensor_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "SensorMode", + "options": [ + "Air", + "Floor", + "Both" + ] }, { - "info_object": { - "fallback_name": "Thermostat mode", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-thermostat_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "thermostat_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "ThermostatMode", - "options": [ - "Regulator", - "Thermostat" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Thermostat mode", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-thermostat_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "thermostat_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "ThermostatMode", + "options": [ + "Regulator", + "Thermostat" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Current", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "A" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Current", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "A" }, { - "info_object": { - "fallback_name": "Energy", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-energy", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "kWh" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Energy", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-energy", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "kWh" }, { - "info_object": { - "fallback_name": "Floor temperature", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-local_temperature_floor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "local_temperature_floor", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Floor temperature", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-local_temperature_floor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "local_temperature_floor", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": "Power", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "W" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Power", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "W" }, { - "info_object": { - "fallback_name": "Voltage", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "V" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Voltage", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "V" } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-pcdmj88b-ts0601-0x00000049.json b/tests/data/devices/tze204-pcdmj88b-ts0601-0x00000049.json index c0f08815d..6866a8ad2 100644 --- a/tests/data/devices/tze204-pcdmj88b-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-pcdmj88b-ts0601-0x00000049.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:ba:f4:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:ba:f4:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:ba:f4:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:ba:f4:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:ba:f4:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:ba:f4:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:ba:f4:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:ba:f4:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:ba:f4:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9d:ba:f4:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:ba:f4:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9d:ba:f4:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-ptaqh9tk-ts0601.json b/tests/data/devices/tze204-ptaqh9tk-ts0601.json index d4d8251b5..204ca6222 100644 --- a/tests/data/devices/tze204-ptaqh9tk-ts0601.json +++ b/tests/data/devices/tze204-ptaqh9tk-ts0601.json @@ -174,147 +174,119 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 0, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-pxbjch8m-ts0601-0x0000004a.json b/tests/data/devices/tze204-pxbjch8m-ts0601-0x0000004a.json index c6fbbceb9..7bfc82db6 100644 --- a/tests/data/devices/tze204-pxbjch8m-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-pxbjch8m-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:71:53:6a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:71:53:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:71:53:6a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:71:53:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:71:53:6a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:71:53:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:71:53:6a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:71:53:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:71:53:6a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:71:53:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:71:53:6a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:71:53:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-qasjif9e-ts0601-0x0000004a.json b/tests/data/devices/tze204-qasjif9e-ts0601-0x0000004a.json index 213e51bb3..5a194c13a 100644 --- a/tests/data/devices/tze204-qasjif9e-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-qasjif9e-ts0601-0x0000004a.json @@ -202,337 +202,282 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Detection delay", - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-detection_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Detection delay", + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-detection_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Minimum range", + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1500, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1500, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion sensitivity", + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": 18 - } + "fallback_name": null, + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 18, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-qtnjuoae-ts0601-0x00000049.json b/tests/data/devices/tze204-qtnjuoae-ts0601-0x00000049.json index 2f1f64504..7392fb821 100644 --- a/tests/data/devices/tze204-qtnjuoae-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-qtnjuoae-ts0601-0x00000049.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:78:bd:46-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:78:bd:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:78:bd:46-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:78:bd:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:78:bd:46-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:78:bd:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:78:bd:46-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:78:bd:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:78:bd:46-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:78:bd:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:78:bd:46-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:78:bd:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-qvxrkeif-ts0601-0x0000004a.json b/tests/data/devices/tze204-qvxrkeif-ts0601-0x0000004a.json index ae6f8fc58..f0d232678 100644 --- a/tests/data/devices/tze204-qvxrkeif-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-qvxrkeif-ts0601-0x0000004a.json @@ -175,205 +175,170 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": "Fault alarm", - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-fault_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "fault_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "fault_alarm" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Fault alarm", + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-fault_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "fault_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "fault_alarm" }, { - "info_object": { - "fallback_name": "Lifecycle", - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-lifecycle", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "lifecycle", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "lifecycle" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Lifecycle", + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-lifecycle", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "lifecycle", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "lifecycle" }, { - "info_object": { - "fallback_name": "Preheat", - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-preheat", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "preheat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "preheat" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Preheat", + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-preheat", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "preheat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "preheat" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -26 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -26, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-qyr2m29i-ts0601-0x0000004a.json b/tests/data/devices/tze204-qyr2m29i-ts0601-0x0000004a.json index 5a04980ed..8665b9bfb 100644 --- a/tests/data/devices/tze204-qyr2m29i-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-qyr2m29i-ts0601-0x0000004a.json @@ -226,693 +226,578 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-window_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "window", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_open" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-window_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "window", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "window_open" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Comfort temperature", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-comfort_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Comfort temperature", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-comfort_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Eco temperature", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-eco_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "eco_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Eco temperature", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-eco_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "eco_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Holiday temperature", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-holiday_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "holiday_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Holiday temperature", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-holiday_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "holiday_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Max temperature", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-max_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 15, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Max temperature", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-max_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 15, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Min temperature", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-min_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 15, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Min temperature", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-min_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 15, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-display_brightness", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaDisplayBrightness", - "options": [ - "High", - "Medium", - "Low" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-display_brightness", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaDisplayBrightness", + "options": [ + "High", + "Medium", + "Low" + ] }, { - "info_object": { - "fallback_name": "Display orientation", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-display_orientation", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_orientation", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaDisplayOrientation", - "options": [ - "Up", - "Down" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Display orientation", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-display_orientation", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_orientation", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaDisplayOrientation", + "options": [ + "Up", + "Down" + ] }, { - "info_object": { - "fallback_name": "Hysteresis mode", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-hysteresis_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "hysteresis_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaHysteresis", - "options": [ - "Comfort", - "Eco" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Hysteresis mode", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-hysteresis_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "hysteresis_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaHysteresis", + "options": [ + "Comfort", + "Eco" + ] }, { - "info_object": { - "fallback_name": "Motor thrust", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-motor_thrust", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motor_thrust", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaMotorThrust", - "options": [ - "Strong", - "Middle", - "Weak" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Motor thrust", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-motor_thrust", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motor_thrust", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaMotorThrust", + "options": [ + "Strong", + "Middle", + "Weak" + ] }, { - "info_object": { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaPresetMode", - "options": [ - "Eco", - "Auto", - "Off", - "Heat" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaPresetMode", + "options": [ + "Eco", + "Auto", + "Off", + "Heat" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Valve position", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-valve_position", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "valve_position", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Valve position", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-valve_position", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "valve_position", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-r32ctezx-ts0601-0x0000004a.json b/tests/data/devices/tze204-r32ctezx-ts0601-0x0000004a.json index 80027a3aa..f99586e4e 100644 --- a/tests/data/devices/tze204-r32ctezx-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-r32ctezx-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:aa:3a:96:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:aa:3a:96:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:aa:3a:96:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:aa:3a:96:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:aa:3a:96:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:aa:3a:96:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:aa:3a:96:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:aa:3a:96:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:aa:3a:96:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:aa:3a:96:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:aa:3a:96:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:aa:3a:96:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-rhblgy0z-ts0601.json b/tests/data/devices/tze204-rhblgy0z-ts0601.json index 9b3dd7085..77f435d10 100644 --- a/tests/data/devices/tze204-rhblgy0z-ts0601.json +++ b/tests/data/devices/tze204-rhblgy0z-ts0601.json @@ -156,95 +156,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:99:90-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:01:e4:99:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:99:90-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:01:e4:99:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:99:90-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:01:e4:99:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:99:90-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:01:e4:99:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:99:90-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:01:e4:99:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:99:90-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:01:e4:99:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-rtrmfadk-ts0601-0x00000049.json b/tests/data/devices/tze204-rtrmfadk-ts0601-0x00000049.json index e092f81ac..8a6df0d61 100644 --- a/tests/data/devices/tze204-rtrmfadk-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-rtrmfadk-ts0601-0x00000049.json @@ -262,471 +262,391 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "error_or_battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "error_or_battery_low" }, { - "info_object": { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "window", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_open" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "window", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "window_open" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Max temperature", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-max_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 15, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Max temperature", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-max_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 15, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Min temperature", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-min_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 15, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Min temperature", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-min_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 15, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Eco mode", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-eco_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "eco_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaThermostatEcoMode", - "options": [ - "Comfort", - "Eco" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Eco mode", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-eco_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "eco_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaThermostatEcoMode", + "options": [ + "Comfort", + "Eco" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-rtrmfadk-ts0601.json b/tests/data/devices/tze204-rtrmfadk-ts0601.json index 59464f625..97c3f03bc 100644 --- a/tests/data/devices/tze204-rtrmfadk-ts0601.json +++ b/tests/data/devices/tze204-rtrmfadk-ts0601.json @@ -304,471 +304,391 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "error_or_battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "error_or_battery_low" }, { - "info_object": { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "window", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_open" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "window", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "window_open" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 16.8, - "outdoor_temperature": null, - "target_temperature": 12.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1200, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 16.8, + "outdoor_temperature": null, + "target_temperature": 12.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1200, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": -10 - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -10, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Max temperature", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-max_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 15, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 30.0 - } + "fallback_name": "Max temperature", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-max_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 15, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Min temperature", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-min_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 15, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 5.0 - } + "fallback_name": "Min temperature", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-min_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "auto", + "native_max_value": 15, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Eco mode", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-eco_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "eco_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaThermostatEcoMode", - "options": [ - "Comfort", - "Eco" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Eco" - } + "fallback_name": "Eco mode", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-eco_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "eco_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Eco", + "enum": "TuyaThermostatEcoMode", + "options": [ + "Comfort", + "Eco" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 97.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 97.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-sooucan5-ts0601.json b/tests/data/devices/tze204-sooucan5-ts0601.json index 92353126b..42347cbdf 100644 --- a/tests/data/devices/tze204-sooucan5-ts0601.json +++ b/tests/data/devices/tze204-sooucan5-ts0601.json @@ -175,368 +175,308 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m" }, { - "info_object": { - "fallback_name": "Self test result", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-self_test", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "self_test", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Self test result", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-self_test", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "self_test", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-srmahpwl-ts0601.json b/tests/data/devices/tze204-srmahpwl-ts0601.json index 394d50b0c..c0fc0e280 100644 --- a/tests/data/devices/tze204-srmahpwl-ts0601.json +++ b/tests/data/devices/tze204-srmahpwl-ts0601.json @@ -156,95 +156,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:61:85:0a:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:61:85:0a:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:61:85:0a:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:61:85:0a:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:61:85:0a:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:61:85:0a:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:61:85:0a:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:61:85:0a:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:61:85:0a:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:61:85:0a:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:61:85:0a:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:61:85:0a:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-sxm7l9xa-ts0601.json b/tests/data/devices/tze204-sxm7l9xa-ts0601.json index 3787a43a6..c67d255f5 100644 --- a/tests/data/devices/tze204-sxm7l9xa-ts0601.json +++ b/tests/data/devices/tze204-sxm7l9xa-ts0601.json @@ -169,337 +169,282 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-detection_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-detection_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 950, - "native_min_value": 0, - "native_step": 15, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 950, + "native_min_value": 0, + "native_step": 15, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 950, - "native_min_value": 0, - "native_step": 15, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 950, + "native_min_value": 0, + "native_step": 15, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1500, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1500, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Radar sensitivity", - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-radar_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "radar_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Radar sensitivity", + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-radar_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "radar_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-target_distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "target_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "cm" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-target_distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "target_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "cm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-tagezcph-ts0601-0x0000004a.json b/tests/data/devices/tze204-tagezcph-ts0601-0x0000004a.json index 983cd7530..6962196a4 100644 --- a/tests/data/devices/tze204-tagezcph-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-tagezcph-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:f4:f9:87-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:f4:f9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 100 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:f4:f9:87-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:f4:f9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:f4:f9:87-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:f4:f9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -75 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:f4:f9:87-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:f4:f9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -75, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:f4:f9:87-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:49:f4:f9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:f4:f9:87-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:49:f4:f9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-tdhnhhiy-ts0601-0x0000004a.json b/tests/data/devices/tze204-tdhnhhiy-ts0601-0x0000004a.json index 55e30ae2b..29f87f812 100644 --- a/tests/data/devices/tze204-tdhnhhiy-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-tdhnhhiy-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:bc:e1:ff-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8b:bc:e1:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 25 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:bc:e1:ff-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8b:bc:e1:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:bc:e1:ff-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8b:bc:e1:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:bc:e1:ff-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8b:bc:e1:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:bc:e1:ff-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:8b:bc:e1:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:bc:e1:ff-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8b:bc:e1:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-ue3rzddr-ts0601.json b/tests/data/devices/tze204-ue3rzddr-ts0601.json index c2b6c2220..af3e149af 100644 --- a/tests/data/devices/tze204-ue3rzddr-ts0601.json +++ b/tests/data/devices/tze204-ue3rzddr-ts0601.json @@ -156,95 +156,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:a0:21:17-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:a0:21:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:a0:21:17-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:a0:21:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:a0:21:17-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:a0:21:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:a0:21:17-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:a0:21:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:a0:21:17-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cc:a0:21:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:a0:21:17-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cc:a0:21:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-upagmta9-ts0601.json b/tests/data/devices/tze204-upagmta9-ts0601.json index dc6a4b4e4..af0eeeb37 100644 --- a/tests/data/devices/tze204-upagmta9-ts0601.json +++ b/tests/data/devices/tze204-upagmta9-ts0601.json @@ -201,219 +201,184 @@ "zha_lib_entities": { "select": [ { - "info_object": { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Celsius" - } + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Celsius", + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AAA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-uxllnywp-ts0601-0x0000004a.json b/tests/data/devices/tze204-uxllnywp-ts0601-0x0000004a.json index 25f3d53b7..dbc717faf 100644 --- a/tests/data/devices/tze204-uxllnywp-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-uxllnywp-ts0601-0x0000004a.json @@ -182,340 +182,285 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 840, - "native_min_value": 0.75, - "native_step": 1, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 840, + "native_min_value": 0.75, + "native_step": 1, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 840, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 840, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 59, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 59, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-target_distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "target_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "cm" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-target_distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "target_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "cm" } ], "switch": [ { - "info_object": { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-vjpaih9f-ts0601-0x0000004a.json b/tests/data/devices/tze204-vjpaih9f-ts0601-0x0000004a.json index e5df0a36d..bc477142f 100644 --- a/tests/data/devices/tze204-vjpaih9f-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-vjpaih9f-ts0601-0x0000004a.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:57:ce:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:57:ce:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 168 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:57:ce:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:57:ce:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 168, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:57:ce:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:57:ce:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -69 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:57:ce:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:57:ce:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -69, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:57:ce:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:57:ce:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:57:ce:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:57:ce:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-vmcgja59-ts0601.json b/tests/data/devices/tze204-vmcgja59-ts0601.json index 48df3027d..e2deab344 100644 --- a/tests/data/devices/tze204-vmcgja59-ts0601.json +++ b/tests/data/devices/tze204-vmcgja59-ts0601.json @@ -594,95 +594,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:d2:60:17-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:31:d2:60:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:d2:60:17-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:31:d2:60:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:d2:60:17-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:31:d2:60:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:d2:60:17-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:31:d2:60:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:d2:60:17-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:31:d2:60:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:d2:60:17-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:31:d2:60:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-w1wwxoja-ts0601-0x0000004a.json b/tests/data/devices/tze204-w1wwxoja-ts0601-0x0000004a.json index eaeacce5a..1a6bc71ef 100644 --- a/tests/data/devices/tze204-w1wwxoja-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-w1wwxoja-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:ef:fc:86-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b2:ef:fc:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:ef:fc:86-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:ef:fc:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:ef:fc:86-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b2:ef:fc:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:ef:fc:86-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:ef:fc:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:ef:fc:86-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b2:ef:fc:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:ef:fc:86-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:ef:fc:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-wbhaespm-ts0601-0x0000004a.json b/tests/data/devices/tze204-wbhaespm-ts0601-0x0000004a.json index 7405d098f..417fdac95 100644 --- a/tests/data/devices/tze204-wbhaespm-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-wbhaespm-ts0601-0x0000004a.json @@ -271,95 +271,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:d5:67:94-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:d5:67:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:d5:67:94-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:d5:67:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:d5:67:94-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:d5:67:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:d5:67:94-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:d5:67:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:d5:67:94-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4f:d5:67:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:d5:67:94-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:d5:67:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-x8fp01wi-ts0601-0x0000004a.json b/tests/data/devices/tze204-x8fp01wi-ts0601-0x0000004a.json index 0431bf619..b64c3555d 100644 --- a/tests/data/devices/tze204-x8fp01wi-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-x8fp01wi-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:1f:25:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:1f:25:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:1f:25:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:1f:25:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:1f:25:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:1f:25:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:1f:25:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:1f:25:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:1f:25:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ec:1f:25:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:1f:25:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:1f:25:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-x9usygq1-ts0601-0x0000004a.json b/tests/data/devices/tze204-x9usygq1-ts0601-0x0000004a.json index 35aebf266..4112866dd 100644 --- a/tests/data/devices/tze204-x9usygq1-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-x9usygq1-ts0601-0x0000004a.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:c5:79:50-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:c5:79:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:c5:79:50-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:c5:79:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:c5:79:50-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:c5:79:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:c5:79:50-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:c5:79:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:c5:79:50-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:92:c5:79:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:c5:79:50-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:92:c5:79:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-xalsoe3m-ts0601-0x0000004a.json b/tests/data/devices/tze204-xalsoe3m-ts0601-0x0000004a.json index a8097cbab..e05852d8f 100644 --- a/tests/data/devices/tze204-xalsoe3m-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-xalsoe3m-ts0601-0x0000004a.json @@ -532,404 +532,334 @@ "zha_lib_entities": { "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": 235.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 23500, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": 235.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 23500, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 30.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 5.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.0, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Temperature Calibration", - "unique_id": "ab:cd:ef:12:19:d9:fb:05-3-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 3, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": -10, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Temperature Calibration", + "unique_id": "ab:cd:ef:12:19:d9:fb:05-3-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": -10, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Deadzone Temperature", - "unique_id": "ab:cd:ef:12:19:d9:fb:05-4-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 4, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 5, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "AnalogOutputNumber", - "available": true, - "state": null - } + "fallback_name": "Deadzone Temperature", + "unique_id": "ab:cd:ef:12:19:d9:fb:05-4-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 4, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 5, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-xlppj4f5-ts0601-0x0000004a.json b/tests/data/devices/tze204-xlppj4f5-ts0601-0x0000004a.json index 2695d9d09..57794b55d 100644 --- a/tests/data/devices/tze204-xlppj4f5-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-xlppj4f5-ts0601-0x0000004a.json @@ -172,224 +172,193 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "l/h" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": null, - "zcl_unit_of_measurement": 7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "l/h", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 7 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "L" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": null, - "zcl_unit_of_measurement": 7 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 3, + "unit": "L", + "device_type": null, + "status": null, + "zcl_unit_of_measurement": 7 } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": false, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-xnbkhhdr-ts0601-0x0000004a.json b/tests/data/devices/tze204-xnbkhhdr-ts0601-0x0000004a.json index 3603ec9f3..de68160a7 100644 --- a/tests/data/devices/tze204-xnbkhhdr-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-xnbkhhdr-ts0601-0x0000004a.json @@ -177,509 +177,424 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Fault alarm", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-fault_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "fault_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "fault_alarm" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Fault alarm", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-fault_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "fault_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "fault_alarm" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Deadzone temperature", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-deadzone_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "deadzone_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Deadzone temperature", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-deadzone_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "deadzone_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.9, - "native_min_value": -9.9, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9.9, + "native_min_value": -9.9, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Backlight mode", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BacklightMode", - "options": [ - "Off", - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Backlight mode", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "BacklightMode", + "options": [ + "Off", + "Low", + "Medium", + "High" + ] }, { - "info_object": { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "PresetModeV03", - "options": [ - "Auto", - "Manual", - "Temporary Manual" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "PresetModeV03", + "options": [ + "Auto", + "Manual", + "Temporary Manual" + ] }, { - "info_object": { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-temperature_sensor_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SensorMode", - "options": [ - "Air", - "Floor", - "Both" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-temperature_sensor_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "SensorMode", + "options": [ + "Air", + "Floor", + "Both" + ] }, { - "info_object": { - "fallback_name": "Working day", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-working_day", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "working_day", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "WorkingDayV02", - "options": [ - "Disabled", - "Five Two", - "Six One", - "Seven" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Working day", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-working_day", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "working_day", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "WorkingDayV02", + "options": [ + "Disabled", + "Five Two", + "Six One", + "Seven" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Factory reset", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-factory_reset", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "factory_reset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "factory_reset", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Factory reset", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-factory_reset", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "factory_reset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "factory_reset", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-xu4a5rhj-ts0601-0x0000004a.json b/tests/data/devices/tze204-xu4a5rhj-ts0601-0x0000004a.json index c133fc916..c7c644964 100644 --- a/tests/data/devices/tze204-xu4a5rhj-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-xu4a5rhj-ts0601-0x0000004a.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:4f:58:7f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:95:4f:58:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 120 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:4f:58:7f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:95:4f:58:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 120, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:4f:58:7f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:95:4f:58:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -70 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:4f:58:7f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:95:4f:58:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -70, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:4f:58:7f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:95:4f:58:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:4f:58:7f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:95:4f:58:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-ya4ft0w4-ts0601-0x0000004a.json b/tests/data/devices/tze204-ya4ft0w4-ts0601-0x0000004a.json index 1dce6e33f..929670cfc 100644 --- a/tests/data/devices/tze204-ya4ft0w4-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-ya4ft0w4-ts0601-0x0000004a.json @@ -182,371 +182,311 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 15000, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 15000, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m" } ], "switch": [ { - "info_object": { - "fallback_name": "Distance tracking", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-distance_tracking", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "distance_tracking", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "distance_tracking", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Distance tracking", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-distance_tracking", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "distance_tracking", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "distance_tracking", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-yjjdcqsq-ts0601.json b/tests/data/devices/tze204-yjjdcqsq-ts0601.json index dd856f25f..126fcd17d 100644 --- a/tests/data/devices/tze204-yjjdcqsq-ts0601.json +++ b/tests/data/devices/tze204-yjjdcqsq-ts0601.json @@ -197,219 +197,184 @@ "zha_lib_entities": { "select": [ { - "info_object": { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 50.0, - "battery_size": "AAA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 50.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 26.5 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 26.5, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 49.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 49.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-yvx5lh6k-ts0601-0x0000004a.json b/tests/data/devices/tze204-yvx5lh6k-ts0601-0x0000004a.json index e113c42f4..4dedf85c7 100644 --- a/tests/data/devices/tze204-yvx5lh6k-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-yvx5lh6k-ts0601-0x0000004a.json @@ -199,263 +199,218 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "CarbonDioxideConcentration", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "ppm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "PM25", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1067", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "FormaldehydeConcentration", - "translation_key": "formaldehyde", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "ppm" - }, - "state": { - "class_name": "FormaldehydeConcentration", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1067", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "FormaldehydeConcentration", + "translation_key": "formaldehyde", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "ppm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" - }, - "state": { - "class_name": "VOCLevel", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-zenj4lxv-ts0601.json b/tests/data/devices/tze204-zenj4lxv-ts0601.json index 86c3587a1..fb9b6313b 100644 --- a/tests/data/devices/tze204-zenj4lxv-ts0601.json +++ b/tests/data/devices/tze204-zenj4lxv-ts0601.json @@ -212,199 +212,158 @@ "zha_lib_entities": { "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:c8:fd:c8-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", - "endpoint_id": 2, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 32, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:c8:fd:c8-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-ztqnh5cg-ts0601-0x0000004a.json b/tests/data/devices/tze204-ztqnh5cg-ts0601-0x0000004a.json index 05bf22f5c..51f303017 100644 --- a/tests/data/devices/tze204-ztqnh5cg-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-ztqnh5cg-ts0601-0x0000004a.json @@ -255,337 +255,282 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "occupancy" } ], "number": [ { - "info_object": { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-detection_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-detection_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" }, { - "info_object": { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1500, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1500, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" }, { - "info_object": { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "lx" - }, - "state": { - "class_name": "Illuminance", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "lx" }, { - "info_object": { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "m" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "m" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze204-zxkwaztm-ts0601.json b/tests/data/devices/tze204-zxkwaztm-ts0601.json index aa0485fc2..27b6f9589 100644 --- a/tests/data/devices/tze204-zxkwaztm-ts0601.json +++ b/tests/data/devices/tze204-zxkwaztm-ts0601.json @@ -194,186 +194,151 @@ "zha_lib_entities": { "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:34:fa:13-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:90:34:fa:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 20.2, - "outdoor_temperature": null, - "target_temperature": 20.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:34:fa:13-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:34:fa:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 20.2, + "outdoor_temperature": null, + "target_temperature": 20.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:34:fa:13-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:34:fa:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 180 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:34:fa:13-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:34:fa:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 180, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:34:fa:13-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:34:fa:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -55 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:34:fa:13-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:34:fa:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -55, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:34:fa:13-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:34:fa:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:34:fa:13-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:34:fa:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:34:fa:13-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:90:34:fa:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:34:fa:13-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:34:fa:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze20c-xbexmf8h-ts130f-0x00000040.json b/tests/data/devices/tze20c-xbexmf8h-ts130f-0x00000040.json index a76f31be2..093bfa059 100644 --- a/tests/data/devices/tze20c-xbexmf8h-ts130f-0x00000040.json +++ b/tests/data/devices/tze20c-xbexmf8h-ts130f-0x00000040.json @@ -163,95 +163,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:5a:99:e9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:5a:99:e9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 200 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:5a:99:e9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:5a:99:e9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 200, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:5a:99:e9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:5a:99:e9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -61 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:5a:99:e9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:5a:99:e9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -61, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:5a:99:e9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:5a:99:e9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:5a:99:e9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:5a:99:e9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze20c-zka46xbw-ts0601-0x00000051.json b/tests/data/devices/tze20c-zka46xbw-ts0601-0x00000051.json index 120cc01d2..38c02d700 100644 --- a/tests/data/devices/tze20c-zka46xbw-ts0601-0x00000051.json +++ b/tests/data/devices/tze20c-zka46xbw-ts0601-0x00000051.json @@ -344,184 +344,154 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000051", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000051", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-0zaf1cr8-ts0601.json b/tests/data/devices/tze284-0zaf1cr8-ts0601.json index b64be678c..5e1be0c8a 100644 --- a/tests/data/devices/tze284-0zaf1cr8-ts0601.json +++ b/tests/data/devices/tze284-0zaf1cr8-ts0601.json @@ -171,186 +171,156 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:98:e3:82:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:e3:82:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" }, { - "info_object": { - "fallback_name": "Battery low", - "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:e3:82:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Battery low", + "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:e3:82:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "battery_low" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:e3:82:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:e3:82:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:e3:82:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:e3:82:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:e3:82:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "CR123A", - "battery_quantity": 1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:98:e3:82:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR123A", + "battery_quantity": 1, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:98:e3:82:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:98:e3:82:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-2gi1hy8s-ts0601-0x00000050.json b/tests/data/devices/tze284-2gi1hy8s-ts0601-0x00000050.json index 7a1bb8e7f..f943d44be 100644 --- a/tests/data/devices/tze284-2gi1hy8s-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-2gi1hy8s-ts0601-0x00000050.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:ac:4b:2f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:ac:4b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:ac:4b:2f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:ac:4b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:ac:4b:2f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:ac:4b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:ac:4b:2f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:ac:4b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:ac:4b:2f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:19:ac:4b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:ac:4b:2f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:19:ac:4b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-3mzb0sdz-ts0601-0x00000050.json b/tests/data/devices/tze284-3mzb0sdz-ts0601-0x00000050.json index 31a199c53..4069363eb 100644 --- a/tests/data/devices/tze284-3mzb0sdz-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-3mzb0sdz-ts0601-0x00000050.json @@ -175,362 +175,301 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": "Set lower limit", - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_down", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "set_lower_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "border", - "attribute_value": 1 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Set lower limit", + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_down", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "set_lower_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "border", + "attribute_value": 1 }, { - "info_object": { - "fallback_name": "Delete lower limit", - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_down_delete", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "delete_lower_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "border", - "attribute_value": 3 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Delete lower limit", + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_down_delete", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "delete_lower_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "border", + "attribute_value": 3 }, { - "info_object": { - "fallback_name": "Delete all limits", - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_remove_all", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "delete_all_limits", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "border", - "attribute_value": 4 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Delete all limits", + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_remove_all", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "delete_all_limits", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "border", + "attribute_value": 4 }, { - "info_object": { - "fallback_name": "Set upper limit", - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_up", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "set_upper_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "border", - "attribute_value": 0 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Set upper limit", + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_up", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "set_upper_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "border", + "attribute_value": 0 }, { - "info_object": { - "fallback_name": "Delete upper limit", - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_up_delete", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "delete_upper_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "border", - "attribute_value": 2 - }, - "state": { - "class_name": "WriteAttributeButton", - "available": true - } + "fallback_name": "Delete upper limit", + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_up_delete", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "delete_upper_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "border", + "attribute_value": 2 } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": null, - "current_tilt_position": null, - "state": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": null, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 } ], "select": [ { - "info_object": { - "fallback_name": "Motor direction", - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-motor_direction", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motor_direction", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "MotorDirection", - "options": [ - "Forward", - "Back" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Motor direction", + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-motor_direction", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motor_direction", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "MotorDirection", + "options": [ + "Forward", + "Back" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -47 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -47, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-432zhuwe-ts0601.json b/tests/data/devices/tze284-432zhuwe-ts0601.json index 3911c7364..b93551846 100644 --- a/tests/data/devices/tze284-432zhuwe-ts0601.json +++ b/tests/data/devices/tze284-432zhuwe-ts0601.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:e7:24:a7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b2:e7:24:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 136 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:e7:24:a7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:e7:24:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 136, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:e7:24:a7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b2:e7:24:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -77 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:e7:24:a7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:e7:24:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -77, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:e7:24:a7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:b2:e7:24:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:e7:24:a7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:e7:24:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-6fopvb6v-ts0601.json b/tests/data/devices/tze284-6fopvb6v-ts0601.json index 007bdad83..8c0ce645a 100644 --- a/tests/data/devices/tze284-6fopvb6v-ts0601.json +++ b/tests/data/devices/tze284-6fopvb6v-ts0601.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:9e:79:27-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:9e:79:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 159 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:9e:79:27-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:9e:79:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 159, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:9e:79:27-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:9e:79:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -74 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:9e:79:27-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:9e:79:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -74, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:9e:79:27-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:9e:79:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:9e:79:27-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:9e:79:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-6hrnp30w-ts0601-0x00000050.json b/tests/data/devices/tze284-6hrnp30w-ts0601-0x00000050.json index 71f0f334a..7f62032e1 100644 --- a/tests/data/devices/tze284-6hrnp30w-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-6hrnp30w-ts0601-0x00000050.json @@ -407,95 +407,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:61:38:1f:0e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:61:38:1f:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:61:38:1f:0e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:61:38:1f:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:61:38:1f:0e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:61:38:1f:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:61:38:1f:0e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:61:38:1f:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:61:38:1f:0e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:61:38:1f:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:61:38:1f:0e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:61:38:1f:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-6ocnqlhn-ts0601.json b/tests/data/devices/tze284-6ocnqlhn-ts0601.json index 9af788bd3..7d294cdc0 100644 --- a/tests/data/devices/tze284-6ocnqlhn-ts0601.json +++ b/tests/data/devices/tze284-6ocnqlhn-ts0601.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:a7:f7:3b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:a7:f7:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 208 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:a7:f7:3b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:a7:f7:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 208, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:a7:f7:3b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:a7:f7:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -48 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:a7:f7:3b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:a7:f7:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -48, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:a7:f7:3b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:a7:f7:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:a7:f7:3b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:a7:f7:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-6uyu20xu-ts0601.json b/tests/data/devices/tze284-6uyu20xu-ts0601.json index 7d2b3366f..16ca5493d 100644 --- a/tests/data/devices/tze284-6uyu20xu-ts0601.json +++ b/tests/data/devices/tze284-6uyu20xu-ts0601.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:91:16:91-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3d:91:16:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 196 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:91:16:91-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3d:91:16:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 196, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:91:16:91-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3d:91:16:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -51 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:91:16:91-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3d:91:16:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -51, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:91:16:91-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:3d:91:16:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:91:16:91-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3d:91:16:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-6ycgarab-ts0601-0x00000050.json b/tests/data/devices/tze284-6ycgarab-ts0601-0x00000050.json index 5b3c15271..6b649473d 100644 --- a/tests/data/devices/tze284-6ycgarab-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-6ycgarab-ts0601-0x00000050.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f3:29:76:29-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f3:29:76:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 87 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f3:29:76:29-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f3:29:76:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 87, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f3:29:76:29-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f3:29:76:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f3:29:76:29-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f3:29:76:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f3:29:76:29-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f3:29:76:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f3:29:76:29-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f3:29:76:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-78ioiaml-ts0601-0x0000004a.json b/tests/data/devices/tze284-78ioiaml-ts0601-0x0000004a.json index a0222652a..77549a474 100644 --- a/tests/data/devices/tze284-78ioiaml-ts0601-0x0000004a.json +++ b/tests/data/devices/tze284-78ioiaml-ts0601-0x0000004a.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:51:3e:41-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:50:51:3e:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 117 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:51:3e:41-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:51:3e:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 117, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:51:3e:41-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:50:51:3e:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:51:3e:41-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:51:3e:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:51:3e:41-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:50:51:3e:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:51:3e:41-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:51:3e:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-7gy9mqca-ts0601-0x0000004e.json b/tests/data/devices/tze284-7gy9mqca-ts0601-0x0000004e.json index 41c92dfd5..9e2504edf 100644 --- a/tests/data/devices/tze284-7gy9mqca-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-7gy9mqca-ts0601-0x0000004e.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:c5:23:07-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:c5:23:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 69 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:c5:23:07-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:c5:23:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 69, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:c5:23:07-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:c5:23:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:c5:23:07-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:c5:23:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:c5:23:07-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:69:c5:23:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:c5:23:07-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:69:c5:23:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-7zazvlyn-ts0601-0x00000045.json b/tests/data/devices/tze284-7zazvlyn-ts0601-0x00000045.json index 013328403..5eda0936c 100644 --- a/tests/data/devices/tze284-7zazvlyn-ts0601-0x00000045.json +++ b/tests/data/devices/tze284-7zazvlyn-ts0601-0x00000045.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:87:b0:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:87:b0:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:87:b0:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:42:87:b0:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:87:b0:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:87:b0:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:87:b0:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:42:87:b0:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:87:b0:e0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:42:87:b0:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:87:b0:e0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:42:87:b0:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-81yrt3lo-ts0601-0x0000004e.json b/tests/data/devices/tze284-81yrt3lo-ts0601-0x0000004e.json index 332ff50bc..51b389fa0 100644 --- a/tests/data/devices/tze284-81yrt3lo-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-81yrt3lo-ts0601-0x0000004e.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:30:aa:82-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:30:aa:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:30:aa:82-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:30:aa:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:30:aa:82-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:30:aa:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:30:aa:82-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:30:aa:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:30:aa:82-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:71:30:aa:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:30:aa:82-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:71:30:aa:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-8b9zpaav-ts0601-0x0000004e.json b/tests/data/devices/tze284-8b9zpaav-ts0601-0x0000004e.json index bc01a17e0..92d8225df 100644 --- a/tests/data/devices/tze284-8b9zpaav-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-8b9zpaav-ts0601-0x0000004e.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6b:1d:f1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:6b:1d:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6b:1d:f1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:6b:1d:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6b:1d:f1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:6b:1d:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6b:1d:f1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:6b:1d:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6b:1d:f1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5e:6b:1d:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6b:1d:f1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:6b:1d:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-8se38w3c-ts0601-0x0000004d.json b/tests/data/devices/tze284-8se38w3c-ts0601-0x0000004d.json index 06e2af75b..2cdedd9ee 100644 --- a/tests/data/devices/tze284-8se38w3c-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-8se38w3c-ts0601-0x0000004d.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:0d:b8:1a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:0d:b8:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:0d:b8:1a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:0d:b8:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:0d:b8:1a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:0d:b8:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:0d:b8:1a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:0d:b8:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:0d:b8:1a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c3:0d:b8:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:0d:b8:1a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c3:0d:b8:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-a2xewxoo-ts0601-0x0000004e.json b/tests/data/devices/tze284-a2xewxoo-ts0601-0x0000004e.json index 1a4baee11..22505a1e8 100644 --- a/tests/data/devices/tze284-a2xewxoo-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-a2xewxoo-ts0601-0x0000004e.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ee:07:7f:41-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ee:07:7f:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ee:07:7f:41-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ee:07:7f:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ee:07:7f:41-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ee:07:7f:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -70 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ee:07:7f:41-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ee:07:7f:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -70, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ee:07:7f:41-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ee:07:7f:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ee:07:7f:41-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ee:07:7f:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-aao3yzhs-ts0601-0x0000004d.json b/tests/data/devices/tze284-aao3yzhs-ts0601-0x0000004d.json index aff0fe946..e3ee6d7db 100644 --- a/tests/data/devices/tze284-aao3yzhs-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-aao3yzhs-ts0601-0x0000004d.json @@ -210,186 +210,156 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 220 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 220, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -45 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -45, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 0.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 8.2 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 8.2, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "SoilMoisture", - "available": true, - "state": 100.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-aao3yzhs-ts0601.json b/tests/data/devices/tze284-aao3yzhs-ts0601.json index ec5ffc692..94760f033 100644 --- a/tests/data/devices/tze284-aao3yzhs-ts0601.json +++ b/tests/data/devices/tze284-aao3yzhs-ts0601.json @@ -170,186 +170,156 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "SoilMoisture", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-c6wv4xyo-ts0601-0x0000004d.json b/tests/data/devices/tze284-c6wv4xyo-ts0601-0x0000004d.json index 5eb07b233..8d7d6e4e4 100644 --- a/tests/data/devices/tze284-c6wv4xyo-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-c6wv4xyo-ts0601-0x0000004d.json @@ -207,346 +207,286 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "error_or_battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "error_or_battery_low" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-cf4b5ktf-ts0601-0x0000004e.json b/tests/data/devices/tze284-cf4b5ktf-ts0601-0x0000004e.json index 396ff04ce..2a877eb68 100644 --- a/tests/data/devices/tze284-cf4b5ktf-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-cf4b5ktf-ts0601-0x0000004e.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:63:a1:c0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:63:a1:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 132 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:63:a1:c0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:63:a1:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 132, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:63:a1:c0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:63:a1:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -67 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:63:a1:c0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:63:a1:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -67, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:63:a1:c0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2e:63:a1:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:63:a1:c0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2e:63:a1:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-cjbofhxw-ts0601.json b/tests/data/devices/tze284-cjbofhxw-ts0601.json index 9caae618e..75d9adcb8 100644 --- a/tests/data/devices/tze284-cjbofhxw-ts0601.json +++ b/tests/data/devices/tze284-cjbofhxw-ts0601.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:6f:d7:98-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c7:6f:d7:98", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:6f:d7:98-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c7:6f:d7:98", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:6f:d7:98-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c7:6f:d7:98", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:6f:d7:98-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c7:6f:d7:98", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:6f:d7:98-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c7:6f:d7:98", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:6f:d7:98-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c7:6f:d7:98", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-dikb3dp6-ts0601.json b/tests/data/devices/tze284-dikb3dp6-ts0601.json index c174dd50e..dcc0abfd8 100644 --- a/tests/data/devices/tze284-dikb3dp6-ts0601.json +++ b/tests/data/devices/tze284-dikb3dp6-ts0601.json @@ -411,825 +411,718 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Update frequency", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-update_frequency", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "update_frequency", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 3600, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "s" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 30 - } + "fallback_name": "Update frequency", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-update_frequency", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "update_frequency", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 30, + "mode": "auto", + "native_max_value": 3600, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "s" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 192 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 192, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -52 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -52, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 144.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 144.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 50.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 50.0, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-active_power_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhB", - "translation_key": "active_power_ph_b", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePowerPhB", - "available": true, - "state": -138.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-active_power_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhB", + "translation_key": "active_power_ph_b", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max_ph_b", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -138.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-active_power_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhC", - "translation_key": "active_power_ph_c", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePowerPhC", - "available": true, - "state": 140.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-active_power_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhC", + "translation_key": "active_power_ph_c", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max_ph_c", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 140.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 87 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 87, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-power_factor_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactorPhB", - "translation_key": "power_factor_ph_b", - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactorPhB", - "available": true, - "state": -82 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-power_factor_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactorPhB", + "translation_key": "power_factor_ph_b", + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -82, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-power_factor_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactorPhC", - "translation_key": "power_factor_ph_c", - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactorPhC", - "available": true, - "state": 85 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-power_factor_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactorPhC", + "translation_key": "power_factor_ph_c", + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 85, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.683 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.683, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_current_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "translation_key": "rms_current_ph_b", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "available": true, - "state": 0.677 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_current_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "translation_key": "rms_current_ph_b", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max_ph_b" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.677, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_current_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "translation_key": "rms_current_ph_c", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "available": true, - "state": 0.682 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_current_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "translation_key": "rms_current_ph_c", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max_ph_c" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.682, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 236.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 236.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_voltage_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "translation_key": "rms_voltage_ph_b", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "available": true, - "state": 235.9 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_voltage_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "translation_key": "rms_voltage_ph_b", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max_ph_b" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 235.9, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_voltage_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "translation_key": "rms_voltage_ph_c", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "available": true, - "state": 236.1 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_voltage_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "translation_key": "rms_voltage_ph_c", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max_ph_c" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 236.1, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 145.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 145.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": "Total energy", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "kWh" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 6.02 - } + "fallback_name": "Total energy", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 6.02, + "suggested_display_precision": null, + "unit": "kWh" }, { - "info_object": { - "fallback_name": "Energy phase A", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_consumed_ph_a", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_ph_a", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "kWh" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 3.01 - } + "fallback_name": "Energy phase A", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_consumed_ph_a", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_ph_a", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3.01, + "suggested_display_precision": null, + "unit": "kWh" }, { - "info_object": { - "fallback_name": "Energy phase B", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_consumed_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_ph_b", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "kWh" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 0.02 - } + "fallback_name": "Energy phase B", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_consumed_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_ph_b", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.02, + "suggested_display_precision": null, + "unit": "kWh" }, { - "info_object": { - "fallback_name": "Energy phase C", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_consumed_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_ph_c", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "kWh" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 2.99 - } + "fallback_name": "Energy phase C", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_consumed_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_ph_c", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2.99, + "suggested_display_precision": null, + "unit": "kWh" }, { - "info_object": { - "fallback_name": "Energy produced", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_produced", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "kWh" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 2.94 - } + "fallback_name": "Energy produced", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_produced", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2.94, + "suggested_display_precision": null, + "unit": "kWh" }, { - "info_object": { - "fallback_name": "Energy produced phase A", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced_ph_a", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_produced_ph_a", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "kWh" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 0.02 - } + "fallback_name": "Energy produced phase A", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced_ph_a", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_produced_ph_a", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.02, + "suggested_display_precision": null, + "unit": "kWh" }, { - "info_object": { - "fallback_name": "Energy produced phase B", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_produced_ph_b", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "kWh" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 2.92 - } + "fallback_name": "Energy produced phase B", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_produced_ph_b", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 2.92, + "suggested_display_precision": null, + "unit": "kWh" }, { - "info_object": { - "fallback_name": "Energy produced phase C", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_produced_ph_c", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "kWh" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 0.0 - } + "fallback_name": "Energy produced phase C", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_produced_ph_c", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "kWh" }, { - "info_object": { - "fallback_name": "Total power factor", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "total_power_factor", - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": 28 - } + "fallback_name": "Total power factor", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "total_power_factor", + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 28, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-dmckrsxg-ts0601-0x0000004e.json b/tests/data/devices/tze284-dmckrsxg-ts0601-0x0000004e.json index 5cdfeb89d..f711fe7da 100644 --- a/tests/data/devices/tze284-dmckrsxg-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-dmckrsxg-ts0601-0x0000004e.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:17:8f:32-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2f:17:8f:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 132 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:17:8f:32-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2f:17:8f:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 132, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:17:8f:32-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2f:17:8f:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -78 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:17:8f:32-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2f:17:8f:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -78, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:17:8f:32-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:2f:17:8f:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:17:8f:32-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:2f:17:8f:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-f5efvtbv-ts0601-0x0000004e.json b/tests/data/devices/tze284-f5efvtbv-ts0601-0x0000004e.json index 40c44cee4..e0339b364 100644 --- a/tests/data/devices/tze284-f5efvtbv-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-f5efvtbv-ts0601-0x0000004e.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:b2:68:6b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:b2:68:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 200 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:b2:68:6b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:b2:68:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 200, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:b2:68:6b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:b2:68:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -50 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:b2:68:6b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:b2:68:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -50, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:b2:68:6b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d6:b2:68:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:b2:68:6b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d6:b2:68:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-fhvpaltk-ts0601.json b/tests/data/devices/tze284-fhvpaltk-ts0601.json index b7fd1dd54..ae3b6a6da 100644 --- a/tests/data/devices/tze284-fhvpaltk-ts0601.json +++ b/tests/data/devices/tze284-fhvpaltk-ts0601.json @@ -165,372 +165,312 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Irrigation time 1", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_countdown_1", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_countdown_1", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1440, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Irrigation time 1", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_countdown_1", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_countdown_1", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1440, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "min" }, { - "info_object": { - "fallback_name": "Irrigation time 2", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_countdown_2", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_countdown_2", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 1440, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "min" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Irrigation time 2", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_countdown_2", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_countdown_2", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 1440, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "min" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 196 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 196, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -62 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -62, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": null }, { - "info_object": { - "fallback_name": "Irrigation duration 1", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_duration_1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_duration_1", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "s" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Irrigation duration 1", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_duration_1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_duration_1", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "s" }, { - "info_object": { - "fallback_name": "Irrigation duration 2", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_duration_2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irriation_duration_2", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "s" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Irrigation duration 2", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_duration_2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irriation_duration_2", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "s" }, { - "info_object": { - "fallback_name": "Status 1", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_status_1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "valve_status_1", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Status 1", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_status_1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "valve_status_1", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": "Status 2", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_status_2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "valve_status_2", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Status 2", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_status_2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "valve_status_2", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Valve 1", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_on_off_1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "valve_on_off_1", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "valve_on_off_1", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Valve 1", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_on_off_1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "valve_on_off_1", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "valve_on_off_1", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Valve 2", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_on_off_2", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "valve_on_off_2", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "valve_on_off_2", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Valve 2", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_on_off_2", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "valve_on_off_2", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "valve_on_off_2", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-fzo2pocs-ts0601.json b/tests/data/devices/tze284-fzo2pocs-ts0601.json index 4fa868740..f5c41991d 100644 --- a/tests/data/devices/tze284-fzo2pocs-ts0601.json +++ b/tests/data/devices/tze284-fzo2pocs-ts0601.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:9c:af:cd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:9c:af:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:9c:af:cd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:9c:af:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:9c:af:cd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:9c:af:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:9c:af:cd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:9c:af:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:9c:af:cd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d4:9c:af:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:9c:af:cd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d4:9c:af:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-g2e6cpnw-ts0601-0x0000004d.json b/tests/data/devices/tze284-g2e6cpnw-ts0601-0x0000004d.json index 196df9178..be5ffbeae 100644 --- a/tests/data/devices/tze284-g2e6cpnw-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-g2e6cpnw-ts0601-0x0000004d.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:ed:8a:ef-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:ed:8a:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:ed:8a:ef-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:ed:8a:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:ed:8a:ef-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:ed:8a:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:ed:8a:ef-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:ed:8a:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:ed:8a:ef-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:5c:ed:8a:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:ed:8a:ef-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5c:ed:8a:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-hodyryli-ts0601-0x00000050.json b/tests/data/devices/tze284-hodyryli-ts0601-0x00000050.json index bfb2de1f7..fad170d1e 100644 --- a/tests/data/devices/tze284-hodyryli-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-hodyryli-ts0601-0x00000050.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e6:20:71:50-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e6:20:71:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e6:20:71:50-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e6:20:71:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e6:20:71:50-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e6:20:71:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -33 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e6:20:71:50-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e6:20:71:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -33, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e6:20:71:50-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e6:20:71:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e6:20:71:50-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e6:20:71:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-iadro9bf-ts0601-0x0000004e.json b/tests/data/devices/tze284-iadro9bf-ts0601-0x0000004e.json index 188c5eb3a..0157aaee6 100644 --- a/tests/data/devices/tze284-iadro9bf-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-iadro9bf-ts0601-0x0000004e.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:c5:77:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:c5:77:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:c5:77:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:c5:77:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:c5:77:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:c5:77:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:c5:77:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:c5:77:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:c5:77:0a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:c5:77:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:c5:77:0a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:c5:77:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-idvyees9-ts0601-0x0000004e.json b/tests/data/devices/tze284-idvyees9-ts0601-0x0000004e.json index 1d9bae9a9..5eceb7d27 100644 --- a/tests/data/devices/tze284-idvyees9-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-idvyees9-ts0601-0x0000004e.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:4b:d7:95-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:4b:d7:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:4b:d7:95-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:4b:d7:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:4b:d7:95-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:4b:d7:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -49 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:4b:d7:95-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:4b:d7:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -49, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:4b:d7:95-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a2:4b:d7:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:4b:d7:95-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a2:4b:d7:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-kyyu8rbj-ts0601-0x0000004d.json b/tests/data/devices/tze284-kyyu8rbj-ts0601-0x0000004d.json index fe5982c50..4081464cd 100644 --- a/tests/data/devices/tze284-kyyu8rbj-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-kyyu8rbj-ts0601-0x0000004d.json @@ -311,311 +311,261 @@ "zha_lib_entities": { "number": [ { - "info_object": { - "fallback_name": "Height from sensor to tank bottom", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-installation_height", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "installation_height", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 400, - "native_min_value": 10, - "native_step": 1, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Height from sensor to tank bottom", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-installation_height", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "installation_height", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 400, + "native_min_value": 10, + "native_step": 1, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Height from sensor to liquid level", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_depth_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "liquid_depth_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 400, - "native_min_value": 10, - "native_step": 1, - "native_unit_of_measurement": "cm" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Height from sensor to liquid level", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_depth_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "liquid_depth_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 400, + "native_min_value": 10, + "native_step": 1, + "native_unit_of_measurement": "cm" }, { - "info_object": { - "fallback_name": "Liquid max percentage", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-max_set", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_set", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Liquid max percentage", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-max_set", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_set", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Liquid minimal percentage", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-mini_set", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "mini_set", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Liquid minimal percentage", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-mini_set", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "mini_set", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" } ], "select": [ { - "info_object": { - "fallback_name": "Liquid state", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "liquid_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaLiquidState", - "options": [ - "Normal", - "Low", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Liquid state", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "liquid_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaLiquidState", + "options": [ + "Normal", + "Low", + "High" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": "Liquid depth", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_depth", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "liquid_depth", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "cm" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Liquid depth", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_depth", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "liquid_depth", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "cm" }, { - "info_object": { - "fallback_name": "Liquid level ratio", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_level_percent", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "liquid_level_percent", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "Liquid level ratio", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_level_percent", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "liquid_level_percent", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-l8xiyymq-ts0601-0x0000004a.json b/tests/data/devices/tze284-l8xiyymq-ts0601-0x0000004a.json index a7e6479c8..f74d73bba 100644 --- a/tests/data/devices/tze284-l8xiyymq-ts0601-0x0000004a.json +++ b/tests/data/devices/tze284-l8xiyymq-ts0601-0x0000004a.json @@ -158,95 +158,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:0c:11:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ff:0c:11:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 58 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:0c:11:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ff:0c:11:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 58, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:0c:11:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ff:0c:11:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:0c:11:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ff:0c:11:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:0c:11:d3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ff:0c:11:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:0c:11:d3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ff:0c:11:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-lq0ffndf-ts0601-0x00000046.json b/tests/data/devices/tze284-lq0ffndf-ts0601-0x00000046.json index dac784bbf..daafdb464 100644 --- a/tests/data/devices/tze284-lq0ffndf-ts0601-0x00000046.json +++ b/tests/data/devices/tze284-lq0ffndf-ts0601-0x00000046.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:cf:ff:9f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:cf:ff:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 160 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:cf:ff:9f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:cf:ff:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 160, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:cf:ff:9f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:cf:ff:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -60 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:cf:ff:9f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:cf:ff:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -60, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:cf:ff:9f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:cf:ff:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:cf:ff:9f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:cf:ff:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-ltwbm23f-ts0601-0x0000004d.json b/tests/data/devices/tze284-ltwbm23f-ts0601-0x0000004d.json index 73729a6a5..a296e4b11 100644 --- a/tests/data/devices/tze284-ltwbm23f-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-ltwbm23f-ts0601-0x0000004d.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:2d:69:de-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:2d:69:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:2d:69:de-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:2d:69:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:2d:69:de-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:2d:69:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:2d:69:de-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:2d:69:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:2d:69:de-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f0:2d:69:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:2d:69:de-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f0:2d:69:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-myd45weu-ts0601-0x0000004d.json b/tests/data/devices/tze284-myd45weu-ts0601-0x0000004d.json index e8a15e6de..a965f7631 100644 --- a/tests/data/devices/tze284-myd45weu-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-myd45weu-ts0601-0x0000004d.json @@ -207,186 +207,156 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "SoilMoisture", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-ne4pikwm-ts0601.json b/tests/data/devices/tze284-ne4pikwm-ts0601.json index 4b62a26aa..1655de212 100644 --- a/tests/data/devices/tze284-ne4pikwm-ts0601.json +++ b/tests/data/devices/tze284-ne4pikwm-ts0601.json @@ -279,442 +279,367 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Battery low", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Battery low", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "battery_low" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 19.7, - "outdoor_temperature": null, - "target_temperature": 18.5, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1850, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 19.7, + "outdoor_temperature": null, + "target_temperature": 18.5, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1850, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0 - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "heating" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "heating", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Away mode", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-away_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "away_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "away_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Away mode", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-away_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "away_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "away_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Schedule mode", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-schedule_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "schedule_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "schedule_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Schedule mode", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-schedule_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "schedule_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "schedule_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-nklqjk62-ts0601-0x0000004e.json b/tests/data/devices/tze284-nklqjk62-ts0601-0x0000004e.json index f24071cf8..6f70be55e 100644 --- a/tests/data/devices/tze284-nklqjk62-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-nklqjk62-ts0601-0x0000004e.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:83:38:bb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:83:38:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 148 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:83:38:bb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:83:38:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 148, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:83:38:bb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:83:38:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -74 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:83:38:bb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:83:38:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -74, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:83:38:bb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:76:83:38:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:83:38:bb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:76:83:38:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-nnhwcvbk-ts0601-0x0000004d.json b/tests/data/devices/tze284-nnhwcvbk-ts0601-0x0000004d.json index 0ea593d5f..c06157731 100644 --- a/tests/data/devices/tze284-nnhwcvbk-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-nnhwcvbk-ts0601-0x0000004d.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:ef:b2:34-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:ef:b2:34", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 88 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:ef:b2:34-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:ef:b2:34", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 88, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:ef:b2:34-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:ef:b2:34", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -78 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:ef:b2:34-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:ef:b2:34", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -78, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:ef:b2:34-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:15:ef:b2:34", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:ef:b2:34-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:15:ef:b2:34", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-o3x45p96-ts0601-0x0000004d.json b/tests/data/devices/tze284-o3x45p96-ts0601-0x0000004d.json index 838e0a476..9f66664e5 100644 --- a/tests/data/devices/tze284-o3x45p96-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-o3x45p96-ts0601-0x0000004d.json @@ -207,346 +207,286 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "error_or_battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "error_or_battery_low" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-o9ofysmo-ts0601-0x00000050.json b/tests/data/devices/tze284-o9ofysmo-ts0601-0x00000050.json index d8e57f14e..6a6a26f08 100644 --- a/tests/data/devices/tze284-o9ofysmo-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-o9ofysmo-ts0601-0x00000050.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:ff:c5:80-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:ff:c5:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 109 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:ff:c5:80-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:ff:c5:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 109, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:ff:c5:80-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:ff:c5:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:ff:c5:80-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:ff:c5:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:ff:c5:80-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6b:ff:c5:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:ff:c5:80-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:ff:c5:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-ogx8u5z6-ts0601-0x0000004d.json b/tests/data/devices/tze284-ogx8u5z6-ts0601-0x0000004d.json index 8318ec87a..602079eb7 100644 --- a/tests/data/devices/tze284-ogx8u5z6-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-ogx8u5z6-ts0601-0x0000004d.json @@ -207,346 +207,286 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "error_or_battery_low" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "error_or_battery_low" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-oitavov2-ts0601-0x00000050.json b/tests/data/devices/tze284-oitavov2-ts0601-0x00000050.json index f011e9f3d..45437cc1f 100644 --- a/tests/data/devices/tze284-oitavov2-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-oitavov2-ts0601-0x00000050.json @@ -240,186 +240,156 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:26:55:a3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:62:26:55:a3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 184 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:26:55:a3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:62:26:55:a3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 184, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:26:55:a3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:62:26:55:a3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -54 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:26:55:a3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:62:26:55:a3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -54, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:26:55:a3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:62:26:55:a3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:26:55:a3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:62:26:55:a3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:26:55:a3-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:62:26:55:a3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 27.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:26:55:a3-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:62:26:55:a3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 27.0, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:26:55:a3-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:62:26:55:a3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "SoilMoisture", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:26:55:a3-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:62:26:55:a3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:26:55:a3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:62:26:55:a3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:26:55:a3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:62:26:55:a3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-pcdmj88b-ts0601-0x0000004d.json b/tests/data/devices/tze284-pcdmj88b-ts0601-0x0000004d.json index c4e48ed91..3249bf37d 100644 --- a/tests/data/devices/tze284-pcdmj88b-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-pcdmj88b-ts0601-0x0000004d.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:62:e5:e2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:62:e5:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 156 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:62:e5:e2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:62:e5:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 156, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:62:e5:e2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:62:e5:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -72 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:62:e5:e2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:62:e5:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -72, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:62:e5:e2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7b:62:e5:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:62:e5:e2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7b:62:e5:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-qyflbnbj-ts0601-0x0000004d.json b/tests/data/devices/tze284-qyflbnbj-ts0601-0x0000004d.json index 18c9c925c..140db2c95 100644 --- a/tests/data/devices/tze284-qyflbnbj-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-qyflbnbj-ts0601-0x0000004d.json @@ -239,186 +239,156 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-rjxqso4a-ts0601-0x0000004d.json b/tests/data/devices/tze284-rjxqso4a-ts0601-0x0000004d.json index 914570009..c22161390 100644 --- a/tests/data/devices/tze284-rjxqso4a-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-rjxqso4a-ts0601-0x0000004d.json @@ -184,249 +184,209 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": "CO concentration", - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-co", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "ppm" - }, - "state": { - "class_name": "Sensor", - "available": true, - "state": null - } + "fallback_name": "CO concentration", + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-co", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "ppm" }, { - "info_object": { - "fallback_name": "Self test result", - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-self_test_result", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "self_test_result", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "EnumSensor", - "available": true, - "state": null - } + "fallback_name": "Self test result", + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-self_test_result", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "self_test_result", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Mute siren", - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-mute_siren", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "mute_siren", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "mute_siren", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Mute siren", + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-mute_siren", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "mute_siren", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "mute_siren", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-rlytpmij-ts0601-0x00000051.json b/tests/data/devices/tze284-rlytpmij-ts0601-0x00000051.json index efe5487cf..d3c2a4074 100644 --- a/tests/data/devices/tze284-rlytpmij-ts0601-0x00000051.json +++ b/tests/data/devices/tze284-rlytpmij-ts0601-0x00000051.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:d8:40:d8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:d8:40:d8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 164 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:d8:40:d8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:d8:40:d8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 164, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:d8:40:d8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:d8:40:d8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -59 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:d8:40:d8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:d8:40:d8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -59, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:d8:40:d8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:11:d8:40:d8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000051", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:d8:40:d8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:11:d8:40:d8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000051", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-rqcuwlsa-ts0601.json b/tests/data/devices/tze284-rqcuwlsa-ts0601.json index f7b040794..75c3e2b9b 100644 --- a/tests/data/devices/tze284-rqcuwlsa-ts0601.json +++ b/tests/data/devices/tze284-rqcuwlsa-ts0601.json @@ -190,214 +190,179 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 14.8 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 14.8, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "SoilMoisture", - "available": true, - "state": 22.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.0, + "suggested_display_precision": null, + "unit": "%" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1034", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalConductivity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "conductivity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u03bcS/cm" - }, - "state": { - "class_name": "ElectricalConductivity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1034", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalConductivity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "conductivity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u03bcS/cm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-rvnbnvw8-ts0601-0x0000004e.json b/tests/data/devices/tze284-rvnbnvw8-ts0601-0x0000004e.json index 2fcd85e57..63db8915c 100644 --- a/tests/data/devices/tze284-rvnbnvw8-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-rvnbnvw8-ts0601-0x0000004e.json @@ -169,95 +169,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:00:45:a7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:00:45:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 136 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:00:45:a7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:00:45:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 136, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:00:45:a7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:00:45:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -66 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:00:45:a7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:00:45:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -66, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:00:45:a7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:d2:00:45:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:00:45:a7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d2:00:45:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-sgabhwa6-ts0601-0x0000004d.json b/tests/data/devices/tze284-sgabhwa6-ts0601-0x0000004d.json index 13db986fc..e1a1c24ad 100644 --- a/tests/data/devices/tze284-sgabhwa6-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-sgabhwa6-ts0601-0x0000004d.json @@ -324,186 +324,156 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:63:0a:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:63:0a:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:63:0a:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:63:0a:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:63:0a:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:e7:63:0a:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:63:0a:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:63:0a:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:63:0a:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "SoilMoisture", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:63:0a:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e7:63:0a:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:63:0a:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-upagmta9-ts0601-0x0000004d.json b/tests/data/devices/tze284-upagmta9-ts0601-0x0000004d.json index 8d570526e..0dd0ca0ff 100644 --- a/tests/data/devices/tze284-upagmta9-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-upagmta9-ts0601-0x0000004d.json @@ -183,219 +183,184 @@ "zha_lib_entities": { "select": [ { - "info_object": { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -34 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -34, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AAA", - "battery_quantity": 2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "%" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-vawy74yh-ts0601-0x0000004d.json b/tests/data/devices/tze284-vawy74yh-ts0601-0x0000004d.json index fcd8ed4b3..b68f14082 100644 --- a/tests/data/devices/tze284-vawy74yh-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-vawy74yh-ts0601-0x0000004d.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:28:8a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:28:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:28:8a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:28:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:28:8a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:28:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -40 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:28:8a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:28:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -40, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:28:8a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:39:6f:28:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:28:8a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:6f:28:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-vuwtqx0t-ts0601-0x00000050.json b/tests/data/devices/tze284-vuwtqx0t-ts0601-0x00000050.json index 9b37bdb61..bcdcd4ee8 100644 --- a/tests/data/devices/tze284-vuwtqx0t-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-vuwtqx0t-ts0601-0x00000050.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c9:76:a5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c9:76:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c9:76:a5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c9:76:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c9:76:a5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c9:76:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -30 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c9:76:a5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c9:76:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -30, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c9:76:a5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:f5:c9:76:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c9:76:a5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:c9:76:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-wtikaxzs-ts0601-0x0000004d.json b/tests/data/devices/tze284-wtikaxzs-ts0601-0x0000004d.json index f72f5bcc5..13087380d 100644 --- a/tests/data/devices/tze284-wtikaxzs-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-wtikaxzs-ts0601-0x0000004d.json @@ -140,95 +140,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:75:cc:9f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:75:cc:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:75:cc:9f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:75:cc:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:75:cc:9f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:75:cc:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:75:cc:9f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:75:cc:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:75:cc:9f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:13:75:cc:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:75:cc:9f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:13:75:cc:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-xnbkhhdr-ts0601-0x0000004d.json b/tests/data/devices/tze284-xnbkhhdr-ts0601-0x0000004d.json index cd521c34e..2fe6adc05 100644 --- a/tests/data/devices/tze284-xnbkhhdr-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-xnbkhhdr-ts0601-0x0000004d.json @@ -261,540 +261,450 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": "Fault alarm", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-fault_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "fault_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "fault_alarm" - }, - "state": { - "class_name": "BinarySensor", - "available": true, - "state": false - } + "fallback_name": "Fault alarm", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-fault_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "fault_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "fault_alarm" } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:04:48:19-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 25.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "Thermostat", - "available": true, - "current_temperature": 20.4, - "outdoor_temperature": null, - "target_temperature": 18.5, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1850, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:04:48:19-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 20.4, + "outdoor_temperature": null, + "target_temperature": 18.5, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 25.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1850, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:04:48:19-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 25.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:04:48:19-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 25.0, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Deadzone temperature", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-deadzone_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "deadzone_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0.5 - } + "fallback_name": "Deadzone temperature", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-deadzone_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "deadzone_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.5, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 9.9, - "native_min_value": -9.9, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": 0.0 - } + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "auto", + "native_max_value": 9.9, + "native_min_value": -9.9, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": "Backlight mode", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "BacklightMode", - "options": [ - "Off", - "Low", - "Medium", - "High" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "High" - } + "fallback_name": "Backlight mode", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "High", + "enum": "BacklightMode", + "options": [ + "Off", + "Low", + "Medium", + "High" + ] }, { - "info_object": { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "PresetModeV03", - "options": [ - "Auto", - "Manual", - "Temporary Manual" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Manual" - } + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Manual", + "enum": "PresetModeV03", + "options": [ + "Auto", + "Manual", + "Temporary Manual" + ] }, { - "info_object": { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-temperature_sensor_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "SensorMode", - "options": [ - "Air", - "Floor", - "Both" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": null - } + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-temperature_sensor_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "SensorMode", + "options": [ + "Air", + "Floor", + "Both" + ] }, { - "info_object": { - "fallback_name": "Working day", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-working_day", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "working_day", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "WorkingDayV02", - "options": [ - "Disabled", - "Five Two", - "Six One", - "Seven" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Disabled" - } + "fallback_name": "Working day", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-working_day", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "working_day", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Disabled", + "enum": "WorkingDayV02", + "options": [ + "Disabled", + "Five Two", + "Six One", + "Seven" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:04:48:19-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 78 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:04:48:19-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 78, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:04:48:19-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:04:48:19-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:04:48:19-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:04:48:19-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Factory reset", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-factory_reset", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "factory_reset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "factory_reset", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Factory reset", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-factory_reset", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "factory_reset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "factory_reset", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 }, { - "info_object": { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": true, - "inverted": false - } + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": true, + "inverted": false, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:04:48:19-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:04:48:19-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-zjhoqbrd-ts0601-0x0000004d.json b/tests/data/devices/tze284-zjhoqbrd-ts0601-0x0000004d.json index 1abe85770..3a8999ea9 100644 --- a/tests/data/devices/tze284-zjhoqbrd-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-zjhoqbrd-ts0601-0x0000004d.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:61:e4:86-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:61:e4:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:61:e4:86-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:61:e4:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:61:e4:86-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:61:e4:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -32 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:61:e4:86-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:61:e4:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -32, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:61:e4:86-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cf:61:e4:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:61:e4:86-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cf:61:e4:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-zm8zpwas-ts0601-0x00000050.json b/tests/data/devices/tze284-zm8zpwas-ts0601-0x00000050.json index 4a295b9ef..87d93dc28 100644 --- a/tests/data/devices/tze284-zm8zpwas-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-zm8zpwas-ts0601-0x00000050.json @@ -152,95 +152,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:4b:0f:b2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:4b:0f:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:4b:0f:b2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:4b:0f:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:4b:0f:b2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:4b:0f:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:4b:0f:b2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:4b:0f:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:4b:0f:b2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:34:4b:0f:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:4b:0f:b2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:34:4b:0f:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-znvwzxkq-ts0601-0x0000004a.json b/tests/data/devices/tze284-znvwzxkq-ts0601-0x0000004a.json index e96366f3c..8f95e7554 100644 --- a/tests/data/devices/tze284-znvwzxkq-ts0601-0x0000004a.json +++ b/tests/data/devices/tze284-znvwzxkq-ts0601-0x0000004a.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:bb:1b:9d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:12:bb:1b:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:bb:1b:9d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:bb:1b:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:bb:1b:9d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:12:bb:1b:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:bb:1b:9d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:bb:1b:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:bb:1b:9d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:12:bb:1b:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:bb:1b:9d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:bb:1b:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze284-zp8xakad-ts0601-0x0000004d.json b/tests/data/devices/tze284-zp8xakad-ts0601-0x0000004d.json index c0ae5bc52..d720cdd8b 100644 --- a/tests/data/devices/tze284-zp8xakad-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-zp8xakad-ts0601-0x0000004d.json @@ -146,95 +146,80 @@ "zha_lib_entities": { "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:a4:d9:89-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:a4:d9:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:a4:d9:89-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:a4:d9:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:a4:d9:89-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:a4:d9:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -43 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:a4:d9:89-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:a4:d9:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -43, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:a4:d9:89-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:cd:a4:d9:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:a4:d9:89-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:a4:d9:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze28c1000000-alh14edn-ts0601-0x00000048.json b/tests/data/devices/tze28c1000000-alh14edn-ts0601-0x00000048.json index 49d2b914a..6091cffd5 100644 --- a/tests/data/devices/tze28c1000000-alh14edn-ts0601-0x00000048.json +++ b/tests/data/devices/tze28c1000000-alh14edn-ts0601-0x00000048.json @@ -183,161 +183,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 184 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 184, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -54 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -54, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_voltage": 0.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 0.0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze600-iypcp4py-ts0105.json b/tests/data/devices/tze600-iypcp4py-ts0105.json index 2b51f4aee..dfa338204 100644 --- a/tests/data/devices/tze600-iypcp4py-ts0105.json +++ b/tests/data/devices/tze600-iypcp4py-ts0105.json @@ -144,127 +144,107 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/tze608-c75zqghm-ts0603-0x00000040.json b/tests/data/devices/tze608-c75zqghm-ts0603-0x00000040.json index cc6b02f51..9ea625349 100644 --- a/tests/data/devices/tze608-c75zqghm-ts0603-0x00000040.json +++ b/tests/data/devices/tze608-c75zqghm-ts0603-0x00000040.json @@ -163,127 +163,107 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:20:4f:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:20:4f:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:20:4f:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:20:4f:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:20:4f:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:20:4f:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:38:20:4f:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:38:20:4f:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/ubisys-s1-5501-0x02600460.json b/tests/data/devices/ubisys-s1-5501-0x02600460.json index a0ceaf0a9..eec9d9f06 100644 --- a/tests/data/devices/ubisys-s1-5501-0x02600460.json +++ b/tests/data/devices/ubisys-s1-5501-0x02600460.json @@ -703,588 +703,505 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] }, { - "info_object": { - "fallback_name": "Input mode", - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-input_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "input_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "InputMode", - "options": [ - "Toggle", - "Toggle switch", - "On off switch" - ] - }, - "state": { - "class_name": "ZCLEnumSelectEntity", - "available": true, - "state": "Toggle" - } + "fallback_name": "Input mode", + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-input_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "input_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Toggle", + "enum": "InputMode", + "options": [ + "Toggle", + "Toggle switch", + "On off switch" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 188 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 188, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -53 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -53, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": 0.0, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 0.0, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummationReceived", - "available": true, - "state": 0.0, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": null, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 49.766, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 49.766, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 1.0, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 1.0, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 0, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.004, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0.004, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 232.0, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 232.0, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 0.0, - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": 0.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", + "max_value": null, + "max_attribute_name": "active_power_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 1, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 1 }, { - "info_object": { - "fallback_name": "Detached mode", - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-detached", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "detached", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "detached", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Detached mode", + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-detached", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "detached", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "detached", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-232-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 232, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x02600460", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-232-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 232, + "available": true, + "group_id": null, + "installed_version": "0x02600460", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/uiot-uiot-windowcovring2-0402.json b/tests/data/devices/uiot-uiot-windowcovring2-0402.json index 90c73bf5e..9f5e6e63c 100644 --- a/tests/data/devices/uiot-uiot-windowcovring2-0402.json +++ b/tests/data/devices/uiot-uiot-windowcovring2-0402.json @@ -469,309 +469,256 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-2-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 2, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-2-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 2, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-3-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 3, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-3-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 3, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-2-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 2, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-2-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 2, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-3-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 3, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-3-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 3, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/universal-electronics-inc-urc4460bc0-x-r-0x20160921.json b/tests/data/devices/universal-electronics-inc-urc4460bc0-x-r-0x20160921.json index 39b8a3cb1..4cc37d09a 100644 --- a/tests/data/devices/universal-electronics-inc-urc4460bc0-x-r-0x20160921.json +++ b/tests/data/devices/universal-electronics-inc-urc4460bc0-x-r-0x20160921.json @@ -219,220 +219,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 232 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 232, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -42 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -42, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 44.5, - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": 2.5 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 44.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": 2.5 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 13.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 13.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x20160921", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x20160921", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/unk-manufacturer-unk-model.json b/tests/data/devices/unk-manufacturer-unk-model.json index 581722c86..07e73938d 100644 --- a/tests/data/devices/unk-manufacturer-unk-model.json +++ b/tests/data/devices/unk-manufacturer-unk-model.json @@ -275,155 +275,133 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:85:b4:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:85:b4:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:85:b4:de-1", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Shade", - "translation_key": "shade", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:bb:85:b4:de", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Shade", - "available": true, - "current_position": 0, - "is_closed": true, - "state": "closed" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:85:b4:de-1", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Shade", + "translation_key": "shade", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:85:b4:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 0, + "current_tilt_position": null, + "is_opening": null, + "is_closing": null, + "is_closed": true, + "supported_features": 15 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:85:b4:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 254 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:85:b4:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 254, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:85:b4:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:85:b4:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:bb:85:b4:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:85:b4:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/visonic-mct-340-sma.json b/tests/data/devices/visonic-mct-340-sma.json index afc838453..6533942f0 100644 --- a/tests/data/devices/visonic-mct-340-sma.json +++ b/tests/data/devices/visonic-mct-340-sma.json @@ -206,220 +206,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "zone_status" - }, - "state": { - "class_name": "IASZone", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "zone_status" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.8 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.8 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 22.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 22.0, + "suggested_display_precision": null, + "unit": "\u00b0C" } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/xiaomi-lywsd03mmc.json b/tests/data/devices/xiaomi-lywsd03mmc.json index 54e68b602..62ebef717 100644 --- a/tests/data/devices/xiaomi-lywsd03mmc.json +++ b/tests/data/devices/xiaomi-lywsd03mmc.json @@ -185,471 +185,397 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "number": [ { - "info_object": { - "fallback_name": "Comfort humidity max", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_humidity_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_humidity_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 99, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Comfort humidity max", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_humidity_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_humidity_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 99, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Comfort humidity min", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_humidity_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_humidity_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 99, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Comfort humidity min", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_humidity_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_humidity_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 99, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Comfort temperature max", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_temperature_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 99, - "native_min_value": -99, - "native_step": 0.01, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Comfort temperature max", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_temperature_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 99, + "native_min_value": -99, + "native_step": 0.01, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Comfort temperature min", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_temperature_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 99, - "native_min_value": -99, - "native_step": 0.01, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Comfort temperature min", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_temperature_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 99, + "native_min_value": -99, + "native_step": 0.01, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": "Humidity offset", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-humidity_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_offset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 99, - "native_min_value": -99, - "native_step": 0.01, - "native_unit_of_measurement": "%" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Humidity offset", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-humidity_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_offset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 99, + "native_min_value": -99, + "native_step": 0.01, + "native_unit_of_measurement": "%" }, { - "info_object": { - "fallback_name": "Temperature offset", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_offset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 99, - "native_min_value": -99, - "native_step": 0.01, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "NumberConfigurationEntity", - "available": true, - "state": null - } + "fallback_name": "Temperature offset", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_offset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 99, + "native_min_value": -99, + "native_step": 0.01, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 1.5, - "battery_voltage": 2.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.5, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": 2.2 }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "\u00b0C" - }, - "state": { - "class_name": "Temperature", - "available": true, - "state": 19.97 - } + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 19.97, + "suggested_display_precision": null, + "unit": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "%" - }, - "state": { - "class_name": "Humidity", - "available": true, - "state": 52.96 - } + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 52.96, + "suggested_display_precision": null, + "unit": "%" } ], "switch": [ { - "info_object": { - "fallback_name": "Display enabled", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-display", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "display_enabled", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "display", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": false, - "on_value": true - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Display enabled", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-display", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "display_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "display", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": false, + "on_value": true }, { - "info_object": { - "fallback_name": "Show smiley", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-smiley", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "show_smiley", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "smiley", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": false, - "on_value": true - }, - "state": { - "class_name": "ConfigurableAttributeSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": "Show smiley", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-smiley", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "show_smiley", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "smiley", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": false, + "on_value": true } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/xiaoyan-terncy-sd01-0x0000001a.json b/tests/data/devices/xiaoyan-terncy-sd01-0x0000001a.json index 3404943a9..cb4ffb2e7 100644 --- a/tests/data/devices/xiaoyan-terncy-sd01-0x0000001a.json +++ b/tests/data/devices/xiaoyan-terncy-sd01-0x0000001a.json @@ -159,160 +159,137 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:16:73:c1:c9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:16:73:c1:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:16:73:c1:c9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:16:73:c1:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:16:73:c1:c9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:16:73:c1:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:16:73:c1:c9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:16:73:c1:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:16:73:c1:c9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:16:73:c1:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:16:73:c1:c9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:16:73:c1:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:16:73:c1:c9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:16:73:c1:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 79.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:16:73:c1:c9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:0d:6f:00:16:73:c1:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 79.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:16:73:c1:c9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:16:73:c1:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000001a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:16:73:c1:c9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:16:73:c1:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000001a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/xyzroe-diy-zintercom.json b/tests/data/devices/xyzroe-diy-zintercom.json index 5d7bf4154..f9ef63b44 100644 --- a/tests/data/devices/xyzroe-diy-zintercom.json +++ b/tests/data/devices/xyzroe-diy-zintercom.json @@ -122,89 +122,74 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/yale-yrd256-tsdb-0x0105002b.json b/tests/data/devices/yale-yrd256-tsdb-0x0105002b.json index d3b819b0a..8d8638867 100644 --- a/tests/data/devices/yale-yrd256-tsdb-0x0105002b.json +++ b/tests/data/devices/yale-yrd256-tsdb-0x0105002b.json @@ -239,191 +239,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:19:1f:7b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:11:19:1f:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:19:1f:7b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:11:19:1f:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "lock": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:19:1f:7b-1-257", - "migrate_unique_ids": [], - "platform": "lock", - "class_name": "DoorLock", - "translation_key": "door_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "00:0d:6f:00:11:19:1f:7b", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "DoorLock", - "available": true, - "is_locked": true - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:19:1f:7b-1-257", + "migrate_unique_ids": [], + "platform": "lock", + "class_name": "DoorLock", + "translation_key": "door_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:11:19:1f:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_locked": true } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:19:1f:7b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:11:19:1f:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:19:1f:7b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:11:19:1f:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:19:1f:7b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:11:19:1f:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:19:1f:7b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:11:19:1f:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:19:1f:7b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:11:19:1f:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 65.0, - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 5.2 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:19:1f:7b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "00:0d:6f:00:11:19:1f:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 5.2 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:19:1f:7b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "00:0d:6f:00:11:19:1f:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0105002b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:19:1f:7b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:11:19:1f:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0105002b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/yooksmart-d10110-0x12046780.json b/tests/data/devices/yooksmart-d10110-0x12046780.json index b5c021583..b048d2228 100644 --- a/tests/data/devices/yooksmart-d10110-0x12046780.json +++ b/tests/data/devices/yooksmart-d10110-0x12046780.json @@ -239,256 +239,217 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "cover": [ { - "info_object": { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Cover", - "available": true, - "current_position": 100, - "current_tilt_position": null, - "state": "open", - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 - } + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_position": 100, + "current_tilt_position": null, + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 65.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 65.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": null, + "battery_quantity": null, + "battery_voltage": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "WindowCoveringTypeSensor", - "available": true, - "state": "Rollershade" - } + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "Rollershade", + "suggested_display_precision": null, + "unit": null } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 - }, - "state": { - "class_name": "WindowCoveringInversionSwitch", - "available": true, - "state": false, - "inverted": false - } + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x12046780", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x12046780", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/yunding-ford.json b/tests/data/devices/yunding-ford.json index d11bd04e9..d9f16f9bf 100644 --- a/tests/data/devices/yunding-ford.json +++ b/tests/data/devices/yunding-ford.json @@ -183,190 +183,160 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:6a:22:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:6a:22:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "lock": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-257", - "migrate_unique_ids": [], - "platform": "lock", - "class_name": "DoorLock", - "translation_key": "door_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "68:0a:e2:ff:fe:6a:22:af", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "DoorLock", - "available": true, - "is_locked": false - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-257", + "migrate_unique_ids": [], + "platform": "lock", + "class_name": "DoorLock", + "translation_key": "door_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:6a:22:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_locked": false } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:6a:22:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:6a:22:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:6a:22:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:6a:22:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:6a:22:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": 100.0, - "battery_size": "AA", - "battery_quantity": 4 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "68:0a:e2:ff:fe:6a:22:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 100.0, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "68:0a:e2:ff:fe:6a:22:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "68:0a:e2:ff:fe:6a:22:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/zbeacon-ts0001.json b/tests/data/devices/zbeacon-ts0001.json index d71c4c778..30830b217 100644 --- a/tests/data/devices/zbeacon-ts0001.json +++ b/tests/data/devices/zbeacon-ts0001.json @@ -180,179 +180,146 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 8, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "PreviousValue" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "PreviousValue", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 140 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 140, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -65 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -65, + "suggested_display_precision": null, + "unit": "dBm" } ] }, diff --git a/tests/data/devices/zbeacon-ts0505.json b/tests/data/devices/zbeacon-ts0505.json index 77a5f7c99..f3b8f8fb2 100644 --- a/tests/data/devices/zbeacon-ts0505.json +++ b/tests/data/devices/zbeacon-ts0505.json @@ -296,600 +296,516 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "light": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "effect_list": [ - "off" - ], - "supported_features": 40, - "min_mireds": 153, - "max_mireds": 500 - }, - "state": { - "class_name": "Light", - "available": true, - "on": true, - "brightness": 126, - "xy_color": [ - 0.15320057984283209, - 0.04754711223010605 - ], - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null - }, - "extra_state_attributes": [ - "off_brightness", - "off_with_transition" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "on": true, + "brightness": 126, + "xy_color": [ + 0.15320057984283209, + 0.04754711223010605 + ], + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null, + "min_mireds": 153, + "max_mireds": 500 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpColorTemperatureConfigurationEntity", - "available": true, - "state": 200 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 200, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OffTransitionTimeConfigurationEntity", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnLevelConfigurationEntity", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "OnTransitionTimeConfigurationEntity", - "available": true, - "state": 1 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null - }, - "state": { - "class_name": "StartUpCurrentLevelConfigurationEntity", - "available": true, - "state": 67 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 67, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] - }, - "state": { - "class_name": "StartupOnOffSelectEntity", - "available": true, - "state": "Toggle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Toggle", + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": null - }, - "state": { - "class_name": "SmartEnergyMetering", - "available": true, - "state": null, - "zcl_unit_of_measurement": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": null, + "device_type": null, + "status": null, + "zcl_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": null - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": null, - "zcl_unit_of_measurement": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 3, + "unit": null, + "device_type": null, + "status": null, + "zcl_unit_of_measurement": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": null - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" } ] }, diff --git a/tests/data/devices/zehnder-group-vaux-andigny-alcantara2-d1-00p1-02z1-00.json b/tests/data/devices/zehnder-group-vaux-andigny-alcantara2-d1-00p1-02z1-00.json index b8c2ca224..fb689c17c 100644 --- a/tests/data/devices/zehnder-group-vaux-andigny-alcantara2-d1-00p1-02z1-00.json +++ b/tests/data/devices/zehnder-group-vaux-andigny-alcantara2-d1-00p1-02z1-00.json @@ -371,328 +371,268 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "occupancy" - }, - "state": { - "class_name": "Occupancy", - "available": true, - "state": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 2, + "available": true, + "group_id": null, + "is_on": true, + "attribute_name": "occupancy" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-3-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 3, - "available": true, - "group_id": null, - "attribute_name": "present_value" - }, - "state": { - "class_name": "BinaryInput", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-3-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 3, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "present_value" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "ZehnderThermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 28.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ] - }, - "state": { - "class_name": "ZehnderThermostat", - "available": true, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": 7.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[1]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": 2600, - "occupied_heating_setpoint": 700, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": 800 - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "ZehnderThermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": 7.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 28.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ], + "sys_mode": "[1]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": 2600, + "occupied_heating_setpoint": 700, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": 800 } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "ThermostatLocalTempCalibration", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSource", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ] }, diff --git a/tests/data/devices/zemismart-spm02-3z3-0x0000000e.json b/tests/data/devices/zemismart-spm02-3z3-0x0000000e.json index b8f5160be..7e61ec96a 100644 --- a/tests/data/devices/zemismart-spm02-3z3-0x0000000e.json +++ b/tests/data/devices/zemismart-spm02-3z3-0x0000000e.json @@ -587,732 +587,645 @@ "zha_lib_entities": { "binary_sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "on_off" - }, - "state": { - "class_name": "Opening", - "available": true, - "state": false - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "attribute_name": "on_off" } ], "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 132 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 132, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": -67 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": -67, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummation", - "available": true, - "state": 5.27, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 5.27, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 3, - "unit": "kWh" - }, - "state": { - "class_name": "SmartEnergySummationReceived", - "available": true, - "state": 0.13, - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "device_type", "status", "zcl_unit_of_measurement" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.13, + "suggested_display_precision": 3, + "unit": "kWh", + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePower", - "available": true, - "state": 3.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 3.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "Hz" - }, - "state": { - "class_name": "ElectricalMeasurementFrequency", - "available": true, - "state": 49.99 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "ac_frequency_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 49.99, + "suggested_display_precision": 1, + "unit": "Hz", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "ac_frequency_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-active_power_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhB", - "translation_key": "active_power_ph_b", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePowerPhB", - "available": true, - "state": 18.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-active_power_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhB", + "translation_key": "active_power_ph_b", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max_ph_b", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 18.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-active_power_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhC", - "translation_key": "active_power_ph_c", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementActivePowerPhC", - "available": true, - "state": 196.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-active_power_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhC", + "translation_key": "active_power_ph_c", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max_ph_c", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 196.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "VA" - }, - "state": { - "class_name": "ElectricalMeasurementApparentPower", - "available": true, - "state": 4.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4.0, + "suggested_display_precision": 1, + "unit": "VA", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactor", - "available": true, - "state": 81 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 81, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-power_factor_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactorPhB", - "translation_key": "power_factor_ph_b", - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactorPhB", - "available": true, - "state": 47 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-power_factor_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactorPhB", + "translation_key": "power_factor_ph_b", + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 47, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-power_factor_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactorPhC", - "translation_key": "power_factor_ph_c", - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "%" - }, - "state": { - "class_name": "ElectricalMeasurementPowerFactorPhC", - "available": true, - "state": 74 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-power_factor_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactorPhC", + "translation_key": "power_factor_ph_c", + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 74, + "suggested_display_precision": 1, + "unit": "%", + "measurement_type": null, + "max_value": null, + "max_attribute_name": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrent", - "available": true, - "state": 0.01 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.01, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_current_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "translation_key": "rms_current_ph_b", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "available": true, - "state": 0.16 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_current_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "translation_key": "rms_current_ph_b", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max_ph_b" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.16, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_current_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "translation_key": "rms_current_ph_c", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 2, - "unit": "A" - }, - "state": { - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "available": true, - "state": 1.15 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_current_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "translation_key": "rms_current_ph_c", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_current_max_ph_c" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 1.15, + "suggested_display_precision": 2, + "unit": "A", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_current_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltage", - "available": true, - "state": 239.38 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 239.38, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_voltage_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "translation_key": "rms_voltage_ph_b", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "available": true, - "state": 236.56 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_voltage_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "translation_key": "rms_voltage_ph_b", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max_ph_b" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 236.56, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max_ph_b" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_voltage_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "translation_key": "rms_voltage_ph_c", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "V" - }, - "state": { - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "available": true, - "state": 237.29 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_voltage_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "translation_key": "rms_voltage_ph_c", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "measurement_type", "rms_voltage_max_ph_c" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 237.29, + "suggested_display_precision": 1, + "unit": "V", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "rms_voltage_max_ph_c" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 1, - "unit": "W" - }, - "state": { - "class_name": "ElectricalMeasurementTotalActivePower", - "available": true, - "state": 219.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "active_power_max", "measurement_type" - ] + ], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 219.0, + "suggested_display_precision": 1, + "unit": "W", + "measurement_type": null, + "max_value": null, + "max_attribute_name": "active_power_max" } ], "switch": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null - }, - "state": { - "class_name": "Switch", - "state": 0, - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": 0 } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000000e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000000e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, diff --git a/tests/data/devices/zen-within-zen-01-0x0000021f.json b/tests/data/devices/zen-within-zen-01-0x0000021f.json index 58296d63a..154c88beb 100644 --- a/tests/data/devices/zen-within-zen-01-0x0000021f.json +++ b/tests/data/devices/zen-within-zen-01-0x0000021f.json @@ -361,418 +361,347 @@ "zha_lib_entities": { "button": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} - }, - "state": { - "class_name": "IdentifyButton", - "available": true - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} } ], "climate": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "ZenWithinThermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "max_temp": 37.3, - "min_temp": 4.0, - "supported_features": 395, - "fan_modes": [ - "auto", - "on" - ], - "preset_modes": [], - "hvac_modes": [ - "off", - "heat_cool", - "cool", - "heat" - ] - }, - "state": { - "class_name": "ZenWithinThermostat", - "available": true, - "current_temperature": 21.7, - "outdoor_temperature": null, - "target_temperature": 17.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "system_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": 2350, - "occupied_heating_setpoint": 1700, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null - }, - "extra_state_attributes": [ - "occupancy", - "occupied_cooling_setpoint", - "occupied_heating_setpoint", - "pi_cooling_demand", - "pi_heating_demand", - "system_mode", - "unoccupied_cooling_setpoint", - "unoccupied_heating_setpoint" - ] + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "ZenWithinThermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_temperature": 21.7, + "outdoor_temperature": null, + "target_temperature": 17.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "max_temp": 37.3, + "min_temp": 4.0, + "supported_features": 395, + "fan_modes": [ + "auto", + "on" + ], + "preset_modes": [], + "hvac_modes": [ + "off", + "heat_cool", + "cool", + "heat" + ], + "sys_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": 2350, + "occupied_heating_setpoint": 1700, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null } ], "number": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "ThermostatLocalTempCalibration", - "available": true, - "state": 0.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 0.0, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 37.300000000000004, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MaxHeatSetpointLimit", - "available": true, - "state": 37.300000000000004 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 37.300000000000004, + "mode": "box", + "native_max_value": 37.300000000000004, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "mode": "box", - "native_max_value": 37.300000000000004, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" - }, - "state": { - "class_name": "MinHeatSetpointLimit", - "available": true, - "state": 4.0 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 4.0, + "mode": "box", + "native_max_value": 37.300000000000004, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" } ], "select": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] - }, - "state": { - "class_name": "KeypadLockout", - "available": true, - "state": "Unlock" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": "Unlock", + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] } ], "sensor": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "LQISensor", - "available": true, - "state": 255 - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": 255, + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - "state": { - "class_name": "RSSISensor", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": "dBm" }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": 0, - "unit": "%" - }, - "state": { - "class_name": "Battery", - "available": true, - "state": null, - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 6.0 - }, - "extra_state_attributes": [ + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ "battery_quantity", "battery_size", "battery_voltage" - ] + ], + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 6.0 }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "ThermostatHVACAction", - "available": true, - "state": "idle" - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": "idle", + "suggested_display_precision": null, + "unit": null }, { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "suggested_display_precision": null, - "unit": null - }, - "state": { - "class_name": "SetpointChangeSourceTimestamp", - "available": true, - "state": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": null, + "unit": null } ], "update": [ { - "info_object": { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "supported_features": 7 - }, - "state": { - "class_name": "FirmwareUpdateEntity", - "available": true, - "installed_version": "0x0000021f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null - } + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "installed_version": "0x0000021f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null, + "supported_features": 7 } ] }, From 83e45b4a4309cce7a3acdd92769ec209d65c7d53 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Fri, 26 Jun 2026 15:09:48 -0400 Subject: [PATCH 9/9] Revert "Regenerate diagnostics" This reverts commit 799d88ce141dcdd7d979d9b8ce8a9ae99254851e. --- tests/data/devices/adeo-sin-4-fp-21-equ.json | 475 +- .../adeo-zb-watersensor-d0001-0x21120002.json | 300 +- ...durosmart-eria-ad-rgbw3001-0x00000001.json | 675 +- .../adurosmart-eria-adurolight-csc.json | 242 +- .../adurosmart-eria-vms-adurolight.json | 244 +- tests/data/devices/aeotec-zga004.json | 561 +- tests/data/devices/alab-alab-co2-1-1.json | 286 +- .../aqara-lumi-airrtc-aeu001-0x00000a1a.json | 808 +- .../aqara-lumi-airrtc-aeu005-0x00001227.json | 562 +- .../devices/aqara-lumi-curtain-acn04.json | 303 +- .../aqara-lumi-light-acn132-0x00001a1a.json | 1061 +- .../aqara-lumi-light-agl003-0x0000001b.json | 671 +- .../aqara-lumi-light-agl005-0x0000001b.json | 671 +- .../data/devices/aqara-lumi-lunar-acn01.json | 202 +- .../aqara-lumi-motion-ac01-0x00000035.json | 502 +- ...ra-lumi-sensor-occupy-agl1-0x0000001a.json | 584 +- ...ra-lumi-sensor-occupy-agl8-0x00003422.json | 396 +- ...ra-lumi-sensor-occupy-agl8-0x00003a29.json | 399 +- ...ra-lumi-sensor-occupy-agl8-0x0000412a.json | 399 +- .../aqara-lumi-switch-acn047-0x0000001c.json | 769 +- .../aqara-lumi-switch-aeu003-0x00000e14.json | 467 +- .../aqara-lumi-switch-agl007-0x00001116.json | 566 +- .../aqara-lumi-switch-agl010-0x00001315.json | 397 +- ...atlantic-group-adapter-zigbee-fujitsu.json | 399 +- ...inkhaus-gmbh-co-kg-fm-v-zb-0x00000011.json | 300 +- .../data/devices/aurora-doublesocket50au.json | 936 +- tests/data/devices/awox-ercu-ws-zm.json | 145 +- tests/data/devices/awox-esmlfzm-w6-dimm.json | 393 +- tests/data/devices/awox-tlsr82xx.json | 145 +- ...en-kg-smart-dimmable-light-0x00990be9.json | 715 +- .../data/devices/bitron-video-902010-24a.json | 536 +- .../data/devices/bituo-technik-spm01x001.json | 681 +- .../bosch-rbsh-mms-zb-eu-0x11136760.json | 1340 +-- .../bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json | 1703 ++-- .../bosch-rbsh-rth0-zb-eu-0x03036a30.json | 1696 ++-- .../bosch-rbsh-trv0-zb-eu-0x32051514.json | 1277 +-- .../bosch-rbsh-trv0-zb-eu-0x38011514.json | 1336 +-- .../bosch-rbsh-us4btn-zb-eu-0x100d6a30.json | 256 +- tests/data/devices/busch-jaeger-rb01.json | 151 +- tests/data/devices/bweetech-semote.json | 198 +- .../candeo-c-zb-lc20-dim-0x29013001.json | 397 +- .../candeo-c-zb-lc20-rgb-0x31013001.json | 405 +- .../devices/centralite-3300-0x1f075310.json | 350 +- .../devices/centralite-3310-g-0x11015310.json | 352 +- .../centralite-3315-seu-0x1f085310.json | 350 +- tests/data/devices/centralite-3320-l.json | 350 +- .../devices/centralite-3326-l-0x1c005310.json | 350 +- tests/data/devices/centralite-3326-l.json | 350 +- .../devices/centralite-3405-l-0x10025310.json | 399 +- ...centralite-systems-3156105-0x1418468c.json | 679 +- .../climaxtechnology-sd8sc-00-00-03-12tc.json | 479 +- tests/data/devices/computime-slr2b.json | 949 +- .../devices/computime-slt3c-0x02040105.json | 512 +- tests/data/devices/d5x84yu-et093wrg.json | 1108 ++- tests/data/devices/danfoss-0x8040.json | 699 +- .../devices/danfoss-etrv0103-0x00000014.json | 2061 ++-- tests/data/devices/datek-pop.json | 623 +- tests/data/devices/datek-ssds.json | 303 +- ...zhemi-zigbee-external-meter-interface.json | 257 +- tests/data/devices/digi-xbee3.json | 986 +- ...codim-bv-eco-dim-05-zigbee-0x00000001.json | 535 +- .../devices/ecodim-bv-ecodim-zigbee-3-0.json | 535 +- .../devices/ecolink-4655bc0-r-0x20160921.json | 350 +- tests/data/devices/enktro-acmidea.json | 352 +- .../ericsity-gl-c-008p-0x25013001.json | 463 +- .../ericsity-gl-c-009p-0x25013001.json | 452 +- .../devices/espressif-zigbeeanalogdevice.json | 245 +- .../espressif-zigbeebinaryanalogdevice.json | 188 +- .../espressif-zigbeecarbondioxidesensor.json | 192 +- .../eurotronic-spzb0001-0x4501001f.json | 661 +- ...l702-al-01-7009-z102lg03-1-0x00001200.json | 569 +- ...l702-al-01-7009-z102lg03-1-0x00001203.json | 569 +- ...nk-ck-tlsr8656-ss5-01-7000-0x00001102.json | 256 +- tests/data/devices/ewelink-ds01.json | 244 +- tests/data/devices/ewelink-ms01.json | 244 +- tests/data/devices/ewelink-sa-003-zigbee.json | 188 +- .../devices/ewelink-snzb-01p-0x00002000.json | 256 +- .../devices/ewelink-snzb-01p-0x00002200.json | 256 +- .../devices/ewelink-snzb-02p-0x00002100.json | 349 +- .../devices/ewelink-snzb-03p-0x00002201.json | 399 +- .../devices/ewelink-snzb-04p-0x00002200.json | 346 +- tests/data/devices/ewelink-th01.json | 293 +- tests/data/devices/ewelink-wb01.json | 199 +- tests/data/devices/ewelink-zb-sw01.json | 228 +- tests/data/devices/ewelink-zb-sw02.json | 311 +- .../ezviz-cs-t55-r100-g-0x00000002.json | 586 +- .../feibit-inc-co-fzb56-zcw27lx1-0.json | 243 +- .../frient-a-s-aqszb-110-0x00040001.json | 399 +- .../frient-a-s-emizb-141-0x00030102.json | 468 +- .../frient-a-s-emizb-151-0x00030107.json | 910 +- .../frient-a-s-flszb-110-0x00040001.json | 395 +- .../frient-a-s-hmszb-120-0x00040001.json | 352 +- .../frient-a-s-iomzb-110-0x00020001.json | 468 +- .../frient-a-s-kepzb-110-0x0001060a.json | 352 +- .../frient-a-s-kepzb-110-0x00020005.json | 352 +- .../frient-a-s-moszb-140-0x00040006.json | 487 +- .../frient-a-s-moszb-153-0x00020006.json | 548 +- .../frient-a-s-sbtzb-110-0x00020002.json | 303 +- .../frient-a-s-scazb-141-0x00010803.json | 579 +- .../frient-a-s-sirzb-111-0x00020004.json | 538 +- .../frient-a-s-smszb-120-0x00040008.json | 397 +- tests/data/devices/frient-a-s-smszb-120.json | 395 +- .../frient-a-s-splzb-141-0x00020009.json | 622 +- .../frient-a-s-wiszb-131-0x00020006.json | 395 +- .../gledopto-gl-b-008p-0x00000006.json | 463 +- tests/data/devices/gledopto-gl-b-008z.json | 243 +- .../gledopto-gl-c-009p-0x17013001.json | 452 +- .../gledopto-gl-c-009p-0x25013001.json | 397 +- .../gledopto-gl-c-009p-0x29013001.json | 397 +- .../gledopto-gl-sd-301p-0x26013001.json | 452 +- tests/data/devices/gledpopto-gl-c-007p.json | 463 +- ...zigbee-smart-rotary-dimmer-0x00000002.json | 340 +- tests/data/devices/heiman-smokesensor-em.json | 301 +- tests/data/devices/hive-mbr1-0x01047320.json | 202 +- tests/data/devices/hobeian-zg-101zl.json | 356 +- tests/data/devices/hobeian-zg-102zm.json | 244 +- tests/data/devices/hobeian-zg-204zk.json | 246 +- tests/data/devices/hobeian-zg-204zv.json | 385 +- tests/data/devices/hobeian-zg-229z.json | 339 +- tests/data/devices/homr-hrmsn01.json | 872 +- .../horn-zone-haier-hs-22zw-0000011216.json | 190 +- ...dring-water-leakage-sensor-0x01000007.json | 303 +- ...tur-block-out-roller-blind-0x23088631.json | 412 +- ...eden-inspelning-smart-plug-0x02040045.json | 630 +- ...f-sweden-ormanas-led-strip-0x01010010.json | 569 +- ...arasoll-door-window-sensor-0x01000019.json | 303 +- ...praktlysing-cellular-blind-0x23088631.json | 412 +- .../ikea-of-sweden-remote-control-n2.json | 257 +- ...ea-of-sweden-rodret-dimmer-0x01000047.json | 258 +- ...ea-of-sweden-rodret-dimmer-0x01000057.json | 258 +- ...den-rodret-wireless-dimmer-0x01000057.json | 258 +- ...den-somrig-shortcut-button-0x01000021.json | 258 +- ...den-starkvind-air-purifier-0x00011001.json | 629 +- ...arkvind-air-purifier-table-0x00011001.json | 629 +- ...ymfonisk-sound-remote-gen2-0x00010012.json | 258 +- ...fri-bulb-e12-w-op-ch-400lm-0x23094631.json | 503 +- ...fri-bulb-e12-ws-opal-400lm-0x23087631.json | 558 +- ...ri-bulb-e14-ws-globe-470lm-0x01010020.json | 558 +- ...adfri-bulb-e26-opal-1000lm-0x23094631.json | 503 +- ...fri-bulb-e26-w-opal-1000lm-0x23094631.json | 503 +- ...fri-bulb-e26-ws-opal-980lm-0x23095631.json | 558 +- ...i-bulb-e27-ws-globe-1055lm-0x02040005.json | 558 +- ...i-bulb-e27-ww-g95-cl-470lm-0x00011006.json | 503 +- ...tradfri-bulb-gu10-ws-400lm-0x23095631.json | 558 +- ...of-sweden-tradfri-bulb-gu10-ww-345lm8.json | 503 +- ...tradfri-bulb-gu10-ww-400lm-0x23093631.json | 503 +- ...den-tradfri-control-outlet-0x23089631.json | 302 +- .../ikea-of-sweden-tradfri-motion-sensor.json | 303 +- .../ikea-of-sweden-tradfri-on-off-switch.json | 258 +- ...-tradfri-open-close-remote-0x23079631.json | 258 +- ...ikea-of-sweden-tradfri-remote-control.json | 258 +- ...kea-of-sweden-tradfri-shortcut-button.json | 258 +- ...kea-of-sweden-tradfri-wireless-dimmer.json | 258 +- ...orn-wireless-motion-sensor-0x01000064.json | 609 +- .../devices/imagic-by-greatstar-1112-s.json | 446 +- .../devices/innr-ae-280-c-0x20026a30.json | 569 +- .../devices/innr-rb-285-c-0x10051567.json | 463 +- .../data/devices/innr-rc-250-0x21086500.json | 258 +- .../devices/innr-rs-232-c-0x22151511.json | 675 +- .../data/devices/innr-sp-120-0x11040002.json | 516 +- .../data/devices/innr-sp-234-0x31016610.json | 520 +- .../data/devices/innr-sp-240-0x191e3685.json | 520 +- .../data/devices/innr-sp-242-0x17173685.json | 785 +- .../devices/inovelli-vzm30-sn-0x01100100.json | 959 +- tests/data/devices/inovelli-vzm30-sn.json | 1703 ++-- .../devices/inovelli-vzm31-sn-0x01020212.json | 2369 +++-- .../devices/inovelli-vzm35-sn-0x02020107.json | 2488 ++--- tests/data/devices/isilentllc-dog-feeder.json | 325 +- tests/data/devices/isilentllc-doorbell.json | 233 +- .../devices/isilentllc-freezer-monitor.json | 237 +- .../isilentllc-home-energy-monitor.json | 8798 +++++++++-------- ...isilentllc-masterbed-light-controller.json | 477 +- tests/data/devices/isilentllc-safe.json | 371 +- .../data/devices/isilentllc-test-device.json | 231 +- tests/data/devices/isilentllc-test-mule.json | 190 +- .../data/devices/isilentllc-water-heater.json | 395 +- .../jasco-products-45856-0x00000006.json | 397 +- .../jasco-products-45857-0x00000006.json | 452 +- ...-tradfri-open-close-remote-0x22010631.json | 258 +- ...n-home-inc-sv01-410-mp-1-1-0x10235121.json | 402 +- .../keen-home-inc-sv02-610-mp-1-3.json | 402 +- .../keen-home-inc-sv02-612-mp-1-3.json | 402 +- ...ns-inc-hbuniversalcfremote-0x0000000f.json | 418 +- ...-fans-inc-hdc52eastwindfan-0x0000000f.json | 418 +- .../data/devices/konke-3afe140103020000.json | 294 +- .../data/devices/konke-3afe220103020000.json | 294 +- .../data/devices/konke-3afe270104020015.json | 245 +- .../data/devices/konke-3afe280100510001.json | 200 +- .../data/devices/konke-3afe28010402000d.json | 290 +- ...set-smartcode-convert-gen1-0x30a07a06.json | 348 +- .../lds-zb-onoffplug-d0005-0x21186230.json | 519 +- .../lds-zbt-cctswitch-d0001-0x21000006.json | 258 +- .../ledvance-a60s-rgbw-0x02146550.json | 459 +- .../ledvance-flex-rgbw-0x00102428.json | 562 +- ...e-outdoor-accent-light-rgb-0x00102428.json | 562 +- .../devices/ledvance-plug-0x00102101.json | 245 +- tests/data/devices/legrand-contactor.json | 608 +- ...-dimmer-switch-w-o-neutral-0x004d45ff.json | 752 +- .../legrand-double-gangs-remote-switch.json | 301 +- ...-light-switch-with-neutral-0x001c4203.json | 497 +- .../legrand-light-switch-with-neutral.json | 497 +- .../legrand-mobile-outlet-0x006545ff.json | 608 +- .../devices/level-home-b2-0x0300001a.json | 301 +- .../devices/level-home-bolt-0x03020006.json | 301 +- .../devices/lixee-zlinky-tic-0x00000011.json | 1140 ++- .../data/devices/lk-zb-doorsensor-d0003.json | 303 +- .../lk-zbt-dimswitch-d0001-0x22166500.json | 258 +- .../lk-zbt-onoffplug-d0001-0x22036610.json | 461 +- .../devices/lumi-lumi-airmonitor-acn01.json | 399 +- .../lumi-lumi-airrtc-agl001-0x0000001e.json | 954 +- .../data/devices/lumi-lumi-ctrl-neutral2.json | 421 +- .../lumi-lumi-curtain-acn002-0x00000e1f.json | 605 +- .../lumi-lumi-curtain-acn002-0x00000f20.json | 605 +- .../devices/lumi-lumi-curtain-acn003.json | 405 +- .../lumi-lumi-curtain-agl001-0x00000018.json | 655 +- .../devices/lumi-lumi-curtain-hagl04.json | 354 +- .../lumi-lumi-flood-acn001-0x00000004.json | 303 +- .../lumi-lumi-flood-agl02-0x00000020.json | 303 +- .../lumi-lumi-light-aqcn02-0x00000017.json | 342 +- tests/data/devices/lumi-lumi-magnet-ac01.json | 358 +- .../lumi-lumi-magnet-acn001-0x00000004.json | 303 +- .../lumi-lumi-magnet-agl02-0x0000001e.json | 302 +- tests/data/devices/lumi-lumi-motion-ac02.json | 558 +- .../data/devices/lumi-lumi-motion-agl02.json | 395 +- .../lumi-lumi-motion-agl04-0x00000019.json | 503 +- .../lumi-lumi-plug-maeu01-0x0000002d.json | 553 +- tests/data/devices/lumi-lumi-plug-maeu01.json | 614 +- .../lumi-lumi-plug-maus01-0x0000000b.json | 765 +- .../lumi-lumi-relay-c2acn01-0x00000024.json | 737 +- .../devices/lumi-lumi-remote-b286opcn01.json | 201 +- .../data/devices/lumi-lumi-remote-b28ac1.json | 307 +- .../devices/lumi-lumi-remote-b486opcn01.json | 201 +- .../devices/lumi-lumi-remote-b686opcn01.json | 201 +- .../lumi-lumi-remote-cagl02-0x0000001c.json | 257 +- .../data/devices/lumi-lumi-remote-cagl02.json | 258 +- .../data/devices/lumi-lumi-sen-ill-agl01.json | 248 +- .../data/devices/lumi-lumi-sen-ill-mgl01.json | 248 +- .../data/devices/lumi-lumi-sensor-86sw2.json | 305 +- .../devices/lumi-lumi-sensor-ht-agl02.json | 399 +- .../devices/lumi-lumi-sensor-magnet-aq2.json | 293 +- .../devices/lumi-lumi-sensor-motion-aq2.json | 442 +- ...mi-lumi-sensor-smoke-acn03-0x00000011.json | 660 +- .../data/devices/lumi-lumi-sensor-smoke.json | 350 +- .../devices/lumi-lumi-sensor-switch-aq2.json | 197 +- .../devices/lumi-lumi-sensor-switch-aq3.json | 197 +- .../data/devices/lumi-lumi-sensor-switch.json | 258 +- .../devices/lumi-lumi-switch-b1lacn02.json | 378 +- .../lumi-lumi-switch-b1laus01-0x00000020.json | 332 +- .../lumi-lumi-switch-b1naus01-0x0000001f.json | 442 +- .../devices/lumi-lumi-switch-b2naus01.json | 549 +- .../data/devices/lumi-lumi-switch-b2nc01.json | 415 +- .../lumi-lumi-switch-l1aeu1-0x00000e0b.json | 332 +- .../lumi-lumi-switch-l2aeu1-0x00000e0b.json | 415 +- .../lumi-lumi-switch-n0agl1-0x0000001e.json | 567 +- .../data/devices/lumi-lumi-switch-n0agl1.json | 567 +- .../data/devices/lumi-lumi-switch-n1aeu1.json | 456 +- .../lumi-lumi-vibration-agl01-0x0000001c.json | 346 +- .../data/devices/lumi-lumi-vibration-aq1.json | 350 +- tests/data/devices/lumi-lumi-weather.json | 342 +- .../devices/lutron-lzl4bwhl01-remote.json | 94 +- .../devices/lutron-z3-1brl-0x00000c08.json | 256 +- .../mli-tint-extendedcolor-0x10012001.json | 406 +- .../mli-zbt-remote-all-rgbw-0x11010022.json | 202 +- tests/data/devices/namron-as-1402790.json | 398 +- .../devices/namron-as-4512785-0x0000000e.json | 611 +- .../neuhaus-lighting-group-nlg-remote.json | 145 +- .../niko-nv-battery-switch-2-button.json | 258 +- ...nv-battery-switch-4-button-0x21046760.json | 258 +- ...nnectable-motor-control-3a-0x21160006.json | 303 +- tests/data/devices/nodon-sin-4-fp-21.json | 475 +- .../devices/nodon-sin-4-rs-20-0x00010300.json | 570 +- .../occam-temp-sensor-v1-2-jan-19-2026.json | 293 +- ...vibo-250bccf66c41421b91b5e3242942c164.json | 501 +- .../osram-switch-4x-lightify-0x01000000.json | 205 +- ...i-bo-cf31218e11c547179c9c9ade6a492799.json | 241 +- .../devices/paulmann-licht-gmbh-501-34.json | 371 +- .../devices/philips-7602031u7-0x01001d00.json | 463 +- .../philips-915005988601-0x01002000.json | 463 +- .../devices/philips-lct014-0x01001a02.json | 463 +- tests/data/devices/philips-lct026.json | 463 +- .../devices/philips-llc020-0x42006734.json | 463 +- .../devices/philips-lst002-0x01001700.json | 300 +- .../devices/philips-rom001-0x02002f08.json | 256 +- .../devices/philips-rwl020-0x420045b6.json | 301 +- tests/data/devices/philips-rwl020.json | 301 +- .../devices/philips-rwl021-0x43007305.json | 301 +- .../devices/philips-sml001-0x42006bb7.json | 550 +- .../devices/philips-sml001-0x43007305.json | 550 +- .../devices/philips-sml001-0x43007401.json | 550 +- ...aid-systems-ps-sprzms-slp3-0x00000001.json | 352 +- tests/data/devices/ptvo-info-ptvo-switch.json | 716 +- .../devices/samjin-button-0x00000011.json | 348 +- .../data/devices/samjin-multi-0x0000000b.json | 393 +- tests/data/devices/samjin-water.json | 348 +- ...chneider-electric-eko07259-0x01001d00.json | 1899 ++-- ...r-electric-evsckt-outlet-1-0x020a00ff.json | 522 +- .../devices/schneider-electric-lk-dimmer.json | 499 +- ...electric-nhmotion-unidim-1-0x020b0fff.json | 485 +- .../schneider-electric-puck-dimmer-1.json | 393 +- ...er-electric-puck-shutter-1-0x020c02ff.json | 570 +- ...schneider-electric-s520619-0x01003500.json | 815 +- ...r-electric-socket-outlet-1-0x020612ff.json | 522 +- ...r-electric-socket-outlet-2-0x020612ff.json | 522 +- .../data/devices/securifi-ltd-unk-model.json | 515 +- .../devices/sengled-e11-g13-0x00000009.json | 452 +- .../devices/sengled-e12-n14-0x00000004.json | 452 +- .../devices/sengled-e12-n1e-0x0000001e.json | 409 +- tests/data/devices/sengled-e1c-nb6.json | 245 +- .../devices/sengled-e1c-nb7-0x0000001a.json | 414 +- .../devices/sengled-e1f-n9g-0x00000020.json | 452 +- .../devices/sengled-e1g-g8e-0x0000000e.json | 409 +- .../devices/sengled-e21-n1ea-0x00000026.json | 568 +- .../sengled-z01-a19nae26-0x00000020.json | 454 +- .../devices/sercomm-corp-sz-esw01-au.json | 670 +- tests/data/devices/shelly-1pm.json | 516 +- tests/data/devices/shelly-2pm.json | 246 +- tests/data/devices/shelly-dimmer.json | 664 +- tests/data/devices/shelly-ecowitt-ws90.json | 667 +- tests/data/devices/shelly-mini1pm.json | 516 +- .../devices/shyugj-dimmer-switch-zb3-0.json | 340 +- ...ify-netherlands-b-v-lca001-0x01002802.json | 463 +- ...ify-netherlands-b-v-lca005-0x01002402.json | 463 +- ...ify-netherlands-b-v-lca007-0x01001f0a.json | 463 +- ...ify-netherlands-b-v-lcb001-0x01002800.json | 463 +- ...ify-netherlands-b-v-lcb002-0x01001f0a.json | 463 +- ...ify-netherlands-b-v-lce001-0x01002404.json | 463 +- ...ify-netherlands-b-v-lcg006-0x01002502.json | 463 +- ...ify-netherlands-b-v-lcx004-0x01001802.json | 463 +- ...ify-netherlands-b-v-lta010-0x01002402.json | 452 +- ...ify-netherlands-b-v-ltb003-0x01001f0a.json | 452 +- ...ify-netherlands-b-v-lwa003-0x01001f0a.json | 397 +- ...ify-netherlands-b-v-rdm001-0x0000041a.json | 256 +- ...ify-netherlands-b-v-rdm002-0x02003b13.json | 256 +- ...ify-netherlands-b-v-rdm002-0x02003b19.json | 256 +- ...ify-netherlands-b-v-rdm004-0x02004d23.json | 256 +- .../signify-netherlands-b-v-rdm004.json | 256 +- ...ify-netherlands-b-v-rdm005-0x02005301.json | 256 +- ...ify-netherlands-b-v-rwl022-0x02002d02.json | 256 +- ...ify-netherlands-b-v-rwl022-0x02004d27.json | 256 +- ...ify-netherlands-b-v-sml003-0x02003506.json | 554 +- ...ify-netherlands-b-v-sml004-0x02003506.json | 554 +- .../devices/sinope-technologies-va4220zb.json | 594 +- .../devices/smarthjemmet-dk-quad-zig-sw.json | 148 +- .../devices/smarthjemmet-dk-quad-zig-sw2.json | 373 +- .../smartthings-multiv4-0x0000001b.json | 438 +- .../devices/smartthings-tagv4-0x00000019.json | 346 +- .../smartwings-wm25-l-z-0x00000002.json | 412 +- .../somfy-situo-4-zigbee-0x00011a00.json | 435 +- ...onesse-28-wf-li-ion-roller-0x4100e158.json | 411 +- .../somfy-ysia-5-hp-zigbee-0x00e00041.json | 480 +- tests/data/devices/sonoff-01minizb.json | 285 +- tests/data/devices/sonoff-basiczbr3.json | 228 +- tests/data/devices/sonoff-dongle-e-r.json | 590 +- .../devices/sonoff-mini-zbdim-0x00001005.json | 506 +- .../devices/sonoff-mini-zbrbs-0x00001005.json | 550 +- .../devices/sonoff-s26r2zb-0x00002000.json | 245 +- tests/data/devices/sonoff-s31-lite-zb.json | 188 +- .../devices/sonoff-s60zbtpg-0x00001002.json | 520 +- .../devices/sonoff-snzb-01m-0x00001005.json | 255 +- .../devices/sonoff-snzb-02d-0x00002300.json | 720 +- .../devices/sonoff-snzb-04pr2-0x00001001.json | 300 +- .../devices/sonoff-snzb-05p-0x00001002.json | 301 +- .../devices/sonoff-snzb-06p-0x00001006.json | 402 +- tests/data/devices/sonoff-swv-0x00001002.json | 491 +- tests/data/devices/sonoff-swv-0x00001003.json | 491 +- .../data/devices/sonoff-trvzb-0x00001201.json | 1335 +-- .../data/devices/sonoff-trvzb-0x00001400.json | 1335 +-- .../data/devices/sonoff-trvzb-0x00001401.json | 1335 +-- .../devices/sonoff-zbmicro-0x00001005.json | 302 +- .../devices/sonoff-zbminil2-0x0000100e.json | 355 +- .../devices/sonoff-zbminir2-0x00001004.json | 569 +- .../devices/sunricher-hk-dim-0x00000036.json | 746 +- .../sunricher-hk-ln-dim-a-0x00000039.json | 503 +- .../sunricher-on-off-2ch-0x00000004.json | 754 +- .../devices/texasinstruments-ti-router.json | 198 +- ...-ecosmart-zbt-a19-cct-bulb-0x21036500.json | 558 +- ...ird-reality-inc-3rap0149bz-0x0000000e.json | 350 +- .../devices/third-reality-inc-3rds17bz.json | 303 +- ...third-reality-inc-3rms16bz-0x0000004f.json | 303 +- ...hird-reality-inc-3rsb015bz-0x00000048.json | 494 +- .../devices/third-reality-inc-3rsb22bz.json | 260 +- ...hird-reality-inc-3rsm0147z-0x0000001f.json | 405 +- ...rd-reality-inc-3rsnl02043z-0x0000003c.json | 661 +- ...hird-reality-inc-3rsp019bz-0x1001301e.json | 302 +- ...rd-reality-inc-3rsp02028bz-0x10013058.json | 718 +- ...ird-reality-inc-3rsp02064z-0x0000002f.json | 823 +- .../devices/third-reality-inc-3rss007z.json | 245 +- ...third-reality-inc-3rss009z-0x0000001d.json | 354 +- ...hird-reality-inc-3rths24bz-0x00000015.json | 405 +- ...ird-reality-inc-3rvs01031z-0x00000028.json | 250 +- ...third-reality-inc-3rws18bz-0x00000038.json | 403 +- ...third-reality-inc-3rws18bz-0x00000049.json | 403 +- ...st-international-b-v-zll-colortempera.json | 387 +- .../data/devices/tubeszb-tubeszb-router.json | 145 +- .../data/devices/tuyatec-gqhxixyk-rh3052.json | 293 +- .../data/devices/tuyatec-r9hgssol-rh3001.json | 244 +- .../data/devices/tuyatec-rkqiqvcs-rh3001.json | 244 +- .../data/devices/tuyatec-yg5dcbfu-rh3052.json | 293 +- .../data/devices/tyst11-czk78ptr-zk78ptr.json | 607 +- .../tyst11-i5j6ifxj-5j6ifxj-0x00000049.json | 247 +- .../data/devices/tyzb01-1xktopx6-ts0041a.json | 248 +- .../data/devices/tyzb01-8scntis1-ts0216.json | 536 +- .../data/devices/tyzb01-mtunwanm-ts011f.json | 194 +- .../tyzb01-o63ssaah-ts0207-0x00000043.json | 301 +- .../tyzb01-qm6djpta-ts0215-0x00000046.json | 350 +- .../tyzb01-rifa0wlb-ts0011-0x00000041.json | 234 +- .../data/devices/tyzb01-vkwryfdr-ts0115.json | 366 +- .../data/devices/tyzb01-zanh6v1o-ts0121.json | 460 +- .../data/devices/tz2000-k4yr34vv-sm0301.json | 415 +- .../tz3000-09gto2zn-ts0013-0x00000050.json | 451 +- .../data/devices/tz3000-09gto2zn-ts0013.json | 451 +- .../tz3000-1dd0d5yi-ts130f-0x00000047.json | 248 +- .../data/devices/tz3000-1dd0d5yi-ts130f.json | 205 +- .../tz3000-1o6x1bl0-ts0201-0x00000041.json | 303 +- .../data/devices/tz3000-2putqrmw-ts011f.json | 513 +- .../data/devices/tz3000-2xlvlnez-ts011f.json | 444 +- .../data/devices/tz3000-303avxxt-ts011f.json | 625 +- .../tz3000-3ias4w4o-ts011f-0x0000004e.json | 460 +- .../data/devices/tz3000-5e235jpa-ts0042.json | 344 +- .../data/devices/tz3000-5fkufhn1-ts0502a.json | 297 +- .../data/devices/tz3000-5ity3zyu-ts0121.json | 460 +- .../data/devices/tz3000-6l1pjfqe-ts011f.json | 460 +- .../tz3000-8nkb7mof-ts0121-0x00000042.json | 625 +- .../data/devices/tz3000-8nyaanzb-ts011f.json | 288 +- .../data/devices/tz3000-8yhypbo7-ts0203.json | 346 +- .../data/devices/tz3000-a37eix1s-ts0004.json | 534 +- .../data/devices/tz3000-a9buwvb7-ts0726.json | 460 +- .../data/devices/tz3000-adkvzooy-ts0042.json | 343 +- .../data/devices/tz3000-aghwaexm-ts0001.json | 228 +- .../tz3000-bgsigers-ts0201-0x00000040.json | 350 +- .../tz3000-bguser20-ts0201-0x00000045.json | 350 +- .../data/devices/tz3000-bjawzodf-ty0201.json | 304 +- .../tz3000-cehuw1lw-ts011f-0x0000004d.json | 460 +- .../data/devices/tz3000-cfnprab5-ts011f.json | 560 +- .../tz3000-cicwjqth-ts011f-0x74013001.json | 404 +- .../data/devices/tz3000-dbou1ap4-ts0505a.json | 297 +- .../data/devices/tz3000-dowj6gyi-ts0201.json | 350 +- .../tz3000-drc9tuqb-ts0001-0x00000047.json | 395 +- .../data/devices/tz3000-e2uieqop-ts0001.json | 285 +- .../tz3000-eamtuojw-ts0201-0x00000041.json | 299 +- .../data/devices/tz3000-empogkya-ts0003.json | 451 +- .../tz3000-f2bw0b6k-ts0201-0x00000046.json | 350 +- .../tz3000-famkxci2-ts0043-0x00000044.json | 313 +- .../data/devices/tz3000-fdxihpp7-ts0001.json | 441 +- .../tz3000-gbm10jnj-ts0043-0x00000042.json | 442 +- .../tz3000-gjpgagal-ts0049-0x00000049.json | 299 +- .../data/devices/tz3000-gjrubzje-ts0001.json | 553 +- .../data/devices/tz3000-gwkzibhs-ts004f.json | 256 +- .../tz3000-hafsqare-ts0011-0x00000050.json | 245 +- .../tz3000-idhkkbqj-ts0012-0x00000041.json | 317 +- .../tz3000-isw9u95y-ts0201-0x00000040.json | 442 +- .../tz3000-itnrsufe-ts0201-0x00000042.json | 350 +- .../tz3000-j1xl73iw-ts130f-0x00000046.json | 259 +- .../tz3000-ja5osu5g-ts004f-0x00000041.json | 256 +- .../data/devices/tz3000-kjfzuycl-ts004f.json | 256 +- .../data/devices/tz3000-kmsbwdol-ts130f.json | 306 +- .../tz3000-kqvb5akv-ts0001-0x0000004a.json | 500 +- .../data/devices/tz3000-lepzuhto-ts011f.json | 513 +- .../data/devices/tz3000-lf56vpxj-ts0202.json | 345 +- .../data/devices/tz3000-llfaquvp-ts0012.json | 368 +- .../data/devices/tz3000-lotmgthb-ts011f.json | 513 +- .../data/devices/tz3000-lrgccsxm-ts0013.json | 451 +- .../data/devices/tz3000-ltiqubue-ts130f.json | 246 +- .../data/devices/tz3000-mg4dy6z6-ts0202.json | 346 +- .../tz3000-mgusv51k-ts0052-0x00000044.json | 340 +- .../tz3000-mkhkxx1p-ts0001-0x00000048.json | 500 +- .../tz3000-mugyhz0q-ts0207-0x00000041.json | 301 +- .../tz3000-mw1pqqqt-ts0003-0x0000004a.json | 776 +- .../data/devices/tz3000-npzfdcof-ts0001.json | 500 +- .../tz3000-o1jzcxou-ts011f-0x00000043.json | 245 +- .../tz3000-o4mkahkc-ts0202-0x00000046.json | 346 +- .../data/devices/tz3000-okaz9tjs-ts011f.json | 460 +- .../tz3000-p26flek3-ts0001-0x00000053.json | 395 +- .../tz3000-pl5v1yyy-ts011f-0x00000050.json | 632 +- .../data/devices/tz3000-qa8s8vca-ts130f.json | 252 +- .../tz3000-qdnrzbd3-ts0202-0x00000046.json | 346 +- .../data/devices/tz3000-qqdbccb3-ts130f.json | 303 +- .../data/devices/tz3000-r6buo8ba-ts011f.json | 458 +- .../data/devices/tz3000-rbl8c85w-ts0012.json | 368 +- .../tz3000-sgb0xhwn-ts011f-0x00000050.json | 668 +- .../data/devices/tz3000-snq47izk-ts0013.json | 451 +- .../data/devices/tz3000-tgddllx4-ts0001.json | 442 +- .../tz3000-tqlv4ug4-ts0001-0x00000048.json | 610 +- .../tz3000-typdpbpg-ts011f-0x10013607.json | 682 +- .../tz3000-u3oupgdy-ts0004-0x00000050.json | 644 +- .../tz3000-u4kojtqz-ts0002-0x10013607.json | 539 +- .../tz3000-uwkja6z1-ts011f-0x00000045.json | 718 +- .../tz3000-vw8pawxa-ts130f-0x00000048.json | 205 +- .../data/devices/tz3000-w0qqde0g-ts011f.json | 566 +- .../tz3000-wcgyhnp3-ts0222-0x00000045.json | 442 +- .../data/devices/tz3000-wkai4ga5-ts0044.json | 536 +- .../data/devices/tz3000-wkr3jqmr-ts0004.json | 699 +- .../tz3000-wn65ixz9-ts0001-0x00000051.json | 395 +- .../data/devices/tz3000-xa9g7rxs-ts1002.json | 256 +- .../data/devices/tz3000-xabckq1v-ts004f.json | 385 +- .../data/devices/tz3000-xkap8wtb-ts000f.json | 610 +- .../data/devices/tz3000-xr3htd96-ts0201.json | 350 +- .../data/devices/tz3000-xxacnuab-ts0004.json | 589 +- .../tz3000-yj6k7vfo-ts0041-0x00000044.json | 205 +- .../data/devices/tz3000-ynmowqk2-ts011f.json | 460 +- .../devices/tz3000-zl1kmjqx-0x10013001.json | 352 +- .../data/devices/tz3000-zl1kmjqx-ty0201.json | 305 +- .../data/devices/tz3000-zv6x8bt2-ts011f.json | 625 +- .../tz3000-zw7yf6yk-ts0001-0x00000048.json | 500 +- .../tz3002-vaq2bfcu-ts0726-0x00000051.json | 460 +- .../tz3002-zjuvw9zf-ts0726-0x00000055.json | 288 +- .../tz3040-bb6xaihh-ts0202-0x00000048.json | 348 +- .../tz3210-09hzmirw-ts0502b-0x0000005b.json | 342 +- .../data/devices/tz3210-0jxeoadc-ts0049.json | 349 +- .../tz3210-3mpwqzuu-ts110e-0x00000040.json | 372 +- .../tz3210-3ulg9kpo-ts0021-0x00000042.json | 250 +- .../data/devices/tz3210-3ulg9kpo-ts0021.json | 250 +- .../data/devices/tz3210-5rta89nj-ts0601.json | 301 +- .../tz3210-7vgttna6-ts0001-0x00000073.json | 194 +- .../tz3210-a04acm9s-ts0001-0x00000077.json | 194 +- .../data/devices/tz3210-bfwvfyx1-ts0505b.json | 460 +- .../tz3210-comkuwws-ts0502b-0x00000065.json | 289 +- .../tz3210-dwytrmda-ts130f-0x00000042.json | 205 +- .../tz3210-ehcanwyc-ts0502b-0x00000065.json | 289 +- .../data/devices/tz3210-ekjc2rzh-ts0225.json | 196 +- .../data/devices/tz3210-hxtfthp5-ts0505b.json | 350 +- .../tz3210-j4pdtz9v-ts0001-0x00000062.json | 571 +- .../tz3210-jaap6jeb-ts0505b-0x00000065.json | 297 +- .../tz3210-jtifm80b-ts0502b-0x00000065.json | 289 +- .../tz3210-k1msuvg6-ts110e-0x00000040.json | 287 +- .../tz3210-kjafhwd2-ts0210-0x00000044.json | 295 +- .../tz3210-klv2wul0-ts0505b-0x00000065.json | 297 +- .../tz3210-ncw88jfq-ts0201-0x00000083.json | 299 +- .../tz3210-qkj7rujp-ts0201-0x00000043.json | 299 +- .../tz3210-r5afgmkl-ts0505b-0x10013607.json | 619 +- .../tz3210-ru41azca-ts0049-0x00000040.json | 249 +- .../tz3210-sb8x2xci-ts0001-0x00000047.json | 245 +- .../data/devices/tz3210-sixywxvy-ts0505b.json | 297 +- .../tz3210-tgvtvdoc-ts0207-0x00000043.json | 485 +- .../tz3210-u1dreag7-ts0502b-0x00000065.json | 289 +- .../tz3210-ue9kyjnj-ts0502b-0x00000059.json | 342 +- .../data/devices/tz3210-umi6vbsz-ts0505b.json | 350 +- .../data/devices/tz3210-up3pngle-ts0205.json | 295 +- .../tz3210-wuhzzfqg-ts0202-0x000000a1.json | 499 +- .../tz3210-zdrhqmo0-ts0502b-0x00000064.json | 289 +- .../tz3218-7fiyo3kv-ts000f-0x00000051.json | 285 +- .../data/devices/tz3218-awarhusb-ts0225.json | 247 +- .../tz3218-t9ynfz4x-ts0225-0x00000045.json | 247 +- .../tz3218-ya5d6wth-ts000f-0x00000064.json | 534 +- ...90-7v1k4vufotpowp9z-ts1201-0x00000043.json | 245 +- .../tz3290-7v1k4vufotpowp9z-ts1201.json | 245 +- ...90-ot6ewjvmejq5ekhl-ts1201-0x00000043.json | 299 +- .../tz6210-duv6fhwt-ts0601-0x00000042.json | 500 +- .../tzb210-417ikxay-ts0505b-0x00000040.json | 350 +- .../tzb210-lmqquxus-ts0502b-0x00000040.json | 342 +- .../tzb210-rawkvnnm-ts0502b-0x00000040.json | 342 +- .../data/devices/tze200-1n2zev06-ts0601.json | 447 +- .../data/devices/tze200-2aaelwxk-ts0225.json | 1095 +- .../data/devices/tze200-2ekuz3dz-ts0601.json | 151 +- .../data/devices/tze200-2gtsuokt-ts0601.json | 151 +- .../tze200-2se8efxh-ts0601-0x00000048.json | 300 +- .../tze200-3t91nb6k-ts0601-0x00000046.json | 151 +- .../tze200-3towulqd-ts0601-0x00000046.json | 508 +- .../data/devices/tze200-3ylew7b4-ts0601.json | 151 +- .../tze200-4utwozi2-ts0601-0x00000043.json | 564 +- .../tze200-4vobcgd3-ts0601-0x00000053.json | 151 +- .../data/devices/tze200-4wxtg5y9-ts0601.json | 151 +- .../tze200-579lguh2-ts0601-0x00000044.json | 151 +- .../data/devices/tze200-68nvbio9-ts0601.json | 205 +- .../data/devices/tze200-6rdj8dzm-ts0601.json | 564 +- .../tze200-7bztmfm1-ts0601-0x00000046.json | 433 +- .../tze200-7iqgciln-ts0601-0x00000041.json | 151 +- .../tze200-7ytb3h8u-ts0601-0x00000048.json | 714 +- .../tze200-81isopgh-ts0601-0x00000048.json | 502 +- .../data/devices/tze200-86nbew0j-ts0601.json | 151 +- .../tze200-8whfphjv-ts0601-0x00000048.json | 151 +- .../tze200-9caxna4s-ts0301-0x00000049.json | 357 +- .../tze200-9xfjixap-ts0601-0x00000043.json | 564 +- .../data/devices/tze200-a0syesf5-ts0601.json | 236 +- .../data/devices/tze200-a1dia7ml-ts0601.json | 151 +- .../tze200-a7sghmms-ts0601-0x00000048.json | 714 +- .../data/devices/tze200-a7sghmms-ts0601.json | 714 +- .../tze200-abatw3kj-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-agumlajc-ts0601.json | 151 +- .../data/devices/tze200-akjefhj5-ts0601.json | 151 +- .../data/devices/tze200-aoclfnxz-ts0601.json | 454 +- .../tze200-b6wax7g0-ts0601-0x00000043.json | 605 +- .../data/devices/tze200-bcusnqt8-ts0601.json | 151 +- .../tze200-bkkmqmyo-ts0601-0x00000041.json | 461 +- .../data/devices/tze200-bvrlmajk-ts0601.json | 151 +- .../data/devices/tze200-byzdayie-ts0601.json | 364 +- .../tze200-c88teujp-ts0601-0x00000055.json | 776 +- .../tze200-cirvgep4-ts0601-0x00000048.json | 353 +- .../data/devices/tze200-cpbo62rn-ts0601.json | 252 +- .../data/devices/tze200-cpmgn2cf-ts0601.json | 1041 +- .../tze200-crq3r3la-ck-bl702-mws-01-7016.json | 826 +- .../data/devices/tze200-dwcarsat-ts0601.json | 433 +- .../data/devices/tze200-e5hpkc6d-ts0601.json | 151 +- .../data/devices/tze200-eevqq1uv-ts0601.json | 151 +- .../data/devices/tze200-ewxhg6o9-ts0601.json | 364 +- .../data/devices/tze200-f1pvdgoh-ts0601.json | 151 +- .../data/devices/tze200-fvldku9h-ts0601.json | 151 +- .../tze200-g9a3awaj-ts0601-0x00000048.json | 348 +- .../data/devices/tze200-gaj531w3-ts0601.json | 205 +- .../tze200-gjldowol-ts0601-0x00000050.json | 459 +- .../data/devices/tze200-gkfbdvyx-ts0601.json | 553 +- .../data/devices/tze200-gubdgai2-ts0601.json | 252 +- .../tze200-guvc7pdy-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-h4cgnbzg-ts0601.json | 625 +- .../tze200-hhrtiq0x-ts0601-0x00000055.json | 556 +- .../data/devices/tze200-hl0ss9oa-ts0225.json | 237 +- .../tze200-hr0tdd47-ts0601-0x00000048.json | 400 +- .../data/devices/tze200-iba1ckek-ts0601.json | 244 +- .../data/devices/tze200-icka1clh-ts0601.json | 205 +- .../data/devices/tze200-ijey4q29-ts0601.json | 291 +- .../data/devices/tze200-iuk8kupi-ts0601.json | 151 +- .../tze200-js3mgbjb-ts0601-0x00000044.json | 151 +- .../data/devices/tze200-jva8ink8-ts0601.json | 604 +- .../tze200-jwsjbxjs-ts0601-0x00000046.json | 566 +- .../data/devices/tze200-kb5noeto-ts0601.json | 707 +- .../data/devices/tze200-khozatfx-ts0601.json | 151 +- .../data/devices/tze200-kyfqmmyl-ts0601.json | 400 +- .../data/devices/tze200-la2c2uo9-ts0601.json | 236 +- .../data/devices/tze200-laqjm8qd-ts0601.json | 151 +- .../data/devices/tze200-libht6ua-ts0601.json | 151 +- .../tze200-locansqn-ts0601-0x00000048.json | 871 +- .../data/devices/tze200-m9skfctm-ts0601.json | 196 +- .../tze200-mgxy2d9f-ts0601-0x00000043.json | 151 +- .../data/devices/tze200-mja3fuja-ts0601.json | 386 +- .../tze200-moycceze-ts0601-0x00000043.json | 151 +- .../tze200-mudxchsu-ts0601-0x00000045.json | 911 +- .../tze200-myd45weu-ts0601-0x00000048.json | 300 +- .../data/devices/tze200-mz5y07w2-ts0601.json | 654 +- .../data/devices/tze200-mzik0ov2-ts0601.json | 151 +- .../tze200-nklqjk62-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-nklqjk62-ts0601.json | 151 +- .../data/devices/tze200-nojsjtj2-ts0601.json | 244 +- .../data/devices/tze200-npj9bug3-ts0601.json | 293 +- .../tze200-nqaqq4cf-ts0601-0x00000044.json | 151 +- .../data/devices/tze200-ntcy3xu1-ts0601.json | 296 +- .../data/devices/tze200-ny94onlb-ts0601.json | 1159 ++- .../data/devices/tze200-nyvavzbj-ts0601.json | 151 +- .../data/devices/tze200-pay2byax-ts0601.json | 293 +- .../tze200-pl31aqf5-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-pw7mji0l-ts0601.json | 252 +- .../data/devices/tze200-qhlxve78-ts0601.json | 151 +- .../data/devices/tze200-qrztc3ev-ts0601.json | 871 +- .../tze200-qyflbnbj-ts0601-0x00000046.json | 300 +- .../tze200-r32ctezx-ts0601-0x00000046.json | 236 +- .../tze200-r5ksy7qo-ts0601-0x00000043.json | 151 +- .../data/devices/tze200-rccxox8p-ts0601.json | 196 +- .../data/devices/tze200-rk1wojce-ts0601.json | 151 +- .../data/devices/tze200-rks0sgb7-ts0601.json | 151 +- .../tze200-rmymn92d-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-rtrmfadk-ts0601.json | 151 +- .../data/devices/tze200-rxq4iti9-ts0601.json | 670 +- .../data/devices/tze200-s6hzw8g2-ts0601.json | 151 +- .../tze200-sur6q7ko-ts0601-0x00000045.json | 995 +- .../data/devices/tze200-t1blo2bj-ts0601.json | 442 +- .../data/devices/tze200-t6gq6nju-ts0601.json | 151 +- .../data/devices/tze200-udank5zs-ts0601.json | 151 +- .../tze200-uf1qujxj-ts0601-0x00000048.json | 151 +- .../data/devices/tze200-v1jqz5cy-ts0601.json | 151 +- .../data/devices/tze200-v9hkz2yn-ts0601.json | 790 +- .../data/devices/tze200-vdiuwbkq-ts0601.json | 205 +- .../data/devices/tze200-viy9ihs7-ts0601.json | 841 +- .../data/devices/tze200-vuqzj1ej-ts0601.json | 385 +- .../tze200-vvmbj46n-ts0601-0x00000048.json | 871 +- .../tze200-wdfurkoa-ts0601-0x00000041.json | 151 +- .../tze200-wfxuhoea-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-wktrysab-ts0601.json | 815 +- .../data/devices/tze200-wqashyqo-ts0601.json | 293 +- .../data/devices/tze200-xu4a5rhj-ts0601.json | 151 +- .../data/devices/tze200-ya4ft0w4-ts0601.json | 553 +- .../tze200-yia0p3tr-ts0601-0x00000046.json | 151 +- .../data/devices/tze200-yjjdcqsq-ts0601.json | 353 +- .../data/devices/tze200-yojqa8xn-ts0601.json | 547 +- .../data/devices/tze200-yvx5lh6k-ts0601.json | 245 +- .../tze200-yw7cahqs-ts0601-0x00000055.json | 776 +- .../data/devices/tze200-ztvwu4nk-ts0601.json | 151 +- .../data/devices/tze204-1fuxihti-ts0601.json | 252 +- .../tze204-1v1dxkck-ts0601-0x0000004a.json | 406 +- .../tze204-1youk3hj-ts0601-0x0000004a.json | 765 +- .../tze204-4fblxpma-ts0601-0x00000049.json | 204 +- .../tze204-58of2pfn-ts0601-0x0000004a.json | 483 +- .../tze204-5slehgeo-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-5toc8efa-ts0601.json | 151 +- .../data/devices/tze204-7ytb3h8u-ts0601.json | 714 +- .../tze204-81yrt3lo-ts0601-0x0000004a.json | 1348 +-- .../data/devices/tze204-9yapgbuv-ts0601.json | 353 +- .../tze204-a2jcoyuk-ts0601-0x0000004a.json | 151 +- .../tze204-ai4rqhky-ts0601-0x00000049.json | 151 +- .../tze204-aoclfnxz-ts0601-0x0000004a.json | 151 +- .../tze204-b8vxct9l-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-bkkmqmyo-ts0601.json | 471 +- .../data/devices/tze204-bxoo2swd-ts0601.json | 321 +- .../tze204-c2fmom5z-ts0601-0x0000004a.json | 433 +- .../data/devices/tze204-chbyv06x-ts0601.json | 547 +- .../tze204-cirvgep4-ts0601-0x00000049.json | 353 +- .../data/devices/tze204-cjbofhxw-ts0601.json | 204 +- .../tze204-d6i25bwg-ts0601-0x0000004a.json | 245 +- .../data/devices/tze204-dqolcpcp-ts0601.json | 151 +- .../data/devices/tze204-dtzziy1e-ts0601.json | 1036 +- .../tze204-dwcarsat-ts0601-0x0000004a.json | 433 +- .../tze204-eekpf0ft-ts0601-0x0000004a.json | 151 +- .../tze204-ex3rcdha-ts0601-0x0000004a.json | 879 +- .../tze204-fhvdgeuh-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-g2ki0ejr-ts0601.json | 151 +- .../tze204-goecjd1t-ts0601-0x0000004a.json | 151 +- .../tze204-gops3slb-ts0601-0x0000004a.json | 894 +- .../tze204-guvc7pdy-ts0601-0x0000004a.json | 205 +- .../data/devices/tze204-hlx9tnzb-ts0601.json | 236 +- .../tze204-iaeejhvf-ts0601-0x0000004a.json | 1348 +-- .../data/devices/tze204-ijxvkhd0-ts0601.json | 151 +- .../tze204-jrcfsaa3-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-k7mfgaen-ts0601.json | 493 +- .../data/devices/tze204-kobbcyum-ts0601.json | 151 +- .../data/devices/tze204-kyhbrfyl-ts0601.json | 502 +- .../data/devices/tze204-l8xiyymq-ts0601.json | 151 +- .../tze204-lb0fsvba-ts0601-0x0000004a.json | 151 +- .../tze204-lbbg34rj-ts0601-0x0000004a.json | 151 +- .../tze204-lpedvtvr-ts0601-0x0000004a.json | 407 +- .../tze204-lsanae15-ts0601-0x0000004a.json | 151 +- .../tze204-ltwbm23f-ts0601-0x0000004a.json | 1149 ++- .../tze204-ltwbm23f-ts0601-0x0000004e.json | 1149 ++- .../data/devices/tze204-lzriup1j-ts0601.json | 841 +- .../tze204-m64smti7-ts0601-0x0000004a.json | 151 +- .../tze204-m9dzckna-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-mpbki2zm-ts0601.json | 151 +- .../tze204-mtoaryre-ts0601-0x0000004a.json | 1036 +- .../data/devices/tze204-muvkrjr5-ts0601.json | 447 +- .../tze204-mwomyz5n-ts0601-0x0000004a.json | 151 +- .../tze204-nbkshs6k-ts0601-0x0000004a.json | 151 +- .../tze204-nklqjk62-ts0601-0x0000004a.json | 151 +- .../tze204-nlrfgpny-ts0601-0x00000049.json | 661 +- .../tze204-nqqylykc-ts0601-0x0000004a.json | 236 +- .../tze204-nvxorhcj-ts0601-0x0000004a.json | 151 +- .../tze204-ogx8u5z6-ts0601-0x0000004a.json | 564 +- .../data/devices/tze204-p3lqqy2r-ts0601.json | 964 +- .../tze204-pcdmj88b-ts0601-0x00000049.json | 151 +- .../data/devices/tze204-ptaqh9tk-ts0601.json | 234 +- .../tze204-pxbjch8m-ts0601-0x0000004a.json | 151 +- .../tze204-qasjif9e-ts0601-0x0000004a.json | 555 +- .../tze204-qtnjuoae-ts0601-0x00000049.json | 151 +- .../tze204-qvxrkeif-ts0601-0x0000004a.json | 331 +- .../tze204-qyr2m29i-ts0601-0x0000004a.json | 1149 ++- .../tze204-r32ctezx-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-rhblgy0z-ts0601.json | 151 +- .../tze204-rtrmfadk-ts0601-0x00000049.json | 768 +- .../data/devices/tze204-rtrmfadk-ts0601.json | 768 +- .../data/devices/tze204-sooucan5-ts0601.json | 604 +- .../data/devices/tze204-srmahpwl-ts0601.json | 151 +- .../data/devices/tze204-sxm7l9xa-ts0601.json | 555 +- .../tze204-tagezcph-ts0601-0x0000004a.json | 151 +- .../tze204-tdhnhhiy-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-ue3rzddr-ts0601.json | 151 +- .../data/devices/tze204-upagmta9-ts0601.json | 353 +- .../tze204-uxllnywp-ts0601-0x0000004a.json | 557 +- .../tze204-vjpaih9f-ts0601-0x0000004a.json | 151 +- .../data/devices/tze204-vmcgja59-ts0601.json | 151 +- .../tze204-w1wwxoja-ts0601-0x0000004a.json | 151 +- .../tze204-wbhaespm-ts0601-0x0000004a.json | 151 +- .../tze204-x8fp01wi-ts0601-0x0000004a.json | 151 +- .../tze204-x9usygq1-ts0601-0x0000004a.json | 151 +- .../tze204-xalsoe3m-ts0601-0x0000004a.json | 662 +- .../tze204-xlppj4f5-ts0601-0x0000004a.json | 355 +- .../tze204-xnbkhhdr-ts0601-0x0000004a.json | 841 +- .../tze204-xu4a5rhj-ts0601-0x0000004a.json | 151 +- .../tze204-ya4ft0w4-ts0601-0x0000004a.json | 610 +- .../data/devices/tze204-yjjdcqsq-ts0601.json | 353 +- .../tze204-yvx5lh6k-ts0601-0x0000004a.json | 433 +- .../data/devices/tze204-zenj4lxv-ts0601.json | 321 +- .../tze204-ztqnh5cg-ts0601-0x0000004a.json | 555 +- .../data/devices/tze204-zxkwaztm-ts0601.json | 301 +- .../tze20c-xbexmf8h-ts130f-0x00000040.json | 151 +- .../tze20c-zka46xbw-ts0601-0x00000051.json | 290 +- .../data/devices/tze284-0zaf1cr8-ts0601.json | 296 +- .../tze284-2gi1hy8s-ts0601-0x00000050.json | 151 +- .../tze284-3mzb0sdz-ts0601-0x00000050.json | 585 +- .../data/devices/tze284-432zhuwe-ts0601.json | 151 +- .../data/devices/tze284-6fopvb6v-ts0601.json | 151 +- .../tze284-6hrnp30w-ts0601-0x00000050.json | 151 +- .../data/devices/tze284-6ocnqlhn-ts0601.json | 151 +- .../data/devices/tze284-6uyu20xu-ts0601.json | 151 +- .../tze284-6ycgarab-ts0601-0x00000050.json | 151 +- .../tze284-78ioiaml-ts0601-0x0000004a.json | 151 +- .../tze284-7gy9mqca-ts0601-0x0000004e.json | 151 +- .../tze284-7zazvlyn-ts0601-0x00000045.json | 151 +- .../tze284-81yrt3lo-ts0601-0x0000004e.json | 151 +- .../tze284-8b9zpaav-ts0601-0x0000004e.json | 151 +- .../tze284-8se38w3c-ts0601-0x0000004d.json | 151 +- .../tze284-a2xewxoo-ts0601-0x0000004e.json | 151 +- .../tze284-aao3yzhs-ts0601-0x0000004d.json | 300 +- .../data/devices/tze284-aao3yzhs-ts0601.json | 300 +- .../tze284-c6wv4xyo-ts0601-0x0000004d.json | 564 +- .../tze284-cf4b5ktf-ts0601-0x0000004e.json | 151 +- .../data/devices/tze284-cjbofhxw-ts0601.json | 151 +- .../data/devices/tze284-dikb3dp6-ts0601.json | 1369 +-- .../tze284-dmckrsxg-ts0601-0x0000004e.json | 151 +- .../tze284-f5efvtbv-ts0601-0x0000004e.json | 151 +- .../data/devices/tze284-fhvpaltk-ts0601.json | 610 +- .../data/devices/tze284-fzo2pocs-ts0601.json | 151 +- .../tze284-g2e6cpnw-ts0601-0x0000004d.json | 151 +- .../tze284-hodyryli-ts0601-0x00000050.json | 151 +- .../tze284-iadro9bf-ts0601-0x0000004e.json | 151 +- .../tze284-idvyees9-ts0601-0x0000004e.json | 151 +- .../tze284-kyyu8rbj-ts0601-0x0000004d.json | 512 +- .../tze284-l8xiyymq-ts0601-0x0000004a.json | 151 +- .../tze284-lq0ffndf-ts0601-0x00000046.json | 151 +- .../tze284-ltwbm23f-ts0601-0x0000004d.json | 151 +- .../tze284-myd45weu-ts0601-0x0000004d.json | 300 +- .../data/devices/tze284-ne4pikwm-ts0601.json | 729 +- .../tze284-nklqjk62-ts0601-0x0000004e.json | 151 +- .../tze284-nnhwcvbk-ts0601-0x0000004d.json | 151 +- .../tze284-o3x45p96-ts0601-0x0000004d.json | 564 +- .../tze284-o9ofysmo-ts0601-0x00000050.json | 151 +- .../tze284-ogx8u5z6-ts0601-0x0000004d.json | 564 +- .../tze284-oitavov2-ts0601-0x00000050.json | 300 +- .../tze284-pcdmj88b-ts0601-0x0000004d.json | 151 +- .../tze284-qyflbnbj-ts0601-0x0000004d.json | 300 +- .../tze284-rjxqso4a-ts0601-0x0000004d.json | 400 +- .../tze284-rlytpmij-ts0601-0x00000051.json | 151 +- .../data/devices/tze284-rqcuwlsa-ts0601.json | 347 +- .../tze284-rvnbnvw8-ts0601-0x0000004e.json | 151 +- .../tze284-sgabhwa6-ts0601-0x0000004d.json | 300 +- .../tze284-upagmta9-ts0601-0x0000004d.json | 353 +- .../tze284-vawy74yh-ts0601-0x0000004d.json | 151 +- .../tze284-vuwtqx0t-ts0601-0x00000050.json | 151 +- .../tze284-wtikaxzs-ts0601-0x0000004d.json | 151 +- .../tze284-xnbkhhdr-ts0601-0x0000004d.json | 894 +- .../tze284-zjhoqbrd-ts0601-0x0000004d.json | 151 +- .../tze284-zm8zpwas-ts0601-0x00000050.json | 151 +- .../tze284-znvwzxkq-ts0601-0x0000004a.json | 151 +- .../tze284-zp8xakad-ts0601-0x0000004d.json | 151 +- ...28c1000000-alh14edn-ts0601-0x00000048.json | 256 +- .../data/devices/tze600-iypcp4py-ts0105.json | 202 +- .../tze608-c75zqghm-ts0603-0x00000040.json | 202 +- .../devices/ubisys-s1-5501-0x02600460.json | 955 +- .../uiot-uiot-windowcovring2-0402.json | 505 +- ...tronics-inc-urc4460bc0-x-r-0x20160921.json | 350 +- .../devices/unk-manufacturer-unk-model.json | 248 +- tests/data/devices/visonic-mct-340-sma.json | 350 +- tests/data/devices/xiaomi-lywsd03mmc.json | 778 +- .../xiaoyan-terncy-sd01-0x0000001a.json | 255 +- tests/data/devices/xyzroe-diy-zintercom.json | 139 +- .../devices/yale-yrd256-tsdb-0x0105002b.json | 301 +- .../devices/yooksmart-d10110-0x12046780.json | 411 +- tests/data/devices/yunding-ford.json | 300 +- tests/data/devices/zbeacon-ts0001.json | 285 +- tests/data/devices/zbeacon-ts0505.json | 988 +- ...ux-andigny-alcantara2-d1-00p1-02z1-00.json | 532 +- .../zemismart-spm02-3z3-0x0000000e.json | 1197 +-- .../devices/zen-within-zen-01-0x0000021f.json | 683 +- 848 files changed, 196840 insertions(+), 161068 deletions(-) diff --git a/tests/data/devices/adeo-sin-4-fp-21-equ.json b/tests/data/devices/adeo-sin-4-fp-21-equ.json index ecfb7ca0c..81c8e8c2f 100644 --- a/tests/data/devices/adeo-sin-4-fp-21-equ.json +++ b/tests/data/devices/adeo-sin-4-fp-21-equ.json @@ -280,250 +280,297 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } }, { - "fallback_name": "Pilot wire mode", - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-pilot_wire_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "pilot_wire_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "NodOnPilotWireMode", - "options": [ - "Off", - "Comfort", - "Eco", - "FrostProtection", - "ComfortMinus1", - "ComfortMinus2" - ] + "info_object": { + "fallback_name": "Pilot wire mode", + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-pilot_wire_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "pilot_wire_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "NodOnPilotWireMode", + "options": [ + "Off", + "Comfort", + "Eco", + "FrostProtection", + "ComfortMinus1", + "ComfortMinus2" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 1028, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1028, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 39.737, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 39.737, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:66:cc:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:66:cc:2e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:66:cc:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/adeo-zb-watersensor-d0001-0x21120002.json b/tests/data/devices/adeo-zb-watersensor-d0001-0x21120002.json index 72637c660..b25eb645b 100644 --- a/tests/data/devices/adeo-zb-watersensor-d0001-0x21120002.json +++ b/tests/data/devices/adeo-zb-watersensor-d0001-0x21120002.json @@ -169,161 +169,189 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x21120002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:20:a5:2a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:20:a5:2a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x21120002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/adurosmart-eria-ad-rgbw3001-0x00000001.json b/tests/data/devices/adurosmart-eria-ad-rgbw3001-0x00000001.json index c6aae06ac..b9bcbc9ca 100644 --- a/tests/data/devices/adurosmart-eria-ad-rgbw3001-0x00000001.json +++ b/tests/data/devices/adurosmart-eria-ad-rgbw3001-0x00000001.json @@ -316,341 +316,410 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.4669871061264973, - 0.3839932860303655 - ], - "color_temp": 397, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.4669871061264973, + 0.3839932860303655 + ], + "color_temp": 397, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 1 + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 1 + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 1 + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:42:9e:da-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:42:9e:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:42:9e:da-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:42:9e:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/adurosmart-eria-adurolight-csc.json b/tests/data/devices/adurosmart-eria-adurolight-csc.json index 6e3af57e6..d0673a595 100644 --- a/tests/data/devices/adurosmart-eria-adurolight-csc.json +++ b/tests/data/devices/adurosmart-eria-adurolight-csc.json @@ -256,130 +256,154 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 60.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 60.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": true, + "available": true + } } ] }, diff --git a/tests/data/devices/adurosmart-eria-vms-adurolight.json b/tests/data/devices/adurosmart-eria-vms-adurolight.json index 7f6209e18..69e1a1836 100644 --- a/tests/data/devices/adurosmart-eria-vms-adurolight.json +++ b/tests/data/devices/adurosmart-eria-vms-adurolight.json @@ -184,131 +184,155 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:07:5b:40:90-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:07:5b:40:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:07:5b:40:90-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:8d:00:07:5b:40:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:07:5b:40:90-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:07:5b:40:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:07:5b:40:90-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:07:5b:40:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:07:5b:40:90-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:07:5b:40:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:07:5b:40:90-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:07:5b:40:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:07:5b:40:90-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:07:5b:40:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:07:5b:40:90-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:07:5b:40:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:07:5b:40:90-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:07:5b:40:90-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:07:5b:40:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 90.0, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:8d:00:07:5b:40:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 90.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.9 + ] } ] }, diff --git a/tests/data/devices/aeotec-zga004.json b/tests/data/devices/aeotec-zga004.json index 16aa0fb32..5a3adbf94 100644 --- a/tests/data/devices/aeotec-zga004.json +++ b/tests/data/devices/aeotec-zga004.json @@ -552,286 +552,343 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-2-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shutter", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_position": null, - "current_tilt_position": 0, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 240 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-2-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shutter", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": null, + "current_tilt_position": 0, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 240 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.41, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 0.41 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-2-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": "Shutter", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-2-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Shutter" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-2-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-2-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/alab-alab-co2-1-1.json b/tests/data/devices/alab-alab-co2-1-1.json index bd652e7d3..da85a7702 100644 --- a/tests/data/devices/alab-alab-co2-1-1.json +++ b/tests/data/devices/alab-alab-co2-1-1.json @@ -194,146 +194,176 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20.1, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.1 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.92, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 35.92 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 812000000.0, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:a0:0e:81-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:a0:0e:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "CarbonDioxideConcentration", + "available": true, + "state": 812000000.0 + } } ] }, diff --git a/tests/data/devices/aqara-lumi-airrtc-aeu001-0x00000a1a.json b/tests/data/devices/aqara-lumi-airrtc-aeu001-0x00000a1a.json index e471c38a6..d773ad64f 100644 --- a/tests/data/devices/aqara-lumi-airrtc-aeu001-0x00000a1a.json +++ b/tests/data/devices/aqara-lumi-airrtc-aeu001-0x00000a1a.json @@ -729,411 +729,495 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 23.3, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "off", - "hvac_mode": "off", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 35.0, - "min_temp": 5.0, - "supported_features": 387, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat_cool", - "cool", - "heat" - ], - "sys_mode": "[0]/off", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2600, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 35.0, + "min_temp": 5.0, + "supported_features": 387, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat_cool", + "cool", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 23.3, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "off", + "hvac_mode": "off", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[0]/off", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2600, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "ThermostatLocalTempCalibration", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.0, - "mode": "box", - "native_max_value": 1.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 1.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 35.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 0.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 0.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 184, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 184 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -54, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -54 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -0.01, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": -0.01 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 51.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 51.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "off", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "off" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:24:74:6a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:24:74:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000a1a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:24:74:6a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:24:74:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000a1a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-airrtc-aeu005-0x00001227.json b/tests/data/devices/aqara-lumi-airrtc-aeu005-0x00001227.json index 8f674b2cc..d25acc4f9 100644 --- a/tests/data/devices/aqara-lumi-airrtc-aeu005-0x00001227.json +++ b/tests/data/devices/aqara-lumi-airrtc-aeu005-0x00001227.json @@ -431,283 +431,343 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 18.0, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": 20.0, - "hvac_action": "idle", - "hvac_mode": "heat_cool", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 32.0, - "min_temp": 5.0, - "supported_features": 387, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat_cool", - "cool", - "heat" - ], - "sys_mode": "[1]/heat_cool", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 32.0, + "min_temp": 5.0, + "supported_features": 387, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat_cool", + "cool", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 18.0, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": 20.0, + "hvac_action": "idle", + "hvac_mode": "heat_cool", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[1]/heat_cool", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "ThermostatLocalTempCalibration", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": 7.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": 7.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 168, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 168 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -69, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -69 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001227", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:b1:ca:04-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:b1:ca:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001227", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-curtain-acn04.json b/tests/data/devices/aqara-lumi-curtain-acn04.json index 5d022a2ff..b05426a9a 100644 --- a/tests/data/devices/aqara-lumi-curtain-acn04.json +++ b/tests/data/devices/aqara-lumi-curtain-acn04.json @@ -158,158 +158,189 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 78, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 78, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:d1:4f:84-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:d1:4f:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-light-acn132-0x00001a1a.json b/tests/data/devices/aqara-lumi-light-acn132-0x00001a1a.json index 95825e5aa..4154ef790 100644 --- a/tests/data/devices/aqara-lumi-light-acn132-0x00001a1a.json +++ b/tests/data/devices/aqara-lumi-light-acn132-0x00001a1a.json @@ -275,531 +275,634 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 41, - "xy_color": [ - 0.312993057145037, - 0.20999465934233616 - ], - "color_temp": 154, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 370 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 370 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 41, + "xy_color": [ + 0.312993057145037, + 0.20999465934233616 + ], + "color_temp": 154, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 250, - "mode": "auto", - "native_max_value": 370, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 370, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 250 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 3 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 3 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 3 + } }, { - "fallback_name": "Length", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-length", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "length", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 1, - "native_step": 0.2, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Length", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-length", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "length", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 1, + "native_step": 0.2, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Maximum brightness", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-max_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 1, - "native_step": 1.0, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Maximum brightness", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-max_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 1, + "native_step": 1.0, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Minimum brightness", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-min_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 99, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Minimum brightness", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-min_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 99, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Speed", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-speed", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "speed", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Speed", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-speed", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "speed", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Audio", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-audio", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "audio", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "LedStripT1Audio", - "options": [ - "Off", - "On" - ] + "info_object": { + "fallback_name": "Audio", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-audio", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "audio", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "LedStripT1Audio", + "options": [ + "Off", + "On" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Audio effect", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-audio_effect", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "audio_effect", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "LedStripT1AudioEffect", - "options": [ - "Random", - "Blink", - "Rainbow", - "Wave" - ] + "info_object": { + "fallback_name": "Audio effect", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-audio_effect", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "audio_effect", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "LedStripT1AudioEffect", + "options": [ + "Random", + "Blink", + "Rainbow", + "Wave" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Audio sensitivity", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-audio_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "audio_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "LedStripT1AudioSensitivity", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": "Audio sensitivity", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-audio_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "audio_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "LedStripT1AudioSensitivity", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Power on state", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "LedStripT1PowerOnStateMode", - "options": [ - "On", - "Previous", - "Off", - "Toggle" - ] + "info_object": { + "fallback_name": "Power on state", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "LedStripT1PowerOnStateMode", + "options": [ + "On", + "Previous", + "Off", + "Toggle" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Preset", - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-preset", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "LedStripT1Preset", - "options": [ - "Breathe", - "Rainbow", - "Sweep", - "Flashing", - "Strobe", - "ReversedRainbow", - "Colorful", - "Scan" - ] + "info_object": { + "fallback_name": "Preset", + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-preset", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "LedStripT1Preset", + "options": [ + "Breathe", + "Rainbow", + "Sweep", + "Flashing", + "Strobe", + "ReversedRainbow", + "Colorful", + "Scan" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 168, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 168 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:a0:54:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001a1a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:a0:54:37-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:a0:54:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001a1a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-light-agl003-0x0000001b.json b/tests/data/devices/aqara-lumi-light-agl003-0x0000001b.json index b84dad24f..3bde2c529 100644 --- a/tests/data/devices/aqara-lumi-light-agl003-0x0000001b.json +++ b/tests/data/devices/aqara-lumi-light-agl003-0x0000001b.json @@ -624,343 +624,410 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 1, - "xy_color": [ - 0.3125963225757229, - 0.32767223620965896 - ], - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 111, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 111, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 1, + "xy_color": [ + 0.3125963225757229, + 0.32767223620965896 + ], + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 153, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 111, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 111, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 153 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 15, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 15 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 254 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 15, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 15 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 15, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 65 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:74:c5:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:74:c5:0a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:74:c5:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-light-agl005-0x0000001b.json b/tests/data/devices/aqara-lumi-light-agl005-0x0000001b.json index eb5af42b4..b458d38cd 100644 --- a/tests/data/devices/aqara-lumi-light-agl005-0x0000001b.json +++ b/tests/data/devices/aqara-lumi-light-agl005-0x0000001b.json @@ -630,343 +630,410 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.1359884031433585, - 0.03999389639124132 - ], - "color_temp": 111, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 111, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 111, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.1359884031433585, + 0.03999389639124132 + ], + "color_temp": 111, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 153, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 111, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 111, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 153 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 15, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 15 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 254 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 15, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 15 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 15, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 65 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:ec:15:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:ec:15:50-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:ec:15:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-lunar-acn01.json b/tests/data/devices/aqara-lumi-lunar-acn01.json index 8423ee43c..65627fac2 100644 --- a/tests/data/devices/aqara-lumi-lunar-acn01.json +++ b/tests/data/devices/aqara-lumi-lunar-acn01.json @@ -127,107 +127,127 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:21:5f:8c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:21:5f:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:21:5f:8c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:21:5f:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:21:5f:8c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:21:5f:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:21:5f:8c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:21:5f:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:21:5f:8c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:21:5f:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:21:5f:8c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:21:5f:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:21:5f:8c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:21:5f:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:21:5f:8c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:21:5f:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-motion-ac01-0x00000035.json b/tests/data/devices/aqara-lumi-motion-ac01-0x00000035.json index f791b5e01..f1e28f60b 100644 --- a/tests/data/devices/aqara-lumi-motion-ac01-0x00000035.json +++ b/tests/data/devices/aqara-lumi-motion-ac01-0x00000035.json @@ -195,258 +195,308 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-reset_no_presence_status", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "NoPresenceStatusResetButton", - "translation_key": "reset_no_presence_status", - "translation_placeholders": null, - "device_class": "restart", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "reset_no_presence_status", - "attribute_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-reset_no_presence_status", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "NoPresenceStatusResetButton", + "translation_key": "reset_no_presence_status", + "translation_placeholders": null, + "device_class": "restart", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "reset_no_presence_status", + "attribute_value": 1 + }, + "state": { + "class_name": "NoPresenceStatusResetButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-approach_distance", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraApproachDistance", - "translation_key": "approach_distance", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Far", - "enum": "AqaraApproachDistances", - "options": [ - "Far", - "Medium", - "Near" - ] + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-approach_distance", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraApproachDistance", + "translation_key": "approach_distance", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "AqaraApproachDistances", + "options": [ + "Far", + "Medium", + "Near" + ] + }, + "state": { + "class_name": "AqaraApproachDistance", + "available": true, + "state": "Far" + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-monitoring_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraMonitoringMode", - "translation_key": "monitoring_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Left Right", - "enum": "AqaraMonitoringModess", - "options": [ - "Undirected", - "Left Right" - ] + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-monitoring_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraMonitoringMode", + "translation_key": "monitoring_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "AqaraMonitoringModess", + "options": [ + "Undirected", + "Left Right" + ] + }, + "state": { + "class_name": "AqaraMonitoringMode", + "available": true, + "state": "Left Right" + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraMotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "High", - "enum": "AqaraMotionSensitivities", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-64704-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraMotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "AqaraMotionSensitivities", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "AqaraMotionSensitivity", + "available": true, + "state": "High" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 27.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 27.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4d:2d:5b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4d:2d:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000035", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4d:2d:5b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4d:2d:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000035", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-sensor-occupy-agl1-0x0000001a.json b/tests/data/devices/aqara-lumi-sensor-occupy-agl1-0x0000001a.json index c425cc312..664a3382e 100644 --- a/tests/data/devices/aqara-lumi-sensor-occupy-agl1-0x0000001a.json +++ b/tests/data/devices/aqara-lumi-sensor-occupy-agl1-0x0000001a.json @@ -165,300 +165,360 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } }, { - "fallback_name": "Presence status reset", - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-reset_no_presence_status", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "reset_no_presence_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "reset_no_presence_status", - "attribute_value": 1 + "info_object": { + "fallback_name": "Presence status reset", + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-reset_no_presence_status", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "reset_no_presence_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "reset_no_presence_status", + "attribute_value": 1 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } }, { - "fallback_name": "Restart device", - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-restart_device", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "restart_device", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "restart_device", - "attribute_value": 0 + "info_object": { + "fallback_name": "Restart device", + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-restart_device", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "restart_device", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "restart_device", + "attribute_value": 0 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } } ], "number": [ { - "fallback_name": "Approach distance", - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-approach_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "approach_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Approach distance", + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-approach_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "approach_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "AqaraMotionSensitivity", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "AqaraMotionSensitivity", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": null + } }, { - "fallback_name": "Motion distance", - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-motion_distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "motion_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Motion distance", + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-motion_distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "motion_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:86:17:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:86:17:4b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:86:17:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003422.json b/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003422.json index d94e5d8c8..161586c7d 100644 --- a/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003422.json +++ b/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003422.json @@ -435,206 +435,244 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 176, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 176 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -67, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -67 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 23.65, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 23.65 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 52.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 52.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00003422", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00003422", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003a29.json b/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003a29.json index a4e14dd5f..ae5661b2a 100644 --- a/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003a29.json +++ b/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x00003a29.json @@ -204,206 +204,247 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 58, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 58 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": 3.03 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": 3.03 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 2 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 21.75, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 21.75 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 39.98, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 39.98 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00003a29", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00003a29", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x0000412a.json b/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x0000412a.json index e5e487870..acf9adf89 100644 --- a/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x0000412a.json +++ b/tests/data/devices/aqara-lumi-sensor-occupy-agl8-0x0000412a.json @@ -204,206 +204,247 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 196, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 196 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -51, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -51 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": 0.32 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": 0.32 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 27.34, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 27.34 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 45.99, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 45.99 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000412a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:99:5e:c4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:99:5e:c4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000412a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-switch-acn047-0x0000001c.json b/tests/data/devices/aqara-lumi-switch-acn047-0x0000001c.json index dfec90939..a11774c1e 100644 --- a/tests/data/devices/aqara-lumi-switch-acn047-0x0000001c.json +++ b/tests/data/devices/aqara-lumi-switch-acn047-0x0000001c.json @@ -793,398 +793,469 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-decoupled_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraT2RelayDecoupledMode", - "translation_key": "decoupled_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "ControlRelay", - "enum": "DecoupledMode", - "options": [ - "Decoupled", - "ControlRelay" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-decoupled_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraT2RelayDecoupledMode", + "translation_key": "decoupled_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "DecoupledMode", + "options": [ + "Decoupled", + "ControlRelay" + ] + }, + "state": { + "class_name": "AqaraT2RelayDecoupledMode", + "available": true, + "state": "ControlRelay" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-startup_on_off", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraT2RelayStartupOnOff", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Previous", - "enum": "StartupOnOff", - "options": [ - "On", - "Previous", - "Off", - "Toggle" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-startup_on_off", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraT2RelayStartupOnOff", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartupOnOff", + "options": [ + "On", + "Previous", + "Off", + "Toggle" + ] + }, + "state": { + "class_name": "AqaraT2RelayStartupOnOff", + "available": true, + "state": "Previous" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-switch_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraT2RelaySwitchMode", - "translation_key": "switch_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Power", - "enum": "SwitchMode", - "options": [ - "Power", - "Pulse", - "Dry" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-switch_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraT2RelaySwitchMode", + "translation_key": "switch_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SwitchMode", + "options": [ + "Power", + "Pulse", + "Dry" + ] + }, + "state": { + "class_name": "AqaraT2RelaySwitchMode", + "available": true, + "state": "Power" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-switch_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraT2RelaySwitchType", - "translation_key": "switch_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Toggle", - "enum": "SwitchType", - "options": [ - "Toggle", - "Momentary", - "NoSwitch" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-64704-switch_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraT2RelaySwitchType", + "translation_key": "switch_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SwitchType", + "options": [ + "Toggle", + "Momentary", + "NoSwitch" + ] + }, + "state": { + "class_name": "AqaraT2RelaySwitchType", + "available": true, + "state": "Toggle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-2-64704-decoupled_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraT2RelayDecoupledMode", - "translation_key": "decoupled_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_option": "ControlRelay", - "enum": "DecoupledMode", - "options": [ - "Decoupled", - "ControlRelay" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-2-64704-decoupled_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraT2RelayDecoupledMode", + "translation_key": "decoupled_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "enum": "DecoupledMode", + "options": [ + "Decoupled", + "ControlRelay" + ] + }, + "state": { + "class_name": "AqaraT2RelayDecoupledMode", + "available": true, + "state": "ControlRelay" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 108, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 108 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -84, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -84 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 35.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 789.9 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 789.9, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001c", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:b1:1a:5d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3a:b1:1a:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001c", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-switch-aeu003-0x00000e14.json b/tests/data/devices/aqara-lumi-switch-aeu003-0x00000e14.json index 1fdc0432f..96170d567 100644 --- a/tests/data/devices/aqara-lumi-switch-aeu003-0x00000e14.json +++ b/tests/data/devices/aqara-lumi-switch-aeu003-0x00000e14.json @@ -706,246 +706,291 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 196, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 196 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -62, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -62 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000e14", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:ae:d7:5d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:ae:d7:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000e14", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-switch-agl007-0x00001116.json b/tests/data/devices/aqara-lumi-switch-agl007-0x00001116.json index 4acb8a956..a95479219 100644 --- a/tests/data/devices/aqara-lumi-switch-agl007-0x00001116.json +++ b/tests/data/devices/aqara-lumi-switch-agl007-0x00001116.json @@ -795,295 +795,349 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 254 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 144, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 144 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -64, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -64 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:a0:93:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001116", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:a0:93:3f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:a0:93:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001116", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aqara-lumi-switch-agl010-0x00001315.json b/tests/data/devices/aqara-lumi-switch-agl010-0x00001315.json index a433746c1..2ebe1ffb8 100644 --- a/tests/data/devices/aqara-lumi-switch-agl010-0x00001315.json +++ b/tests/data/devices/aqara-lumi-switch-agl010-0x00001315.json @@ -724,210 +724,249 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 81, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 81 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001315", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:5a:ce:c8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:5a:ce:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001315", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/atlantic-group-adapter-zigbee-fujitsu.json b/tests/data/devices/atlantic-group-adapter-zigbee-fujitsu.json index 1468d8bda..50a0157b0 100644 --- a/tests/data/devices/atlantic-group-adapter-zigbee-fujitsu.json +++ b/tests/data/devices/atlantic-group-adapter-zigbee-fujitsu.json @@ -335,199 +335,244 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 20.0, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "off", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 16.0, - "supported_features": 395, - "fan_modes": [ - "auto", - "on" - ], - "preset_modes": [], - "hvac_modes": [ - "off", - "heat_cool", - "cool", - "heat" - ], - "sys_mode": "[0]/off", - "occupancy": null, - "occupied_cooling_setpoint": 2600, - "occupied_heating_setpoint": 2300, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 16.0, + "supported_features": 395, + "fan_modes": [ + "auto", + "on" + ], + "preset_modes": [], + "hvac_modes": [ + "off", + "heat_cool", + "cool", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 20.0, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "off", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[0]/off", + "occupancy": null, + "occupied_cooling_setpoint": 2600, + "occupied_heating_setpoint": 2300, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:4d:7a:e3-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:4d:7a:e3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/aug-winkhaus-gmbh-co-kg-fm-v-zb-0x00000011.json b/tests/data/devices/aug-winkhaus-gmbh-co-kg-fm-v-zb-0x00000011.json index b68d4702b..099ddff58 100644 --- a/tests/data/devices/aug-winkhaus-gmbh-co-kg-fm-v-zb-0x00000011.json +++ b/tests/data/devices/aug-winkhaus-gmbh-co-kg-fm-v-zb-0x00000011.json @@ -175,161 +175,189 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000011", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:2b:45:b6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d0:2b:45:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000011", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/aurora-doublesocket50au.json b/tests/data/devices/aurora-doublesocket50au.json index 671e5a2a8..6083e6d81 100644 --- a/tests/data/devices/aurora-doublesocket50au.json +++ b/tests/data/devices/aurora-doublesocket50au.json @@ -503,495 +503,573 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 50.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 50.0, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": null, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 6.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 6.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 246.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 246.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 50.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 50.0, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": null, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 3.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 3.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 246.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 246.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:73:79:07:f7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:73:79:07:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:73:79:07:f7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:73:79:07:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/awox-ercu-ws-zm.json b/tests/data/devices/awox-ercu-ws-zm.json index 07956003a..105f8639f 100644 --- a/tests/data/devices/awox-ercu-ws-zm.json +++ b/tests/data/devices/awox-ercu-ws-zm.json @@ -206,77 +206,92 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:50:b9:32:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:50:b9:32:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:50:b9:32:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 208, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:50:b9:32:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 208 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:50:b9:32:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -59, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:50:b9:32:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -59 + } } ] }, diff --git a/tests/data/devices/awox-esmlfzm-w6-dimm.json b/tests/data/devices/awox-esmlfzm-w6-dimm.json index 3fe300bc9..dda552e81 100644 --- a/tests/data/devices/awox-esmlfzm-w6-dimm.json +++ b/tests/data/devices/awox-esmlfzm-w6-dimm.json @@ -352,203 +352,246 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0, - 0 - ], - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0, + 0 + ], + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/awox-tlsr82xx.json b/tests/data/devices/awox-tlsr82xx.json index b879bab46..a283f7ae9 100644 --- a/tests/data/devices/awox-tlsr82xx.json +++ b/tests/data/devices/awox-tlsr82xx.json @@ -206,77 +206,92 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:01:9c:d6:df:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:01:9c:d6:df:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:01:9c:d6:df:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:01:9c:d6:df:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:01:9c:d6:df:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:01:9c:d6:df:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json b/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json index b19c0092f..ee2058d26 100644 --- a/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json +++ b/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json @@ -441,361 +441,434 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 94, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 94, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 75, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "DefaultMoveRateConfigurationEntity", + "available": true, + "state": 75 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 10 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 10 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-switchable_white", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "BegaColorTemperatureChannelSelect", - "translation_key": "color_temperature_channel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Warm white", - "enum": "BegaColorTemperatureChannel", - "options": [ - "Warm white", - "Cool white" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8-switchable_white", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "BegaColorTemperatureChannelSelect", + "translation_key": "color_temperature_channel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BegaColorTemperatureChannel", + "options": [ + "Warm white", + "Cool white" + ] + }, + "state": { + "class_name": "BegaColorTemperatureChannelSelect", + "available": true, + "state": "Warm white" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 172, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 172 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -57, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -57 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00990be9", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00990be9", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/bitron-video-902010-24a.json b/tests/data/devices/bitron-video-902010-24a.json index 464d7cc8e..16b7ac90d 100644 --- a/tests/data/devices/bitron-video-902010-24a.json +++ b/tests/data/devices/bitron-video-902010-24a.json @@ -178,278 +178,328 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-SirenLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultSirenLevelSelectEntity", - "translation_key": "default_siren_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "SirenLevel", - "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-SirenLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultSirenLevelSelectEntity", + "translation_key": "default_siren_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SirenLevel", + "options": [ + "Low level sound", + "Medium level sound", + "High level sound", + "Very high level sound" + ] + }, + "state": { + "class_name": "DefaultSirenLevelSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-Strobe", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeSelectEntity", - "translation_key": "default_strobe", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "Strobe", - "options": [ - "No Strobe", - "Strobe" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-Strobe", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeSelectEntity", + "translation_key": "default_strobe", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "Strobe", + "options": [ + "No Strobe", + "Strobe" + ] + }, + "state": { + "class_name": "DefaultStrobeSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-StrobeLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeLevelSelectEntity", - "translation_key": "default_strobe_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "StrobeLevel", - "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-StrobeLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeLevelSelectEntity", + "translation_key": "default_strobe_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StrobeLevel", + "options": [ + "Low level strobe", + "Medium level strobe", + "High level strobe", + "Very high level strobe" + ] + }, + "state": { + "class_name": "DefaultStrobeLevelSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-WarningMode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultToneSelectEntity", - "translation_key": "default_siren_tone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "WarningMode", - "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282-WarningMode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultToneSelectEntity", + "translation_key": "default_siren_tone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "WarningMode", + "options": [ + "Stop", + "Burglar", + "Fire", + "Emergency", + "Police Panic", + "Fire Panic", + "Emergency Panic" + ] + }, + "state": { + "class_name": "DefaultToneSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "siren": [ { - "fallback_name": "Siren", - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "AdvancedSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "available_tones": { - "1": "Burglar", - "2": "Fire", - "3": "Emergency", - "4": "Police Panic", - "5": "Fire Panic", - "6": "Emergency Panic" + "info_object": { + "fallback_name": "Siren", + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-1-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "AdvancedSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "available_tones": { + "1": "Burglar", + "2": "Fire", + "3": "Emergency", + "4": "Police Panic", + "5": "Fire Panic", + "6": "Emergency Panic" + }, + "supported_features": 31 }, - "supported_features": 31 + "state": { + "class_name": "AdvancedSiren", + "available": true, + "state": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-4-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", - "endpoint_id": 4, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:7b:a3:f4-4-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:7b:a3:f4", + "endpoint_id": 4, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/bituo-technik-spm01x001.json b/tests/data/devices/bituo-technik-spm01x001.json index bad1d514d..66a288e63 100644 --- a/tests/data/devices/bituo-technik-spm01x001.json +++ b/tests/data/devices/bituo-technik-spm01x001.json @@ -303,368 +303,417 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": null + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 10.0, + "zcl_unit_of_measurement": null + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10.0, - "suggested_display_precision": 3, - "unit": null, - "device_type": null, - "status": null, - "zcl_unit_of_measurement": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": null + }, + "state": { + "class_name": "SmartEnergySummationReceived", + "available": true, + "state": 0.0, + "zcl_unit_of_measurement": null + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": null, - "device_type": null, - "status": null, - "zcl_unit_of_measurement": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 4992.0 + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4992.0, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 100 + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 24178.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 24178.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c2:0c:51-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c2:0c:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/bosch-rbsh-mms-zb-eu-0x11136760.json b/tests/data/devices/bosch-rbsh-mms-zb-eu-0x11136760.json index ad72b031d..18191dd34 100644 --- a/tests/data/devices/bosch-rbsh-mms-zb-eu-0x11136760.json +++ b/tests/data/devices/bosch-rbsh-mms-zb-eu-0x11136760.json @@ -647,675 +647,813 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "blind", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": 100, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 255 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "blind", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": 100, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 255 + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": "Long press duration", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_button_hold_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "long_press_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 2, - "native_min_value": 0.1, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Long press duration", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_button_hold_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "long_press_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 2, + "native_min_value": 0.1, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Closing duration", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_closing_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "closing_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 90, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Closing duration", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_closing_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "closing_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 90, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motor start delay", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_motor_start_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "motor_start_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 20, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Motor start delay", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_motor_start_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "motor_start_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 20, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Opening duration", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_opening_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "opening_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 90, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Opening duration", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-calibration_opening_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "opening_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 90, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Device mode", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-device_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "device_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BoschDeviceMode", - "options": [ - "Disabled", - "Cover", - "Light" - ] + "info_object": { + "fallback_name": "Device mode", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-device_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "device_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschDeviceMode", + "options": [ + "Disabled", + "Cover", + "Light" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Switch type", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-switch_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "switch_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BoschSwitchType", - "options": [ - "Button", - "Button key change", - "Rocker switch", - "Rocker switch key change" - ] + "info_object": { + "fallback_name": "Switch type", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-switch_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "switch_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschSwitchType", + "options": [ + "Button", + "Button key change", + "Rocker switch", + "Rocker switch key change" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-2-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-2-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 2, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-3-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 3, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-3-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 3, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 2.21, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2.21, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Tilt_blind_tilt_and_lift", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Tilt_blind_tilt_and_lift" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": "Motor state", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-motor_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "motor_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Motor state", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-motor_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "motor_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-2-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-2-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:75:e4:96:a5-3-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:75:e4:96:a5-3-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 3, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:75:e4:96:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x11136760", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:75:e4:96:a5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:75:e4:96:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x11136760", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json b/tests/data/devices/bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json index 5491f2e04..69c057474 100644 --- a/tests/data/devices/bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json +++ b/tests/data/devices/bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json @@ -343,852 +343,1021 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Valve state", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-valve_state", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "valve_state", - "translation_placeholders": null, - "device_class": "running", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "valve_state" + "info_object": { + "fallback_name": "Valve state", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-valve_state", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "valve_state", + "translation_placeholders": null, + "device_class": "running", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "valve_state" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 21.8, - "outdoor_temperature": null, - "target_temperature": 17.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "cool", - "heat", - "off" - ], - "sys_mode": "[4]/heat", - "occupancy": 0, - "occupied_cooling_setpoint": 2300, - "occupied_heating_setpoint": 1700, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "cool", + "heat", + "off" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 21.8, + "outdoor_temperature": null, + "target_temperature": 17.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": 0, + "occupied_cooling_setpoint": 2300, + "occupied_heating_setpoint": 1700, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "BoschThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "box", - "native_max_value": 5.0, - "native_min_value": -5.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "BoschThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 5.0, + "native_min_value": -5.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "BoschThermostatLocalTempCalibration", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } }, { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-display_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-display_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Display on-time", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-display_on_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_on_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Display on-time", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-display_on_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_on_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Max cool setpoint limit", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-max_cool_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_cool_setpoint_limit", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "auto", - "native_max_value": 3000, - "native_min_value": -500, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Max cool setpoint limit", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-max_cool_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_cool_setpoint_limit", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 3000, + "native_min_value": -500, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 30.0 + } }, { - "fallback_name": "Min cool setpoint limit", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-min_cool_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_cool_setpoint_limit", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "auto", - "native_max_value": 3000, - "native_min_value": -500, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Min cool setpoint limit", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-min_cool_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_cool_setpoint_limit", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 3000, + "native_min_value": -500, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 5.0 + } }, { - "fallback_name": "Outdoor temperature", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-outdoor_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "outdoor_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 32767, - "native_min_value": -32768, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Outdoor temperature", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-outdoor_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "outdoor_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 32767, + "native_min_value": -32768, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } }, { - "fallback_name": "Actuator type", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-actuator_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "actuator_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BoschActuatorType", - "options": [ - "NormallyClosed", - "NormallyOpen" - ] + "info_object": { + "fallback_name": "Actuator type", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-actuator_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "actuator_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschActuatorType", + "options": [ + "NormallyClosed", + "NormallyOpen" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Heater type", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-heater_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "heater_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BoschHeaterType", - "options": [ - "UnderfloorHeating", - "Boiler", - "Radiator", - "CentralHeating" - ] + "info_object": { + "fallback_name": "Heater type", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-heater_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "heater_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschHeaterType", + "options": [ + "UnderfloorHeating", + "Boiler", + "Radiator", + "CentralHeating" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Operating mode", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-operating_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "operating_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BoschOperatingMode", - "options": [ - "Schedule", - "Manual", - "Pause" - ] + "info_object": { + "fallback_name": "Operating mode", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-operating_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "operating_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschOperatingMode", + "options": [ + "Schedule", + "Manual", + "Pause" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Sensor connection", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-sensor_connection", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_connection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BoschSensorConnection", - "options": [ - "NotUsed", - "WithoutRegulation", - "WithRegulation" - ] + "info_object": { + "fallback_name": "Sensor connection", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-sensor_connection", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_connection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschSensorConnection", + "options": [ + "NotUsed", + "WithoutRegulation", + "WithRegulation" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature display mode", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-temperature_display_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "temperature_display_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TemperatureDisplayMode", - "options": [ - "Metric", - "Imperial" - ] + "info_object": { + "fallback_name": "Temperature display mode", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-temperature_display_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "temperature_display_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TemperatureDisplayMode", + "options": [ + "Metric", + "Imperial" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Valve status LED", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-valve_status_led", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "valve_status_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BoschValveStatusLed", - "options": [ - "Off", - "Normal", - "On" - ] + "info_object": { + "fallback_name": "Valve status LED", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-valve_status_led", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "valve_status_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschValveStatusLed", + "options": [ + "Off", + "Normal", + "On" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -43, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -43 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_voltage": 6.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 6.2 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 53.26, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 53.26 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Manual", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": "Manual" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } }, { - "fallback_name": "Error code", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-error_code", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "error_code", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Error code", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-error_code", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "error_code", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "External temperature", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-external_temperature", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "external_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": "External temperature", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-external_temperature", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "external_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Heating demand", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": "Heating demand", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Local temperature", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-local_temperature", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "local_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 21.8, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-local_temperature", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "local_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 21.8 + } } ], "switch": [ { - "fallback_name": "Boost heating", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-boost_heating", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "boost_heating", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "boost_heating", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Boost heating", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-boost_heating", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "boost_heating", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "boost_heating", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-window_open", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_open", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "window_open", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-window_open", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_open", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_open", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x02086a30", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:24:c2:fc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:24:c2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02086a30", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/bosch-rbsh-rth0-zb-eu-0x03036a30.json b/tests/data/devices/bosch-rbsh-rth0-zb-eu-0x03036a30.json index c1a6073a8..0e9f05416 100644 --- a/tests/data/devices/bosch-rbsh-rth0-zb-eu-0x03036a30.json +++ b/tests/data/devices/bosch-rbsh-rth0-zb-eu-0x03036a30.json @@ -469,845 +469,1015 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Valve state", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-valve_state", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "valve_state", - "translation_placeholders": null, - "device_class": "running", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "valve_state" + "info_object": { + "fallback_name": "Valve state", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-valve_state", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "valve_state", + "translation_placeholders": null, + "device_class": "running", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "valve_state" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 22.95, - "outdoor_temperature": null, - "target_temperature": 21.5, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "cooling", - "hvac_mode": "cool", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "cool", - "heat", - "off" - ], - "sys_mode": "[3]/cool", - "occupancy": 0, - "occupied_cooling_setpoint": 2150, - "occupied_heating_setpoint": 2150, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "cool", + "heat", + "off" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 22.95, + "outdoor_temperature": null, + "target_temperature": 21.5, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "cooling", + "hvac_mode": "cool", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[3]/cool", + "occupancy": 0, + "occupied_cooling_setpoint": 2150, + "occupied_heating_setpoint": 2150, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "BoschThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -0.9, - "mode": "box", - "native_max_value": 5.0, - "native_min_value": -5.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "BoschThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 5.0, + "native_min_value": -5.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "BoschThermostatLocalTempCalibration", + "available": true, + "state": -0.9 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } }, { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-display_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 7, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-display_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 7 + } }, { - "fallback_name": "Display on-time", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-display_on_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_on_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Display on-time", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-display_on_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_on_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": "Max cool setpoint limit", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-max_cool_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_cool_setpoint_limit", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "auto", - "native_max_value": 3000, - "native_min_value": -500, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Max cool setpoint limit", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-max_cool_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_cool_setpoint_limit", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 3000, + "native_min_value": -500, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 30.0 + } }, { - "fallback_name": "Min cool setpoint limit", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-min_cool_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_cool_setpoint_limit", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "auto", - "native_max_value": 3000, - "native_min_value": -500, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Min cool setpoint limit", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-min_cool_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_cool_setpoint_limit", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 3000, + "native_min_value": -500, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 5.0 + } }, { - "fallback_name": "Outdoor temperature", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-outdoor_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "outdoor_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 32767, - "native_min_value": -32768, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Outdoor temperature", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-outdoor_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "outdoor_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 32767, + "native_min_value": -32768, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } }, { - "fallback_name": "Actuator type", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-actuator_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "actuator_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BoschActuatorType", - "options": [ - "NormallyClosed", - "NormallyOpen" - ] + "info_object": { + "fallback_name": "Actuator type", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-actuator_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "actuator_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschActuatorType", + "options": [ + "NormallyClosed", + "NormallyOpen" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Heater type", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-heater_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "heater_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BoschHeaterType", - "options": [ - "UnderfloorHeating", - "Boiler", - "Radiator", - "CentralHeating" - ] + "info_object": { + "fallback_name": "Heater type", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-heater_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "heater_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschHeaterType", + "options": [ + "UnderfloorHeating", + "Boiler", + "Radiator", + "CentralHeating" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Operating mode", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-operating_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "operating_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Manual", - "enum": "BoschOperatingMode", - "options": [ - "Schedule", - "Manual", - "Pause" - ] + "info_object": { + "fallback_name": "Operating mode", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-operating_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "operating_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschOperatingMode", + "options": [ + "Schedule", + "Manual", + "Pause" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Manual" + } }, { - "fallback_name": "Sensor connection", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-sensor_connection", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_connection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BoschSensorConnection", - "options": [ - "NotUsed", - "WithoutRegulation", - "WithRegulation" - ] + "info_object": { + "fallback_name": "Sensor connection", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-sensor_connection", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_connection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschSensorConnection", + "options": [ + "NotUsed", + "WithoutRegulation", + "WithRegulation" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature display mode", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-temperature_display_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "temperature_display_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Metric", - "enum": "TemperatureDisplayMode", - "options": [ - "Metric", - "Imperial" - ] + "info_object": { + "fallback_name": "Temperature display mode", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-temperature_display_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "temperature_display_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TemperatureDisplayMode", + "options": [ + "Metric", + "Imperial" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Metric" + } }, { - "fallback_name": "Valve status LED", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-valve_status_led", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "valve_status_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BoschValveStatusLed", - "options": [ - "Off", - "Normal", - "On" - ] + "info_object": { + "fallback_name": "Valve status LED", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-valve_status_led", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "valve_status_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschValveStatusLed", + "options": [ + "Off", + "Normal", + "On" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 164, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 164 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -70, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -70 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 51.98, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 51.98 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "cooling", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "cooling" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "External", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": "External" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } }, { - "fallback_name": "Error code", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-error_code", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "error_code", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Error code", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-error_code", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "error_code", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "External temperature", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-external_temperature", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "external_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": "External temperature", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-external_temperature", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "external_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Heating demand", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": "Heating demand", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Local temperature", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-local_temperature", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "local_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.95, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-local_temperature", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "local_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 22.95 + } } ], "switch": [ { - "fallback_name": "Boost heating", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-boost_heating", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "boost_heating", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "boost_heating", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Boost heating", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-boost_heating", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "boost_heating", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "boost_heating", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-window_open", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_open", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "window_open", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-window_open", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_open", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_open", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x03036a30", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:a4:a4:f2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:a4:a4:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x03036a30", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x32051514.json b/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x32051514.json index e81c435ce..1fadc3bb9 100644 --- a/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x32051514.json +++ b/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x32051514.json @@ -378,640 +378,771 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } }, { - "fallback_name": "Calibrate valve", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-calibrate_valve", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "Button", - "translation_key": "calibrate_valve", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "calibrate_valve", - "args": [], - "kwargs": {} + "info_object": { + "fallback_name": "Calibrate valve", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-calibrate_valve", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "Button", + "translation_key": "calibrate_valve", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "calibrate_valve", + "args": [], + "kwargs": {} + }, + "state": { + "class_name": "Button", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 21.7, - "outdoor_temperature": null, - "target_temperature": 18.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": 2300, - "occupied_heating_setpoint": 1800, - "pi_heating_demand": 0, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 21.7, + "outdoor_temperature": null, + "target_temperature": 18.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": 2300, + "occupied_heating_setpoint": 1800, + "pi_heating_demand": 0, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "BoschThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -0.6000000000000001, - "mode": "box", - "native_max_value": 5.0, - "native_min_value": -5.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "BoschThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 5.0, + "native_min_value": -5.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "BoschThermostatLocalTempCalibration", + "available": true, + "state": -0.6000000000000001 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } }, { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 7, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 7 + } }, { - "fallback_name": "Display on-time", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_on_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_on_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Display on-time", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_on_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_on_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 10 + } }, { - "fallback_name": "Remote temperature", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-remote_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 0.1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Remote temperature", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-remote_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 0.1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0.0 + } } ], "select": [ { - "fallback_name": "Control sequence", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-ctrl_sequence_of_oper", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "ctrl_sequence_of_oper", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Heating", - "enum": "BoschControlSequenceOfOperation", - "options": [ - "Cooling", - "Heating" - ] + "info_object": { + "fallback_name": "Control sequence", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-ctrl_sequence_of_oper", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "ctrl_sequence_of_oper", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschControlSequenceOfOperation", + "options": [ + "Cooling", + "Heating" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Heating" + } }, { - "fallback_name": "Display orientation", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_orientation", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_orientation", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Normal", - "enum": "BoschDisplayOrientation", - "options": [ - "Normal", - "Flipped" - ] + "info_object": { + "fallback_name": "Display orientation", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_orientation", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_orientation", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschDisplayOrientation", + "options": [ + "Normal", + "Flipped" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Normal" + } }, { - "fallback_name": "Displayed temperature", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-displayed_temperature", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "displayed_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Target", - "enum": "BoschDisplayedTemperature", - "options": [ - "Target", - "Measured" - ] + "info_object": { + "fallback_name": "Displayed temperature", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-displayed_temperature", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "displayed_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschDisplayedTemperature", + "options": [ + "Target", + "Measured" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Target" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 8.0, + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 2.7 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 8.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 2.7 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "External", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": "External" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } }, { - "fallback_name": "Operating mode", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-operating_mode", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "operating_mode", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Manual", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Operating mode", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-operating_mode", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "operating_mode", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": "Manual" + } }, { - "fallback_name": "Valve adaptation status", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-valve_adapt_status", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "valve_adapt_status", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Valve adaptation status", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-valve_adapt_status", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "valve_adapt_status", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Boost heating", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-boost_heating", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "boost_heating", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "boost_heating", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Boost heating", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-boost_heating", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "boost_heating", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "boost_heating", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-window_open", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_open", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "window_open", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-window_open", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_open", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_open", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x32051514", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x32051514", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x38011514.json b/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x38011514.json index d64b0bde1..56eaf445e 100644 --- a/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x38011514.json +++ b/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x38011514.json @@ -377,669 +377,805 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } }, { - "fallback_name": "Calibrate valve", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-calibrate_valve", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "Button", - "translation_key": "calibrate_valve", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "calibrate_valve", - "args": [], - "kwargs": {} + "info_object": { + "fallback_name": "Calibrate valve", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-calibrate_valve", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "Button", + "translation_key": "calibrate_valve", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "calibrate_valve", + "args": [], + "kwargs": {} + }, + "state": { + "class_name": "Button", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 19.8, - "outdoor_temperature": null, - "target_temperature": 21.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": 2300, - "occupied_heating_setpoint": 2100, - "pi_heating_demand": 0, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 19.8, + "outdoor_temperature": null, + "target_temperature": 21.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": 2300, + "occupied_heating_setpoint": 2100, + "pi_heating_demand": 0, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "BoschThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -3.7, - "mode": "box", - "native_max_value": 5.0, - "native_min_value": -5.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "BoschThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 5.0, + "native_min_value": -5.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "BoschThermostatLocalTempCalibration", + "available": true, + "state": -3.7 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } }, { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 7, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 7 + } }, { - "fallback_name": "Display on-time", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_on_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_on_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Display on-time", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_on_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_on_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 10 + } }, { - "fallback_name": "Remote temperature", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-remote_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 0.1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Remote temperature", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-remote_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 0.1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0.0 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } }, { - "fallback_name": "Control sequence", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-ctrl_sequence_of_oper", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "ctrl_sequence_of_oper", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Heating", - "enum": "BoschControlSequenceOfOperation", - "options": [ - "Cooling", - "Heating" - ] + "info_object": { + "fallback_name": "Control sequence", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-ctrl_sequence_of_oper", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "ctrl_sequence_of_oper", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschControlSequenceOfOperation", + "options": [ + "Cooling", + "Heating" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Heating" + } }, { - "fallback_name": "Display orientation", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_orientation", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_orientation", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Normal", - "enum": "BoschDisplayOrientation", - "options": [ - "Normal", - "Flipped" - ] + "info_object": { + "fallback_name": "Display orientation", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-display_orientation", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_orientation", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschDisplayOrientation", + "options": [ + "Normal", + "Flipped" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Normal" + } }, { - "fallback_name": "Displayed temperature", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-displayed_temperature", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "displayed_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Measured", - "enum": "BoschDisplayedTemperature", - "options": [ - "Target", - "Measured" - ] + "info_object": { + "fallback_name": "Displayed temperature", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-displayed_temperature", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "displayed_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BoschDisplayedTemperature", + "options": [ + "Target", + "Measured" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Measured" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 236, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 236 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -41, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -41 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 28.0, + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 2.6 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 28.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 2.6 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Manual", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": "Manual" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } }, { - "fallback_name": "Operating mode", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-operating_mode", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "operating_mode", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Manual", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Operating mode", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-operating_mode", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "operating_mode", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": "Manual" + } }, { - "fallback_name": "Valve adaptation status", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-valve_adapt_status", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "valve_adapt_status", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "CalibrationInProgress", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Valve adaptation status", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-valve_adapt_status", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "valve_adapt_status", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": "CalibrationInProgress" + } } ], "switch": [ { - "fallback_name": "Boost heating", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-boost_heating", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "boost_heating", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "boost_heating", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Boost heating", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-boost_heating", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "boost_heating", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "boost_heating", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-window_open", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_open", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "window_open", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-window_open", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_open", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_open", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:eb:38:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x38011514", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:eb:38:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:eb:38:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x38011514", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/bosch-rbsh-us4btn-zb-eu-0x100d6a30.json b/tests/data/devices/bosch-rbsh-us4btn-zb-eu-0x100d6a30.json index 84e0d43ff..735a1db28 100644 --- a/tests/data/devices/bosch-rbsh-us4btn-zb-eu-0x100d6a30.json +++ b/tests/data/devices/bosch-rbsh-us4btn-zb-eu-0x100d6a30.json @@ -349,137 +349,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:78:47:04-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:78:47:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:78:47:04-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:78:47:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:78:47:04-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:78:47:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:78:47:04-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:78:47:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:78:47:04-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:78:47:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:78:47:04-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:78:47:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:78:47:04-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:78:47:04-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:78:47:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:55:78:47:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.1 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:78:47:04-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:78:47:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x100d6a30", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:78:47:04-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:78:47:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x100d6a30", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/busch-jaeger-rb01.json b/tests/data/devices/busch-jaeger-rb01.json index fca150ac0..bcd39bc72 100644 --- a/tests/data/devices/busch-jaeger-rb01.json +++ b/tests/data/devices/busch-jaeger-rb01.json @@ -158,80 +158,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:db:33:21-10-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:db:33:21", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:db:33:21-10-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:db:33:21", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:db:33:21-10-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:db:33:21", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:db:33:21-10-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:db:33:21", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:db:33:21-10-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:db:33:21", - "endpoint_id": 10, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:db:33:21-10-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:db:33:21", + "endpoint_id": 10, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/bweetech-semote.json b/tests/data/devices/bweetech-semote.json index 6e4d5d443..47ff59ee2 100644 --- a/tests/data/devices/bweetech-semote.json +++ b/tests/data/devices/bweetech-semote.json @@ -195,107 +195,125 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 104, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 104 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -85, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -85 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ] }, diff --git a/tests/data/devices/candeo-c-zb-lc20-dim-0x29013001.json b/tests/data/devices/candeo-c-zb-lc20-dim-0x29013001.json index 52d79283a..e7a65b84a 100644 --- a/tests/data/devices/candeo-c-zb-lc20-dim-0x29013001.json +++ b/tests/data/devices/candeo-c-zb-lc20-dim-0x29013001.json @@ -202,205 +202,248 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 129, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 129 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:61:76:7a-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:61:76:7a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x29013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:61:76:7a-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:61:76:7a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x29013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/candeo-c-zb-lc20-rgb-0x31013001.json b/tests/data/devices/candeo-c-zb-lc20-rgb-0x31013001.json index 618da3d32..972562297 100644 --- a/tests/data/devices/candeo-c-zb-lc20-rgb-0x31013001.json +++ b/tests/data/devices/candeo-c-zb-lc20-rgb-0x31013001.json @@ -257,209 +257,252 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 2, - "xy_color": [ - 0.07499809262226291, - 0.8 - ], - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 158, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 158, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 2, + "xy_color": [ + 0.07499809262226291, + 0.8 + ], + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 196, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 196 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": -51, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -51 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x31013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:6d:9d:be-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:6d:9d:be", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x31013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/centralite-3300-0x1f075310.json b/tests/data/devices/centralite-3300-0x1f075310.json index 9c75c1f6a..839702e8a 100644 --- a/tests/data/devices/centralite-3300-0x1f075310.json +++ b/tests/data/devices/centralite-3300-0x1f075310.json @@ -231,184 +231,220 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 23.35, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 23.35 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:73:e6:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x1f075310", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:73:e6:7b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:73:e6:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x1f075310", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/centralite-3310-g-0x11015310.json b/tests/data/devices/centralite-3310-g-0x11015310.json index de01968ab..b8e7aa4a2 100644 --- a/tests/data/devices/centralite-3310-g-0x11015310.json +++ b/tests/data/devices/centralite-3310-g-0x11015310.json @@ -240,183 +240,219 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 144, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 144 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -64, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -64 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 92.5, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.7 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 92.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.7 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 21.37, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 21.37 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-64581", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartThingsHumidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 59.87, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-64581", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartThingsHumidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "SmartThingsHumidity", + "available": true, + "state": 59.87 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x11015310", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:57:4b:ce-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:57:4b:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x11015310", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/centralite-3315-seu-0x1f085310.json b/tests/data/devices/centralite-3315-seu-0x1f085310.json index d72f2d34e..ea8cc5475 100644 --- a/tests/data/devices/centralite-3315-seu-0x1f085310.json +++ b/tests/data/devices/centralite-3315-seu-0x1f085310.json @@ -275,184 +275,220 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 65 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 92.5, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.7 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 92.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.7 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20.53, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.53 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x1f085310", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:21:3e:1d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:21:3e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x1f085310", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/centralite-3320-l.json b/tests/data/devices/centralite-3320-l.json index a237cf6fb..8f303076b 100644 --- a/tests/data/devices/centralite-3320-l.json +++ b/tests/data/devices/centralite-3320-l.json @@ -261,184 +261,220 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.8 + ] }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20.17, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.17 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0f:3a:e3:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0f:3a:e3:69-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0f:3a:e3:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/centralite-3326-l-0x1c005310.json b/tests/data/devices/centralite-3326-l-0x1c005310.json index eb42f461f..8de456146 100644 --- a/tests/data/devices/centralite-3326-l-0x1c005310.json +++ b/tests/data/devices/centralite-3326-l-0x1c005310.json @@ -269,184 +269,220 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -71, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -71 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.9 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 15.62, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 15.62 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x1c005310", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:f3:df:a9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:f3:df:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x1c005310", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/centralite-3326-l.json b/tests/data/devices/centralite-3326-l.json index 63f4dbbb1..4cd89d36f 100644 --- a/tests/data/devices/centralite-3326-l.json +++ b/tests/data/devices/centralite-3326-l.json @@ -262,184 +262,220 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 84.5, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.6 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 84.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.6 + ] }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 18.38, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 18.38 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:10:9a:14:65-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:10:9a:14:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:10:9a:14:65-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:10:9a:14:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/centralite-3405-l-0x10025310.json b/tests/data/devices/centralite-3405-l-0x10025310.json index a541c73f1..a6adcea8b 100644 --- a/tests/data/devices/centralite-3405-l-0x10025310.json +++ b/tests/data/devices/centralite-3405-l-0x10025310.json @@ -237,210 +237,251 @@ "zha_lib_entities": { "alarm_control_panel": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-1281", - "migrate_unique_ids": [], - "platform": "alarm_control_panel", - "class_name": "AlarmControlPanel", - "translation_key": "alarm_control_panel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "alarm_state": "disarmed", - "code_arm_required": false, - "code_format": "number", - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-1281", + "migrate_unique_ids": [], + "platform": "alarm_control_panel", + "class_name": "AlarmControlPanel", + "translation_key": "alarm_control_panel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "code_arm_required": false, + "code_format": "number", + "supported_features": 15 + }, + "state": { + "class_name": "AlarmControlPanel", + "available": true, + "state": "disarmed" + } } ], "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Other", + "battery_quantity": 2, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 2, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.81, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.81 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:65:83:f2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:05:65:83:f2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x10025310", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:65:83:f2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:65:83:f2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x10025310", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/centralite-systems-3156105-0x1418468c.json b/tests/data/devices/centralite-systems-3156105-0x1418468c.json index 355b8d85c..78e95611e 100644 --- a/tests/data/devices/centralite-systems-3156105-0x1418468c.json +++ b/tests/data/devices/centralite-systems-3156105-0x1418468c.json @@ -396,346 +396,415 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 20.05, - "outdoor_temperature": 0.0, - "target_temperature": 20.6, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 393, - "fan_modes": [ - "auto", - "on" - ], - "preset_modes": [], - "hvac_modes": [ - "cool", - "heat", - "off" - ], - "sys_mode": "[4]/heat", - "occupancy": 0, - "occupied_cooling_setpoint": 2333, - "occupied_heating_setpoint": 2055, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": 2600, - "unoccupied_heating_setpoint": 2000 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 393, + "fan_modes": [ + "auto", + "on" + ], + "preset_modes": [], + "hvac_modes": [ + "cool", + "heat", + "off" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 20.05, + "outdoor_temperature": 0.0, + "target_temperature": 20.6, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": 0, + "occupied_cooling_setpoint": 2333, + "occupied_heating_setpoint": 2055, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": 2600, + "unoccupied_heating_setpoint": 2000 + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "ThermostatLocalTempCalibration", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": 7.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": 7.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 7.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": 7.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": 7.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 7.0 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.9 + ] }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:03:57:f1:be-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:03:57:f1:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x1418468c", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:03:57:f1:be-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:03:57:f1:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x1418468c", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/climaxtechnology-sd8sc-00-00-03-12tc.json b/tests/data/devices/climaxtechnology-sd8sc-00-00-03-12tc.json index 89895e6c6..99d3a6021 100644 --- a/tests/data/devices/climaxtechnology-sd8sc-00-00-03-12tc.json +++ b/tests/data/devices/climaxtechnology-sd8sc-00-00-03-12tc.json @@ -155,248 +155,293 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-SirenLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultSirenLevelSelectEntity", - "translation_key": "default_siren_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "SirenLevel", - "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-SirenLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultSirenLevelSelectEntity", + "translation_key": "default_siren_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SirenLevel", + "options": [ + "Low level sound", + "Medium level sound", + "High level sound", + "Very high level sound" + ] + }, + "state": { + "class_name": "DefaultSirenLevelSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-Strobe", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeSelectEntity", - "translation_key": "default_strobe", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "Strobe", - "options": [ - "No Strobe", - "Strobe" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-Strobe", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeSelectEntity", + "translation_key": "default_strobe", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "Strobe", + "options": [ + "No Strobe", + "Strobe" + ] + }, + "state": { + "class_name": "DefaultStrobeSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-StrobeLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeLevelSelectEntity", - "translation_key": "default_strobe_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "StrobeLevel", - "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-StrobeLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeLevelSelectEntity", + "translation_key": "default_strobe_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StrobeLevel", + "options": [ + "Low level strobe", + "Medium level strobe", + "High level strobe", + "Very high level strobe" + ] + }, + "state": { + "class_name": "DefaultStrobeLevelSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-WarningMode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultToneSelectEntity", - "translation_key": "default_siren_tone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "WarningMode", - "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282-WarningMode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultToneSelectEntity", + "translation_key": "default_siren_tone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "WarningMode", + "options": [ + "Stop", + "Burglar", + "Fire", + "Emergency", + "Police Panic", + "Fire Panic", + "Emergency Panic" + ] + }, + "state": { + "class_name": "DefaultToneSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "siren": [ { - "fallback_name": "Siren", - "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "AdvancedSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:09:6e:5a:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "available_tones": { - "1": "Burglar", - "2": "Fire", - "3": "Emergency", - "4": "Police Panic", - "5": "Fire Panic", - "6": "Emergency Panic" + "info_object": { + "fallback_name": "Siren", + "unique_id": "00:12:4b:00:09:6e:5a:cf-1-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "AdvancedSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:12:4b:00:09:6e:5a:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "available_tones": { + "1": "Burglar", + "2": "Fire", + "3": "Emergency", + "4": "Police Panic", + "5": "Fire Panic", + "6": "Emergency Panic" + }, + "supported_features": 31 }, - "supported_features": 31 + "state": { + "class_name": "AdvancedSiren", + "available": true, + "state": false + } } ] }, diff --git a/tests/data/devices/computime-slr2b.json b/tests/data/devices/computime-slr2b.json index c9b87b8ec..4bccae7d7 100644 --- a/tests/data/devices/computime-slr2b.json +++ b/tests/data/devices/computime-slr2b.json @@ -574,468 +574,573 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "current_temperature": 18.64, - "outdoor_temperature": null, - "target_temperature": 19.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 32.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": 2100, - "occupied_heating_setpoint": 1900, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "max_temp": 32.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 18.64, + "outdoor_temperature": null, + "target_temperature": 19.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": 2100, + "occupied_heating_setpoint": 1900, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 6, - "available": true, - "group_id": null, - "current_temperature": 21.0, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "off", - "hvac_mode": "off", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 15.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[0]/off", - "occupancy": null, - "occupied_cooling_setpoint": 2100, - "occupied_heating_setpoint": 2200, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 6, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 15.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 21.0, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "off", + "hvac_mode": "off", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[0]/off", + "occupancy": null, + "occupied_cooling_setpoint": 2100, + "occupied_heating_setpoint": 2200, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 32.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 32.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 32.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 32.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 15.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 6, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 15.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 15.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 6, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 15.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": "off", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "off" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-6-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-7-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 7, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-7-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 7, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-8-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-8-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 8, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 0.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:80:b4:9c-5-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:80:b4:9c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/computime-slt3c-0x02040105.json b/tests/data/devices/computime-slt3c-0x02040105.json index c86d11a8c..96418d753 100644 --- a/tests/data/devices/computime-slt3c-0x02040105.json +++ b/tests/data/devices/computime-slt3c-0x02040105.json @@ -367,262 +367,316 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "current_temperature": 0.0, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": 26.0, - "target_temperature_low": 17.0, - "hvac_action": null, - "hvac_mode": "heat_cool", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.1, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[1]/heat_cool", - "occupancy": null, - "occupied_cooling_setpoint": 2600, - "occupied_heating_setpoint": 1700, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.1, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 0.0, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": 26.0, + "target_temperature_low": 17.0, + "hvac_action": null, + "hvac_mode": "heat_cool", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[1]/heat_cool", + "occupancy": null, + "occupied_cooling_setpoint": 2600, + "occupied_heating_setpoint": 1700, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "native_value": 136, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 136 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "native_value": -66, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -66 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 32.0, + "battery_voltage": 4.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "native_value": 32.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 4.9 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "native_value": 21.79, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 21.79 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:ea:07:68", - "endpoint_id": 9, - "available": true, - "group_id": null, - "installed_version": "0x02040105", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:ea:07:68-9-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ad:ea:07:68", + "endpoint_id": 9, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02040105", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/d5x84yu-et093wrg.json b/tests/data/devices/d5x84yu-et093wrg.json index aa6d720f7..f85abf36e 100644 --- a/tests/data/devices/d5x84yu-et093wrg.json +++ b/tests/data/devices/d5x84yu-et093wrg.json @@ -342,336 +342,391 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-heat_required", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "DanfossHeatRequired", - "translation_key": "heat_required", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "heat_required" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-heat_required", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "DanfossHeatRequired", + "translation_key": "heat_required", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "heat_required" + }, + "state": { + "class_name": "DanfossHeatRequired", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-mounting_mode_active", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "DanfossMountingModeActive", - "translation_key": "mounting_mode_active", - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "mounting_mode_active" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-mounting_mode_active", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "DanfossMountingModeActive", + "translation_key": "mounting_mode_active", + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "mounting_mode_active" + }, + "state": { + "class_name": "DanfossMountingModeActive", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-preheat_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "DanfossPreheatStatus", - "translation_key": "preheat_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "preheat_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-preheat_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "DanfossPreheatStatus", + "translation_key": "preheat_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "preheat_status" + }, + "state": { + "class_name": "DanfossPreheatStatus", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 15.37, - "outdoor_temperature": null, - "target_temperature": 11.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 35.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1100, - "pi_heating_demand": 1, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 35.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 15.37, + "outdoor_temperature": null, + "target_temperature": 11.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1100, + "pi_heating_demand": 1, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.0, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 35.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 99.0, + "battery_voltage": 3.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 99.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.2 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-2821-motor_step_counter", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossMotorStepCounter", - "translation_key": "motor_stepcount", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-2821-motor_step_counter", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossMotorStepCounter", + "translation_key": "motor_stepcount", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DanfossMotorStepCounter", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-2821-sw_error_code", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossSoftwareErrorCode", - "translation_key": "software_error", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ - "Critical_low_battery", - "Encoder_jammed", - "Invalid_clock_information", - "Invalid_internal_communication", - "Low_battery", - "Motor_error", - "Non_volatile_memory_error", - "Radio_communication_error", - "Side_pcb_sensor_error", - "Top_pcb_sensor_error", - "Unknown_hw_error" - ], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null, - "bit_states": { + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-2821-sw_error_code", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossSoftwareErrorCode", + "translation_key": "software_error", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DanfossSoftwareErrorCode", + "available": true, + "state": null, "Top_pcb_sensor_error": false, "Side_pcb_sensor_error": false, "Non_volatile_memory_error": false, @@ -683,230 +738,287 @@ "Encoder_jammed": false, "Low_battery": false, "Critical_low_battery": false - } + }, + "extra_state_attributes": [ + "Critical_low_battery", + "Encoder_jammed", + "Invalid_clock_information", + "Invalid_internal_communication", + "Low_battery", + "Motor_error", + "Non_volatile_memory_error", + "Radio_communication_error", + "Side_pcb_sensor_error", + "Top_pcb_sensor_error", + "Unknown_hw_error" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-adaptation_run_status", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossAdaptationRunStatus", - "translation_key": "adaptation_run_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ - "In_progress", - "Valve_characteristic_found", - "Valve_characteristic_lost" - ], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null, - "bit_states": { + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-adaptation_run_status", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossAdaptationRunStatus", + "translation_key": "adaptation_run_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DanfossAdaptationRunStatus", + "available": true, + "state": null, "In_progress": false, "Valve_characteristic_found": false, "Valve_characteristic_lost": false - } + }, + "extra_state_attributes": [ + "In_progress", + "Valve_characteristic_found", + "Valve_characteristic_lost" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "heating", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "heating" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-load_estimate", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossLoadEstimate", - "translation_key": "load_estimate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-load_estimate", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossLoadEstimate", + "translation_key": "load_estimate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DanfossLoadEstimate", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-open_window_detection", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossOpenWindowDetection", - "translation_key": "open_window_detected", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-open_window_detection", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossOpenWindowDetection", + "translation_key": "open_window_detected", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DanfossOpenWindowDetection", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": 1 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-preheat_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossPreheatTime", - "translation_key": "preheat_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-preheat_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossPreheatTime", + "translation_key": "preheat_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DanfossPreheatTime", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "External", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": "External" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:20:83:1e:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:20:83:1e:1f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:20:83:1e:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/danfoss-0x8040.json b/tests/data/devices/danfoss-0x8040.json index 61f2c5102..b0a2a62d6 100644 --- a/tests/data/devices/danfoss-0x8040.json +++ b/tests/data/devices/danfoss-0x8040.json @@ -330,354 +330,427 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 23.92, - "outdoor_temperature": null, - "target_temperature": 21.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 35.0, - "min_temp": 4.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2100, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 35.0, + "min_temp": 4.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 23.92, + "outdoor_temperature": null, + "target_temperature": 21.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2100, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 35.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4.0, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 4.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 27.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 27.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:55:96:1c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:55:96:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:55:96:1c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:55:96:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/danfoss-etrv0103-0x00000014.json b/tests/data/devices/danfoss-etrv0103-0x00000014.json index 1c805ca32..e18a71021 100644 --- a/tests/data/devices/danfoss-etrv0103-0x00000014.json +++ b/tests/data/devices/danfoss-etrv0103-0x00000014.json @@ -511,617 +511,722 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-heat_required", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "DanfossHeatRequired", - "translation_key": "heat_required", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "heat_required" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-heat_required", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "DanfossHeatRequired", + "translation_key": "heat_required", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "heat_required" + }, + "state": { + "class_name": "DanfossHeatRequired", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-mounting_mode_active", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "DanfossMountingModeActive", - "translation_key": "mounting_mode_active", - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "mounting_mode_active" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-mounting_mode_active", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "DanfossMountingModeActive", + "translation_key": "mounting_mode_active", + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "mounting_mode_active" + }, + "state": { + "class_name": "DanfossMountingModeActive", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-preheat_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "DanfossPreheatStatus", - "translation_key": "preheat_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "preheat_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-preheat_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "DanfossPreheatStatus", + "translation_key": "preheat_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "preheat_status" + }, + "state": { + "class_name": "DanfossPreheatStatus", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 20.14, - "outdoor_temperature": null, - "target_temperature": 5.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 35.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 500, - "pi_heating_demand": 0, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 35.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 20.14, + "outdoor_temperature": null, + "target_temperature": 5.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 500, + "pi_heating_demand": 0, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-exercise_trigger_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DanfossExerciseTriggerTime", - "translation_key": "exercise_trigger_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 660, - "mode": "box", - "native_max_value": 1439, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-exercise_trigger_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DanfossExerciseTriggerTime", + "translation_key": "exercise_trigger_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 1439, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "DanfossExerciseTriggerTime", + "available": true, + "state": 660 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-external_measured_room_sensor", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DanfossExternalMeasuredRoomSensor", - "translation_key": "external_temperature_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20.8, - "mode": "box", - "native_max_value": 35, - "native_min_value": -80, - "native_step": 0.01, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-external_measured_room_sensor", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DanfossExternalMeasuredRoomSensor", + "translation_key": "external_temperature_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35, + "native_min_value": -80, + "native_step": 0.01, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "DanfossExternalMeasuredRoomSensor", + "available": true, + "state": 20.8 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-load_room_mean", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DanfossLoadRoomMean", - "translation_key": "load_room_mean", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -8000, - "mode": "box", - "native_max_value": 2000, - "native_min_value": -8000, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-load_room_mean", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DanfossLoadRoomMean", + "translation_key": "load_room_mean", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 2000, + "native_min_value": -8000, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "DanfossLoadRoomMean", + "available": true, + "state": -8000 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.0, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 35.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-regulation_setpoint_offset", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DanfossRegulationSetpointOffset", - "translation_key": "regulation_setpoint_offset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-regulation_setpoint_offset", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DanfossRegulationSetpointOffset", + "translation_key": "regulation_setpoint_offset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "DanfossRegulationSetpointOffset", + "available": true, + "state": 0.0 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-adaptation_run_control", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DanfossAdaptationRunControl", - "translation_key": "adaptation_run_command", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Nothing", - "enum": "DanfossAdaptationRunControlEnum", - "options": [ - "Nothing", - "Initiate", - "Cancel" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-adaptation_run_control", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DanfossAdaptationRunControl", + "translation_key": "adaptation_run_command", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "DanfossAdaptationRunControlEnum", + "options": [ + "Nothing", + "Initiate", + "Cancel" + ] + }, + "state": { + "class_name": "DanfossAdaptationRunControl", + "available": true, + "state": "Nothing" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-control_algorithm_scale_factor", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DanfossControlAlgorithmScaleFactor", - "translation_key": "setpoint_response_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "quick 5min", - "enum": "DanfossControlAlgorithmScaleFactorEnum", - "options": [ - "quick 5min", - "quick 10min", - "quick 15min", - "quick 25min", - "moderate 30min", - "moderate 40min", - "moderate 50min", - "moderate 60min", - "moderate 70min", - "slow 80min", - "quick open disabled" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-control_algorithm_scale_factor", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DanfossControlAlgorithmScaleFactor", + "translation_key": "setpoint_response_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "DanfossControlAlgorithmScaleFactorEnum", + "options": [ + "quick 5min", + "quick 10min", + "quick 15min", + "quick 25min", + "moderate 30min", + "moderate 40min", + "moderate 50min", + "moderate 60min", + "moderate 70min", + "slow 80min", + "quick open disabled" + ] + }, + "state": { + "class_name": "DanfossControlAlgorithmScaleFactor", + "available": true, + "state": "quick 5min" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-exercise_day_of_week", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DanfossExerciseDayOfTheWeek", - "translation_key": "exercise_day_of_week", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Thursday", - "enum": "DanfossExerciseDayOfTheWeekEnum", - "options": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Undefined" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-exercise_day_of_week", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DanfossExerciseDayOfTheWeek", + "translation_key": "exercise_day_of_week", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "DanfossExerciseDayOfTheWeekEnum", + "options": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Undefined" + ] + }, + "state": { + "class_name": "DanfossExerciseDayOfTheWeek", + "available": true, + "state": "Thursday" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-orientation", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DanfossOrientation", - "translation_key": "valve_orientation", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Horizontal", - "enum": "DanfossOrientationEnum", - "options": [ - "Horizontal", - "Vertical" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-orientation", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DanfossOrientation", + "translation_key": "valve_orientation", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "DanfossOrientationEnum", + "options": [ + "Horizontal", + "Vertical" + ] + }, + "state": { + "class_name": "DanfossOrientation", + "available": true, + "state": "Horizontal" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-516-viewing_direction", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DanfossViewingDirection", - "translation_key": "viewing_direction", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Default", - "enum": "DanfossViewingDirectionEnum", - "options": [ - "Default", - "Inverted" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-516-viewing_direction", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DanfossViewingDirection", + "translation_key": "viewing_direction", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "DanfossViewingDirectionEnum", + "options": [ + "Default", + "Inverted" + ] + }, + "state": { + "class_name": "DanfossViewingDirection", + "available": true, + "state": "Default" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 35.0, + "battery_voltage": 2.7 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.7 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-2821-motor_step_counter", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossMotorStepCounter", - "translation_key": "motor_stepcount", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 63774, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-2821-motor_step_counter", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossMotorStepCounter", + "translation_key": "motor_stepcount", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DanfossMotorStepCounter", + "available": true, + "state": 63774 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-2821-sw_error_code", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossSoftwareErrorCode", - "translation_key": "software_error", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ - "Critical_low_battery", - "Encoder_jammed", - "Invalid_clock_information", - "Invalid_internal_communication", - "Low_battery", - "Motor_error", - "Non_volatile_memory_error", - "Radio_communication_error", - "Side_pcb_sensor_error", - "Top_pcb_sensor_error", - "Unknown_hw_error" - ], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "something", - "suggested_display_precision": null, - "unit": null, - "bit_states": { + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-2821-sw_error_code", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossSoftwareErrorCode", + "translation_key": "software_error", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DanfossSoftwareErrorCode", + "available": true, + "state": "something", "Top_pcb_sensor_error": false, "Side_pcb_sensor_error": false, "Non_volatile_memory_error": false, @@ -1133,421 +1238,513 @@ "Encoder_jammed": false, "Low_battery": false, "Critical_low_battery": false - } + }, + "extra_state_attributes": [ + "Critical_low_battery", + "Encoder_jammed", + "Invalid_clock_information", + "Invalid_internal_communication", + "Low_battery", + "Motor_error", + "Non_volatile_memory_error", + "Radio_communication_error", + "Side_pcb_sensor_error", + "Top_pcb_sensor_error", + "Unknown_hw_error" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-adaptation_run_status", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossAdaptationRunStatus", - "translation_key": "adaptation_run_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ - "In_progress", - "Valve_characteristic_found", - "Valve_characteristic_lost" - ], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "nothing", - "suggested_display_precision": null, - "unit": null, - "bit_states": { + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-adaptation_run_status", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossAdaptationRunStatus", + "translation_key": "adaptation_run_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DanfossAdaptationRunStatus", + "available": true, + "state": "nothing", "In_progress": false, "Valve_characteristic_found": false, "Valve_characteristic_lost": false - } + }, + "extra_state_attributes": [ + "In_progress", + "Valve_characteristic_found", + "Valve_characteristic_lost" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-load_estimate", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossLoadEstimate", - "translation_key": "load_estimate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 437, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-load_estimate", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossLoadEstimate", + "translation_key": "load_estimate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DanfossLoadEstimate", + "available": true, + "state": 437 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-open_window_detection", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossOpenWindowDetection", - "translation_key": "open_window_detected", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Closed", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-open_window_detection", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossOpenWindowDetection", + "translation_key": "open_window_detected", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DanfossOpenWindowDetection", + "available": true, + "state": "Closed" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-preheat_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DanfossPreheatTime", - "translation_key": "preheat_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-preheat_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DanfossPreheatTime", + "translation_key": "preheat_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DanfossPreheatTime", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "External", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": "External" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-adaptation_run_settings", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossAdaptationRunSettings", - "translation_key": "adaptation_run_enabled", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "adaptation_run_settings", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-adaptation_run_settings", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossAdaptationRunSettings", + "translation_key": "adaptation_run_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "adaptation_run_settings", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "DanfossAdaptationRunSettings", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-external_open_window_detected", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossExternalOpenWindowDetected", - "translation_key": "external_window_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "external_open_window_detected", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-external_open_window_detected", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossExternalOpenWindowDetected", + "translation_key": "external_window_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "external_open_window_detected", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "DanfossExternalOpenWindowDetected", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-heat_available", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossHeatAvailable", - "translation_key": "heat_available", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "heat_available", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-heat_available", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossHeatAvailable", + "translation_key": "heat_available", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "heat_available", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "DanfossHeatAvailable", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-load_balancing_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossLoadBalancingEnable", - "translation_key": "use_load_balancing", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "load_balancing_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-load_balancing_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossLoadBalancingEnable", + "translation_key": "use_load_balancing", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "load_balancing_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "DanfossLoadBalancingEnable", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-mounting_mode_control", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossMountingModeControl", - "translation_key": "mounting_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "mounting_mode_control", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-mounting_mode_control", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossMountingModeControl", + "translation_key": "mounting_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "mounting_mode_control", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "DanfossMountingModeControl", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-radiator_covered", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossRadiatorCovered", - "translation_key": "prioritize_external_temperature_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "radiator_covered", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-radiator_covered", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossRadiatorCovered", + "translation_key": "prioritize_external_temperature_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "radiator_covered", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "DanfossRadiatorCovered", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-window_open_feature", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DanfossWindowOpenFeature", - "translation_key": "use_internal_window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "window_open_feature", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-513-window_open_feature", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DanfossWindowOpenFeature", + "translation_key": "use_internal_window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_open_feature", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "DanfossWindowOpenFeature", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000014", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:a0:3f:1c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:a0:3f:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000014", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/datek-pop.json b/tests/data/devices/datek-pop.json index a4226d73b..8161ba1a7 100644 --- a/tests/data/devices/datek-pop.json +++ b/tests/data/devices/datek-pop.json @@ -354,327 +354,386 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.38, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.38 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT", + "active_power_max": 2245.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": 2245.0, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 50.403, + "measurement_type": "ACTIVE_MEASUREMENT", + "ac_frequency_max": 54.824 + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 50.403, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": 54.824, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT", + "rms_current_max": 9.591 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": 9.591, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 236.33, + "measurement_type": "ACTIVE_MEASUREMENT", + "rms_voltage_max": 242.54 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 236.33, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": 242.54, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:d1:2a:c9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:d1:2a:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/datek-ssds.json b/tests/data/devices/datek-ssds.json index 5cefefde3..6b7f60cae 100644 --- a/tests/data/devices/datek-ssds.json +++ b/tests/data/devices/datek-ssds.json @@ -201,160 +201,189 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_voltage": 25.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 25.5 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 24.35, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 24.35 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/develco-products-a-s-zhemi-zigbee-external-meter-interface.json b/tests/data/devices/develco-products-a-s-zhemi-zigbee-external-meter-interface.json index e91c24db6..c8a827a73 100644 --- a/tests/data/devices/develco-products-a-s-zhemi-zigbee-external-meter-interface.json +++ b/tests/data/devices/develco-products-a-s-zhemi-zigbee-external-meter-interface.json @@ -291,137 +291,164 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:57:64:bf:25-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:57:64:bf:25", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:57:64:bf:25-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:57:64:bf:25", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:57:64:bf:25-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:57:64:bf:25", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 87, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:57:64:bf:25-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:57:64:bf:25", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 87 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:57:64:bf:25-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:57:64:bf:25", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:57:64:bf:25-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:57:64:bf:25", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:57:64:bf:25-2-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:57:64:bf:25-2-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:57:64:bf:25", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 1140, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:57:64:bf:25", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 1140, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:57:64:bf:25-2-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:57:64:bf:25-2-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:57:64:bf:25", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 42317.93, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:57:64:bf:25", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 42317.93, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ] }, diff --git a/tests/data/devices/digi-xbee3.json b/tests/data/devices/digi-xbee3.json index ded51c6a9..c8d85941c 100644 --- a/tests/data/devices/digi-xbee3.json +++ b/tests/data/devices/digi-xbee3.json @@ -484,490 +484,600 @@ "zha_lib_entities": { "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-218-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 218, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1023.0, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-218-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 218, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1023.0, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-219-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 219, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1023.0, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-219-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 219, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1023.0, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-208-12", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DigiAnalogInput", - "translation_key": "analog_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 208, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-208-12", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DigiAnalogInput", + "translation_key": "analog_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 208, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DigiAnalogInput", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-209-12", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DigiAnalogInput", - "translation_key": "analog_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 209, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-209-12", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DigiAnalogInput", + "translation_key": "analog_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 209, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DigiAnalogInput", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-210-12", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DigiAnalogInput", - "translation_key": "analog_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 210, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-210-12", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DigiAnalogInput", + "translation_key": "analog_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 210, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DigiAnalogInput", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-211-12", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DigiAnalogInput", - "translation_key": "analog_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 211, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-211-12", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DigiAnalogInput", + "translation_key": "analog_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 211, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DigiAnalogInput", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-215-12", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DigiAnalogInput", - "translation_key": "analog_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 215, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-215-12", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DigiAnalogInput", + "translation_key": "analog_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 215, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "DigiAnalogInput", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-208-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 208, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-208-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 208, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-209-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 209, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-209-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 209, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-210-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 210, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-210-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 210, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-211-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 211, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-211-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 211, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-212-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 212, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-212-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 212, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-213-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 213, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-213-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 213, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-214-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 214, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-214-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 214, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-215-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 215, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-215-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 215, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-216-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 216, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-216-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 216, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-217-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 217, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-217-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 217, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-218-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 218, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-218-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 218, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-219-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 219, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-219-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 219, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-220-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 220, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-220-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 220, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-221-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 221, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-221-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 221, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:3f:91:6d-222-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", - "endpoint_id": 222, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:3f:91:6d-222-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:3f:91:6d", + "endpoint_id": 222, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } } ] }, diff --git a/tests/data/devices/ecodim-bv-eco-dim-05-zigbee-0x00000001.json b/tests/data/devices/ecodim-bv-eco-dim-05-zigbee-0x00000001.json index 973e98a8e..2c9e40ce8 100644 --- a/tests/data/devices/ecodim-bv-eco-dim-05-zigbee-0x00000001.json +++ b/tests/data/devices/ecodim-bv-eco-dim-05-zigbee-0x00000001.json @@ -355,267 +355,328 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 254 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-2-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-2-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 179, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 179 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -77, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -77 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c4:e7:80:b2-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c4:e7:80:b2-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c4:e7:80:b2", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ecodim-bv-ecodim-zigbee-3-0.json b/tests/data/devices/ecodim-bv-ecodim-zigbee-3-0.json index 1802c9951..2c178f528 100644 --- a/tests/data/devices/ecodim-bv-ecodim-zigbee-3-0.json +++ b/tests/data/devices/ecodim-bv-ecodim-zigbee-3-0.json @@ -365,267 +365,328 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 190, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 190, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": 210, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 210, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-2-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 210, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-2-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 210 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:45:d8:51-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:45:d8:51", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:45:d8:51-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:45:d8:51", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ecolink-4655bc0-r-0x20160921.json b/tests/data/devices/ecolink-4655bc0-r-0x20160921.json index 1e94cd8a0..de9e420d6 100644 --- a/tests/data/devices/ecolink-4655bc0-r-0x20160921.json +++ b/tests/data/devices/ecolink-4655bc0-r-0x20160921.json @@ -249,184 +249,220 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": 2.8 + ] }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 25.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:15:94:aa-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:11:15:94:aa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x20160921", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:15:94:aa-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:11:15:94:aa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x20160921", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/enktro-acmidea.json b/tests/data/devices/enktro-acmidea.json index 594bcb9e5..877d80c62 100644 --- a/tests/data/devices/enktro-acmidea.json +++ b/tests/data/devices/enktro-acmidea.json @@ -267,176 +267,216 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:10:2d:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:10:2d:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:10:2d:81-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:10:2d:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 24.5, - "outdoor_temperature": null, - "target_temperature": 20.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 17.0, - "supported_features": 395, - "fan_modes": [ - "auto", - "on" - ], - "preset_modes": [], - "hvac_modes": [ - "off", - "heat_cool", - "cool", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": 2600, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:10:2d:81-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f9:10:2d:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 17.0, + "supported_features": 395, + "fan_modes": [ + "auto", + "on" + ], + "preset_modes": [], + "hvac_modes": [ + "off", + "heat_cool", + "cool", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 24.5, + "outdoor_temperature": null, + "target_temperature": 20.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": 2600, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:10:2d:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:10:2d:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:10:2d:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:10:2d:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:10:2d:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:10:2d:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:10:2d:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:10:2d:81-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:10:2d:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/ericsity-gl-c-008p-0x25013001.json b/tests/data/devices/ericsity-gl-c-008p-0x25013001.json index ce01eac6f..0491d2639 100644 --- a/tests/data/devices/ericsity-gl-c-008p-0x25013001.json +++ b/tests/data/devices/ericsity-gl-c-008p-0x25013001.json @@ -287,237 +287,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.14599832150759137, - 0.04798962386511025 - ], - "color_temp": 455, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 158, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 158, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.14599832150759137, + 0.04798962386511025 + ], + "color_temp": 455, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 158, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 158, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:de:fe:e0:60:b8", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x25013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:de:fe:e0:60:b8-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:de:fe:e0:60:b8", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x25013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ericsity-gl-c-009p-0x25013001.json b/tests/data/devices/ericsity-gl-c-009p-0x25013001.json index 75d1b52bb..8a0cf6176 100644 --- a/tests/data/devices/ericsity-gl-c-009p-0x25013001.json +++ b/tests/data/devices/ericsity-gl-c-009p-0x25013001.json @@ -323,232 +323,280 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": 500, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 158, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 158, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": 500, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 158, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 158, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:44:c6:4d:75:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x25013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:44:c6:4d:75:c2-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:44:c6:4d:75:c2", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x25013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/espressif-zigbeeanalogdevice.json b/tests/data/devices/espressif-zigbeeanalogdevice.json index 90f5adc39..f118db1bb 100644 --- a/tests/data/devices/espressif-zigbeeanalogdevice.json +++ b/tests/data/devices/espressif-zigbeeanalogdevice.json @@ -223,128 +223,153 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a2:73:55-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a2:73:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a2:73:55-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a2:73:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": "Fan Speed (RPM)", - "unique_id": "ab:cd:ef:12:39:a2:73:55-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a2:73:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "auto", - "native_max_value": 1023, - "native_min_value": 0, - "native_step": null, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Fan Speed (RPM)", + "unique_id": "ab:cd:ef:12:39:a2:73:55-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a2:73:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1023, + "native_min_value": 0, + "native_step": null, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 0.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a2:73:55-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a2:73:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a2:73:55-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a2:73:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a2:73:55-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a2:73:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a2:73:55-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a2:73:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": "Power Consumption (Watts)", - "unique_id": "ab:cd:ef:12:39:a2:73:55-1-12-analog_input", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AnalogInputSensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a2:73:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 280.0, - "suggested_display_precision": null, - "unit": "W" + "info_object": { + "fallback_name": "Power Consumption (Watts)", + "unique_id": "ab:cd:ef:12:39:a2:73:55-1-12-analog_input", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AnalogInputSensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a2:73:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "W" + }, + "state": { + "class_name": "AnalogInputSensor", + "available": true, + "state": 280.0 + } } ] }, diff --git a/tests/data/devices/espressif-zigbeebinaryanalogdevice.json b/tests/data/devices/espressif-zigbeebinaryanalogdevice.json index 9f3161fd5..a02fe39c0 100644 --- a/tests/data/devices/espressif-zigbeebinaryanalogdevice.json +++ b/tests/data/devices/espressif-zigbeebinaryanalogdevice.json @@ -120,100 +120,120 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a2:73:56-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a2:73:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a2:73:56-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a2:73:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a2:73:56-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a2:73:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a2:73:56-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a2:73:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a2:73:56-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a2:73:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a2:73:56-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a2:73:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Entity Description", - "unique_id": "ab:cd:ef:12:39:a2:73:56-1-16", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "BinaryOutputSwitch", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a2:73:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true + "info_object": { + "fallback_name": "Entity Description", + "unique_id": "ab:cd:ef:12:39:a2:73:56-1-16", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "BinaryOutputSwitch", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:39:a2:73:56", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "BinaryOutputSwitch", + "state": true, + "available": true + } } ] }, diff --git a/tests/data/devices/espressif-zigbeecarbondioxidesensor.json b/tests/data/devices/espressif-zigbeecarbondioxidesensor.json index 01f61e874..1581a594d 100644 --- a/tests/data/devices/espressif-zigbeecarbondioxidesensor.json +++ b/tests/data/devices/espressif-zigbeecarbondioxidesensor.json @@ -114,100 +114,120 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:f5:bd:ff:fe:01:86:64", - "endpoint_id": 10, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:f5:bd:ff:fe:01:86:64", + "endpoint_id": 10, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:f5:bd:ff:fe:01:86:64", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f0:f5:bd:ff:fe:01:86:64", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:f5:bd:ff:fe:01:86:64", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f0:f5:bd:ff:fe:01:86:64", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "f0:f5:bd:ff:fe:01:86:64", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 323.9999932702631, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:01:86:64-10-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "f0:f5:bd:ff:fe:01:86:64", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "CarbonDioxideConcentration", + "available": true, + "state": 323.9999932702631 + } } ] }, diff --git a/tests/data/devices/eurotronic-spzb0001-0x4501001f.json b/tests/data/devices/eurotronic-spzb0001-0x4501001f.json index 2fb042622..78ddfccc6 100644 --- a/tests/data/devices/eurotronic-spzb0001-0x4501001f.json +++ b/tests/data/devices/eurotronic-spzb0001-0x4501001f.json @@ -292,334 +292,405 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 22.5, - "outdoor_temperature": null, - "target_temperature": 20.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 28.5, - "min_temp": 7.5, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": 0, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": 2000 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 28.5, + "min_temp": 7.5, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 22.5, + "outdoor_temperature": null, + "target_temperature": 20.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": 0, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": 2000 + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "ThermostatLocalTempCalibration", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 28.5, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 7.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 7.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 28.5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 7.5, - "mode": "box", - "native_max_value": 28.5, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 28.5, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 7.5 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 65.0, + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 22.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 22.9 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:62:3d:21-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:62:3d:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x4501001f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:62:3d:21-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:62:3d:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x4501001f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001200.json b/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001200.json index 02fb52976..a360e22a4 100644 --- a/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001200.json +++ b/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001200.json @@ -305,289 +305,348 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.30452429999237046, - 0.3155870908674754 - ], - "color_temp": 142, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 142, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 142, + "max_mireds": 500 + }, + "state": { + "class_name": "ForceOnLight", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.30452429999237046, + 0.3155870908674754 + ], + "color_temp": 142, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 239, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 142, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 142, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 239 + } }, { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "7c:b9:4c:77:33:d0:00:00-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "7c:b9:4c:77:33:d0:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001200", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "7c:b9:4c:77:33:d0:00:00-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "7c:b9:4c:77:33:d0:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001200", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001203.json b/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001203.json index 650df450e..67060caf3 100644 --- a/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001203.json +++ b/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001203.json @@ -299,289 +299,348 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.31273365377279316, - 0.3286945906767376 - ], - "color_temp": 153, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 142, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 142, + "max_mireds": 500 + }, + "state": { + "class_name": "ForceOnLight", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.31273365377279316, + 0.3286945906767376 + ], + "color_temp": 153, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 142, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 142, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 108, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 108 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -84, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -84 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001203", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:6f:ce:74-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:6f:ce:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001203", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ewelink-ck-tlsr8656-ss5-01-7000-0x00001102.json b/tests/data/devices/ewelink-ck-tlsr8656-ss5-01-7000-0x00001102.json index 11e21c58c..e28a64c2c 100644 --- a/tests/data/devices/ewelink-ck-tlsr8656-ss5-01-7000-0x00001102.json +++ b/tests/data/devices/ewelink-ck-tlsr8656-ss5-01-7000-0x00001102.json @@ -172,137 +172,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:82:43:82-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:82:43:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:82:43:82-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:82:43:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:82:43:82-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:82:43:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 196, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:82:43:82-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:82:43:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 196 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:82:43:82-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:82:43:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -51, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:82:43:82-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:82:43:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -51 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:82:43:82-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:82:43:82-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:82:43:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:40:82:43:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:82:43:82-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:82:43:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001102", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:82:43:82-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:82:43:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001102", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ewelink-ds01.json b/tests/data/devices/ewelink-ds01.json index 48f979ddc..107e58bd5 100644 --- a/tests/data/devices/ewelink-ds01.json +++ b/tests/data/devices/ewelink-ds01.json @@ -180,131 +180,155 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:cb:5d:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:39:cb:5d:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:cb:5d:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:cb:5d:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:cb:5d:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 232, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:cb:5d:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 232 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:cb:5d:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -53, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:cb:5d:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -53 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:cb:5d:55-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:cb:5d:55", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:39:cb:5d:55", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.9 + ] } ] }, diff --git a/tests/data/devices/ewelink-ms01.json b/tests/data/devices/ewelink-ms01.json index 7d14fc587..777aaacb3 100644 --- a/tests/data/devices/ewelink-ms01.json +++ b/tests/data/devices/ewelink-ms01.json @@ -180,131 +180,155 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:7d:ad:d6-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:5e:7d:ad:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ] }, diff --git a/tests/data/devices/ewelink-sa-003-zigbee.json b/tests/data/devices/ewelink-sa-003-zigbee.json index af908947c..72ba880db 100644 --- a/tests/data/devices/ewelink-sa-003-zigbee.json +++ b/tests/data/devices/ewelink-sa-003-zigbee.json @@ -140,100 +140,120 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:1d:8b:65:1c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:1d:8b:65:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:1d:8b:65:1c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:1d:8b:65:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:1d:8b:65:1c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:1d:8b:65:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:1d:8b:65:1c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:1d:8b:65:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:1d:8b:65:1c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:1d:8b:65:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:1d:8b:65:1c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:1d:8b:65:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:1d:8b:65:1c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:1d:8b:65:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:1d:8b:65:1c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:12:4b:00:1d:8b:65:1c", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ] }, diff --git a/tests/data/devices/ewelink-snzb-01p-0x00002000.json b/tests/data/devices/ewelink-snzb-01p-0x00002000.json index 5b5aa87e9..59128b1b4 100644 --- a/tests/data/devices/ewelink-snzb-01p-0x00002000.json +++ b/tests/data/devices/ewelink-snzb-01p-0x00002000.json @@ -178,137 +178,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "84:ba:20:ff:fe:d2:41:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "84:ba:20:ff:fe:d2:41:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "84:ba:20:ff:fe:d2:41:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "84:ba:20:ff:fe:d2:41:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "84:ba:20:ff:fe:d2:41:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "84:ba:20:ff:fe:d2:41:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "84:ba:20:ff:fe:d2:41:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "84:ba:20:ff:fe:d2:41:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.9 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "84:ba:20:ff:fe:d2:41:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00002000", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "84:ba:20:ff:fe:d2:41:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00002000", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ewelink-snzb-01p-0x00002200.json b/tests/data/devices/ewelink-snzb-01p-0x00002200.json index 7fe1be30e..e2e88652d 100644 --- a/tests/data/devices/ewelink-snzb-01p-0x00002200.json +++ b/tests/data/devices/ewelink-snzb-01p-0x00002200.json @@ -178,137 +178,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:05:59:94-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:05:59:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:05:59:94-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:05:59:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:05:59:94-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:05:59:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 123, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:05:59:94-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:05:59:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 123 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:05:59:94-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:05:59:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:05:59:94-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:05:59:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:05:59:94-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:05:59:94-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:05:59:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:6a:05:59:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.1 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:05:59:94-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:05:59:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00002200", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:05:59:94-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:05:59:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00002200", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ewelink-snzb-02p-0x00002100.json b/tests/data/devices/ewelink-snzb-02p-0x00002100.json index 2dc728035..6684c2fbb 100644 --- a/tests/data/devices/ewelink-snzb-02p-0x00002100.json +++ b/tests/data/devices/ewelink-snzb-02p-0x00002100.json @@ -198,183 +198,216 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 24.2, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 24.2 + } }, { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 47.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 47.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00002100", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "90:35:ea:ff:fe:0d:8a:5e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:35:ea:ff:fe:0d:8a:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00002100", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ewelink-snzb-03p-0x00002201.json b/tests/data/devices/ewelink-snzb-03p-0x00002201.json index 17d5670cb..4f485d526 100644 --- a/tests/data/devices/ewelink-snzb-03p-0x00002201.json +++ b/tests/data/devices/ewelink-snzb-03p-0x00002201.json @@ -237,211 +237,250 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1030-presence_detection_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "SonoffPresenceSenorTimeout", - "translation_key": "presence_detection_timeout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 60, - "mode": "box", - "native_max_value": 60, - "native_min_value": 15, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1030-presence_detection_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "SonoffPresenceSenorTimeout", + "translation_key": "presence_detection_timeout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 60, + "native_min_value": 15, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "SonoffPresenceSenorTimeout", + "available": true, + "state": 60 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.1 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00002201", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:2e:18:c7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:2e:18:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00002201", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ewelink-snzb-04p-0x00002200.json b/tests/data/devices/ewelink-snzb-04p-0x00002200.json index 30c572146..33b34ca0d 100644 --- a/tests/data/devices/ewelink-snzb-04p-0x00002200.json +++ b/tests/data/devices/ewelink-snzb-04p-0x00002200.json @@ -249,183 +249,217 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:81:05:49-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:81:05:49-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:81:81:05:49-1-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "tamper" + "info_object": { + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:81:81:05:49-1-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "tamper" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:81:05:49-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:81:05:49-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:81:05:49-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:81:05:49-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:81:05:49-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:81:05:49-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:81:05:49-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:81:05:49-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:81:05:49-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:81:05:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00002200", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:81:05:49-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:81:05:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00002200", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ewelink-th01.json b/tests/data/devices/ewelink-th01.json index 7773db1d7..29ecf120f 100644 --- a/tests/data/devices/ewelink-th01.json +++ b/tests/data/devices/ewelink-th01.json @@ -166,153 +166,182 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:93:68:a8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:62:93:68:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:93:68:a8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:62:93:68:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:93:68:a8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:62:93:68:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 192, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:93:68:a8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:62:93:68:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 192 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:93:68:a8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:62:93:68:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -63, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:93:68:a8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:62:93:68:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -63 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:93:68:a8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:93:68:a8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:62:93:68:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:62:93:68:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.1 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:93:68:a8-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:62:93:68:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 26.6, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:93:68:a8-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:62:93:68:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 26.6 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:93:68:a8-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:62:93:68:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 57.75, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:93:68:a8-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:62:93:68:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 57.75 + } } ] }, diff --git a/tests/data/devices/ewelink-wb01.json b/tests/data/devices/ewelink-wb01.json index 21f9c4b81..b405c6961 100644 --- a/tests/data/devices/ewelink-wb01.json +++ b/tests/data/devices/ewelink-wb01.json @@ -146,107 +146,126 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:25:12:e0:f9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:25:12:e0:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:25:12:e0:f9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:25:12:e0:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:25:12:e0:f9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:25:12:e0:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:25:12:e0:f9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:25:12:e0:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:25:12:e0:f9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:25:12:e0:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:25:12:e0:f9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:25:12:e0:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:25:12:e0:f9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:25:12:e0:f9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:25:12:e0:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:12:4b:00:25:12:e0:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ] }, diff --git a/tests/data/devices/ewelink-zb-sw01.json b/tests/data/devices/ewelink-zb-sw01.json index ec98e3e39..331104b3f 100644 --- a/tests/data/devices/ewelink-zb-sw01.json +++ b/tests/data/devices/ewelink-zb-sw01.json @@ -140,116 +140,144 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "ForceOnLight", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:28:3c:8f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f8:28:3c:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/ewelink-zb-sw02.json b/tests/data/devices/ewelink-zb-sw02.json index efb599261..76240d18a 100644 --- a/tests/data/devices/ewelink-zb-sw02.json +++ b/tests/data/devices/ewelink-zb-sw02.json @@ -208,153 +208,194 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:23:b7:d0:ce-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:23:b7:d0:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:23:b7:d0:ce-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:23:b7:d0:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:23:b7:d0:ce-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:23:b7:d0:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:23:b7:d0:ce-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:23:b7:d0:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "ForceOnLight", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:23:b7:d0:ce-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:23:b7:d0:ce", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:23:b7:d0:ce-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:23:b7:d0:ce", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "ForceOnLight", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:23:b7:d0:ce-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:23:b7:d0:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:23:b7:d0:ce-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:23:b7:d0:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:23:b7:d0:ce-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:23:b7:d0:ce", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:23:b7:d0:ce-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:23:b7:d0:ce", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/ezviz-cs-t55-r100-g-0x00000002.json b/tests/data/devices/ezviz-cs-t55-r100-g-0x00000002.json index 199549b28..4708ebcb7 100644 --- a/tests/data/devices/ezviz-cs-t55-r100-g-0x00000002.json +++ b/tests/data/devices/ezviz-cs-t55-r100-g-0x00000002.json @@ -395,300 +395,364 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": 35.0, - "hvac_action": null, - "hvac_mode": "heat_cool", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 35, - "min_temp": 7, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off" - ], - "sys_mode": "[1]/heat_cool", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 3500, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 35, + "min_temp": 7, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": 35.0, + "hvac_action": null, + "hvac_mode": "heat_cool", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[1]/heat_cool", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 3500, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 50.0, + "battery_voltage": 3.3 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 50.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.3 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 28.5, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 28.5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:90:be:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:90:be:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:90:be:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/feibit-inc-co-fzb56-zcw27lx1-0.json b/tests/data/devices/feibit-inc-co-fzb56-zcw27lx1-0.json index 5a42ac20b..1f1e39bbd 100644 --- a/tests/data/devices/feibit-inc-co-fzb56-zcw27lx1-0.json +++ b/tests/data/devices/feibit-inc-co-fzb56-zcw27lx1-0.json @@ -303,123 +303,152 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:1c:46:5f:b1-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:1c:46:5f:b1", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:1c:46:5f:b1-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:1c:46:5f:b1", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:1c:46:5f:b1-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:1c:46:5f:b1", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 76, - "xy_color": [ - 0.6969863431754024, - 0.2979934386205844 - ], - "color_temp": 222, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 210, - "max_mireds": 234 + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:1c:46:5f:b1-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:12:4b:00:1c:46:5f:b1", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 210, + "max_mireds": 234 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 76, + "xy_color": [ + 0.6969863431754024, + 0.2979934386205844 + ], + "color_temp": 222, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:1c:46:5f:b1-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:1c:46:5f:b1", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:1c:46:5f:b1-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:1c:46:5f:b1", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:1c:46:5f:b1-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:1c:46:5f:b1", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:1c:46:5f:b1-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:1c:46:5f:b1", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-aqszb-110-0x00040001.json b/tests/data/devices/frient-a-s-aqszb-110-0x00040001.json index 0acc467a8..1e48f4138 100644 --- a/tests/data/devices/frient-a-s-aqszb-110-0x00040001.json +++ b/tests/data/devices/frient-a-s-aqszb-110-0x00040001.json @@ -263,206 +263,247 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": -55, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -55 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 75.0, + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 75.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 2.9 + ] }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 20.6, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.6 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 41.8, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 41.8 + } }, { - "fallback_name": "VOC level", - "unique_id": "00:15:bc:00:36:00:1f:ee-38-voc_level", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds_parts", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "ppb" + "info_object": { + "fallback_name": "VOC level", + "unique_id": "00:15:bc:00:36:00:1f:ee-38-voc_level", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds_parts", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "ppb" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:36:00:1f:ee-38-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:36:00:1f:ee", - "endpoint_id": 38, - "available": true, - "group_id": null, - "installed_version": "0x00040001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:36:00:1f:ee-38-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:36:00:1f:ee", + "endpoint_id": 38, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00040001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-emizb-141-0x00030102.json b/tests/data/devices/frient-a-s-emizb-141-0x00030102.json index 8c51d73e8..f2b296e8f 100644 --- a/tests/data/devices/frient-a-s-emizb-141-0x00030102.json +++ b/tests/data/devices/frient-a-s-emizb-141-0x00030102.json @@ -328,247 +328,295 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } }, { - "fallback_name": "Reset summation delivered", - "unique_id": "00:15:bc:00:1b:10:01:5c-2-current_summation", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "reset_summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "attribute_name": "current_summation", - "attribute_value": 0 + "info_object": { + "fallback_name": "Reset summation delivered", + "unique_id": "00:15:bc:00:1b:10:01:5c-2-current_summation", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "reset_summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "current_summation", + "attribute_value": 0 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } } ], "number": [ { - "fallback_name": "Pulse configuration", - "unique_id": "00:15:bc:00:1b:10:01:5c-2-pulse_configuration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "pulse_configuration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 10000, - "native_min_value": 50, - "native_step": 1, - "native_unit_of_measurement": "pulses/kWh" + "info_object": { + "fallback_name": "Pulse configuration", + "unique_id": "00:15:bc:00:1b:10:01:5c-2-pulse_configuration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "pulse_configuration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 10000, + "native_min_value": 50, + "native_step": 1, + "native_unit_of_measurement": "pulses/kWh" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": -53, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -53 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 3.1 + ] }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:1b:10:01:5c-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1b:10:01:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": "0x00030102", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1b:10:01:5c-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1b:10:01:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00030102", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-emizb-151-0x00030107.json b/tests/data/devices/frient-a-s-emizb-151-0x00030107.json index a39dac959..15cd8f1c4 100644 --- a/tests/data/devices/frient-a-s-emizb-151-0x00030107.json +++ b/tests/data/devices/frient-a-s-emizb-151-0x00030107.json @@ -1172,487 +1172,565 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 1821, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 1821, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 41984.478, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 41984.478, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummationReceived", + "available": true, + "state": 9532.077, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 9532.077, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 517.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 517.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-active_power_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhB", - "translation_key": "active_power_ph_b", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-active_power_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhB", + "translation_key": "active_power_ph_b", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePowerPhB", + "available": true, + "state": 1274.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max_ph_b", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 1274.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-active_power_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhC", - "translation_key": "active_power_ph_c", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-active_power_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhC", + "translation_key": "active_power_ph_c", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePowerPhC", + "available": true, + "state": 29.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max_ph_c", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 29.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 5.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 5.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_current_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "translation_key": "rms_current_ph_b", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_current_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "translation_key": "rms_current_ph_b", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "available": true, + "state": 5.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max_ph_b" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 5.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_current_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "translation_key": "rms_current_ph_c", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_current_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "translation_key": "rms_current_ph_c", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max_ph_c" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 228.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 228.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_voltage_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "translation_key": "rms_voltage_ph_b", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_voltage_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "translation_key": "rms_voltage_ph_b", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "available": true, + "state": 228.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max_ph_b" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 228.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_voltage_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "translation_key": "rms_voltage_ph_c", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-rms_voltage_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "translation_key": "rms_voltage_ph_c", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "available": true, + "state": 227.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max_ph_c" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 227.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 1821.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 1821.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT, PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:74:0f:89:c3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": "0x00030107", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:74:0f:89:c3-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:74:0f:89:c3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00030107", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-flszb-110-0x00040001.json b/tests/data/devices/frient-a-s-flszb-110-0x00040001.json index ad568f03e..7941fac59 100644 --- a/tests/data/devices/frient-a-s-flszb-110-0x00040001.json +++ b/tests/data/devices/frient-a-s-flszb-110-0x00040001.json @@ -301,209 +301,248 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-35-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-35-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-35-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-35-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-35-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-35-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_voltage": 3.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.2 + ] }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 21.93, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 21.93 + } } ], "siren": [ { - "fallback_name": "Siren", - "unique_id": "00:15:bc:00:33:00:76:9a-35-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "BasicSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": false, - "available_tones": {}, - "supported_features": 19 + "info_object": { + "fallback_name": "Siren", + "unique_id": "00:15:bc:00:33:00:76:9a-35-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "BasicSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "available_tones": {}, + "supported_features": 19 + }, + "state": { + "class_name": "BasicSiren", + "available": true, + "state": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:33:00:76:9a-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:33:00:76:9a", - "endpoint_id": 35, - "available": true, - "group_id": null, - "installed_version": "0x00040001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:33:00:76:9a-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:33:00:76:9a", + "endpoint_id": 35, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00040001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-hmszb-120-0x00040001.json b/tests/data/devices/frient-a-s-hmszb-120-0x00040001.json index bfc08b2f6..ad7ab334b 100644 --- a/tests/data/devices/frient-a-s-hmszb-120-0x00040001.json +++ b/tests/data/devices/frient-a-s-hmszb-120-0x00040001.json @@ -251,183 +251,219 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": -55, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -55 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 20.6, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.6 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 41.5, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 41.5 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:35:00:26:aa-38-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:35:00:26:aa", - "endpoint_id": 38, - "available": true, - "group_id": null, - "installed_version": "0x00040001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:35:00:26:aa-38-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:35:00:26:aa", + "endpoint_id": 38, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00040001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-iomzb-110-0x00020001.json b/tests/data/devices/frient-a-s-iomzb-110-0x00020001.json index 86ba482e4..a1883c25c 100644 --- a/tests/data/devices/frient-a-s-iomzb-110-0x00020001.json +++ b/tests/data/devices/frient-a-s-iomzb-110-0x00020001.json @@ -521,241 +521,291 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "IN1", - "unique_id": "00:15:bc:00:42:00:09:1c-112-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "frient_in_1", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 112, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": "IN1", + "unique_id": "00:15:bc:00:42:00:09:1c-112-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "frient_in_1", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 112, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } }, { - "fallback_name": "IN2", - "unique_id": "00:15:bc:00:42:00:09:1c-113-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "frient_in_2", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 113, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": "IN2", + "unique_id": "00:15:bc:00:42:00:09:1c-113-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "frient_in_2", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 113, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } }, { - "fallback_name": "IN3", - "unique_id": "00:15:bc:00:42:00:09:1c-114-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "frient_in_3", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 114, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": "IN3", + "unique_id": "00:15:bc:00:42:00:09:1c-114-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "frient_in_3", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 114, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } }, { - "fallback_name": "IN4", - "unique_id": "00:15:bc:00:42:00:09:1c-115-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "frient_in_4", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 115, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": "IN4", + "unique_id": "00:15:bc:00:42:00:09:1c-115-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "frient_in_4", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 115, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:42:00:09:1c-112-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 112, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:42:00:09:1c-112-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 112, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:42:00:09:1c-112-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 112, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:42:00:09:1c-112-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 112, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:42:00:09:1c-112-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 112, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:42:00:09:1c-112-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 112, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "COM 1", - "unique_id": "00:15:bc:00:42:00:09:1c-116-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "frient_com_1", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 116, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": "COM 1", + "unique_id": "00:15:bc:00:42:00:09:1c-116-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "frient_com_1", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 116, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": "COM 2", - "unique_id": "00:15:bc:00:42:00:09:1c-117-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "frient_com_2", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 117, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": "COM 2", + "unique_id": "00:15:bc:00:42:00:09:1c-117-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "frient_com_2", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 117, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:42:00:09:1c-112-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:42:00:09:1c", - "endpoint_id": 112, - "available": true, - "group_id": null, - "installed_version": "0x00020001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:42:00:09:1c-112-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:42:00:09:1c", + "endpoint_id": 112, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00020001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-kepzb-110-0x0001060a.json b/tests/data/devices/frient-a-s-kepzb-110-0x0001060a.json index 9d1f72791..76904592a 100644 --- a/tests/data/devices/frient-a-s-kepzb-110-0x0001060a.json +++ b/tests/data/devices/frient-a-s-kepzb-110-0x0001060a.json @@ -240,187 +240,223 @@ "zha_lib_entities": { "alarm_control_panel": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-1281", - "migrate_unique_ids": [], - "platform": "alarm_control_panel", - "class_name": "AlarmControlPanel", - "translation_key": "alarm_control_panel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "alarm_state": "disarmed", - "code_arm_required": false, - "code_format": "number", - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-1281", + "migrate_unique_ids": [], + "platform": "alarm_control_panel", + "class_name": "AlarmControlPanel", + "translation_key": "alarm_control_panel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "code_arm_required": false, + "code_format": "number", + "supported_features": 15 + }, + "state": { + "class_name": "AlarmControlPanel", + "available": true, + "state": "disarmed" + } } ], "binary_sensor": [ { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "native_value": 76, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 76 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "native_value": -92, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -92 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 6.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 6.2 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6d:00:26-44-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6d:00:26", - "endpoint_id": 44, - "available": true, - "group_id": null, - "installed_version": "0x0001060a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6d:00:26-44-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6d:00:26", + "endpoint_id": 44, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0001060a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-kepzb-110-0x00020005.json b/tests/data/devices/frient-a-s-kepzb-110-0x00020005.json index 2f9e9bdc8..eeb16c654 100644 --- a/tests/data/devices/frient-a-s-kepzb-110-0x00020005.json +++ b/tests/data/devices/frient-a-s-kepzb-110-0x00020005.json @@ -259,187 +259,223 @@ "zha_lib_entities": { "alarm_control_panel": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:43:00:4a:39-44-1281", - "migrate_unique_ids": [], - "platform": "alarm_control_panel", - "class_name": "AlarmControlPanel", - "translation_key": "alarm_control_panel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "alarm_state": "disarmed", - "code_arm_required": false, - "code_format": "number", - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:43:00:4a:39-44-1281", + "migrate_unique_ids": [], + "platform": "alarm_control_panel", + "class_name": "AlarmControlPanel", + "translation_key": "alarm_control_panel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "code_arm_required": false, + "code_format": "number", + "supported_features": 15 + }, + "state": { + "class_name": "AlarmControlPanel", + "available": true, + "state": "disarmed" + } } ], "binary_sensor": [ { - "fallback_name": "Tamper", - "unique_id": "00:15:bc:00:43:00:4a:39-44-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": "Tamper", + "unique_id": "00:15:bc:00:43:00:4a:39-44-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:43:00:4a:39-44-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:43:00:4a:39-44-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:43:00:4a:39-44-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:43:00:4a:39-44-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:43:00:4a:39-44-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:43:00:4a:39-44-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:43:00:4a:39-44-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:43:00:4a:39-44-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 65.0, + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 5.3 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "native_value": 65.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 5.3 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:43:00:4a:39-44-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:43:00:4a:39", - "endpoint_id": 44, - "available": true, - "group_id": null, - "installed_version": "0x00020005", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:43:00:4a:39-44-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:43:00:4a:39", + "endpoint_id": 44, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00020005", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-moszb-140-0x00040006.json b/tests/data/devices/frient-a-s-moszb-140-0x00040006.json index 40217239a..91b84af22 100644 --- a/tests/data/devices/frient-a-s-moszb-140-0x00040006.json +++ b/tests/data/devices/frient-a-s-moszb-140-0x00040006.json @@ -481,251 +481,302 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 34, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 34, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 35, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } }, { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 35, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 34, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 34, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 34, - "available": true, - "group_id": null, - "native_value": 192, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 34, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 192 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 34, - "available": true, - "group_id": null, - "native_value": -52, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-34-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 34, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -52 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 20.43, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.43 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-39-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 39, - "available": true, - "group_id": null, - "native_value": 446, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-39-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 39, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 446 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a5:49:dd:25", - "endpoint_id": 35, - "available": true, - "group_id": null, - "installed_version": "0x00040006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a5:49:dd:25-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a5:49:dd:25", + "endpoint_id": 35, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00040006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-moszb-153-0x00020006.json b/tests/data/devices/frient-a-s-moszb-153-0x00020006.json index 58ee1b086..3834d4c85 100644 --- a/tests/data/devices/frient-a-s-moszb-153-0x00020006.json +++ b/tests/data/devices/frient-a-s-moszb-153-0x00020006.json @@ -534,283 +534,339 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-34-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 34, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-34-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 34, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 35, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-34-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 34, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-34-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 34, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-34-1030-pir_o_to_u_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", - "translation_key": "pir_o_to_u_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 34, - "available": true, - "group_id": null, - "native_value": 240, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-34-1030-pir_o_to_u_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", + "translation_key": "pir_o_to_u_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 34, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", + "available": true, + "state": 240 + } }, { - "fallback_name": "Sensitivity level", - "unique_id": "00:15:bc:00:1a:10:8a:e5-35-current_zone_sensitivity_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "sensitivity_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 4, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Sensitivity level", + "unique_id": "00:15:bc:00:1a:10:8a:e5-35-current_zone_sensitivity_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "sensitivity_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 35, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 4, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-34-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 34, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-34-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 34, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-34-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 34, - "available": true, - "group_id": null, - "native_value": -55, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-34-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 34, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -55 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 95.0, + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": 95.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 2.9 + ] }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 22.56, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.56 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-39-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 39, - "available": true, - "group_id": null, - "native_value": 96, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-39-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 39, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 96 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:1a:10:8a:e5-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:1a:10:8a:e5", - "endpoint_id": 35, - "available": true, - "group_id": null, - "installed_version": "0x00020006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:1a:10:8a:e5-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:1a:10:8a:e5", + "endpoint_id": 35, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00020006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-sbtzb-110-0x00020002.json b/tests/data/devices/frient-a-s-sbtzb-110-0x00020002.json index ce600f7e0..dea4b7a53 100644 --- a/tests/data/devices/frient-a-s-sbtzb-110-0x00020002.json +++ b/tests/data/devices/frient-a-s-sbtzb-110-0x00020002.json @@ -251,161 +251,192 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:39:00:52:cd-32-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:39:00:52:cd", - "endpoint_id": 32, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:39:00:52:cd-32-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:39:00:52:cd", + "endpoint_id": 32, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:39:00:52:cd-32-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:39:00:52:cd", - "endpoint_id": 32, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:39:00:52:cd-32-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:39:00:52:cd", + "endpoint_id": 32, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:39:00:52:cd-32-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:39:00:52:cd", - "endpoint_id": 32, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:39:00:52:cd-32-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:39:00:52:cd", + "endpoint_id": 32, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:39:00:52:cd-32-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:39:00:52:cd", - "endpoint_id": 32, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:39:00:52:cd-32-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:39:00:52:cd", + "endpoint_id": 32, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:39:00:52:cd-32-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:39:00:52:cd-32-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:39:00:52:cd", + "endpoint_id": 32, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 80.0, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:bc:00:39:00:52:cd", - "endpoint_id": 32, - "available": true, - "group_id": null, - "native_value": 80.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.8 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:39:00:52:cd-32-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:39:00:52:cd", - "endpoint_id": 32, - "available": true, - "group_id": null, - "installed_version": "0x00020002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:39:00:52:cd-32-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:39:00:52:cd", + "endpoint_id": 32, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00020002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-scazb-141-0x00010803.json b/tests/data/devices/frient-a-s-scazb-141-0x00010803.json index e5dea06c2..21b9b9fc0 100644 --- a/tests/data/devices/frient-a-s-scazb-141-0x00010803.json +++ b/tests/data/devices/frient-a-s-scazb-141-0x00010803.json @@ -466,298 +466,359 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": "Test", - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-test", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "test", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": "Test", + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-test", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "test", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-46-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 46, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-46-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 46, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": 204, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 204 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": -49, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -49 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.9 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 20.37, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.37 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-46-1036", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonMonoxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 46, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-46-1036", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonMonoxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 46, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "CarbonMonoxideConcentration", + "available": true, + "state": 0.0 + } } ], "siren": [ { - "fallback_name": "Siren", - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "BasicSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": false, - "available_tones": {}, - "supported_features": 19 + "info_object": { + "fallback_name": "Siren", + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "BasicSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "available_tones": {}, + "supported_features": 19 + }, + "state": { + "class_name": "BasicSiren", + "available": true, + "state": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", - "endpoint_id": 35, - "available": true, - "group_id": null, - "installed_version": "0x00010803", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:18:f2:e7:e6-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:18:f2:e7:e6", + "endpoint_id": 35, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00010803", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-sirzb-111-0x00020004.json b/tests/data/devices/frient-a-s-sirzb-111-0x00020004.json index 626178152..1bbf7d312 100644 --- a/tests/data/devices/frient-a-s-sirzb-111-0x00020004.json +++ b/tests/data/devices/frient-a-s-sirzb-111-0x00020004.json @@ -275,277 +275,327 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-SirenLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultSirenLevelSelectEntity", - "translation_key": "default_siren_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "current_option": null, - "enum": "SirenLevel", - "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-SirenLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultSirenLevelSelectEntity", + "translation_key": "default_siren_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "enum": "SirenLevel", + "options": [ + "Low level sound", + "Medium level sound", + "High level sound", + "Very high level sound" + ] + }, + "state": { + "class_name": "DefaultSirenLevelSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-Strobe", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeSelectEntity", - "translation_key": "default_strobe", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "current_option": null, - "enum": "Strobe", - "options": [ - "No Strobe", - "Strobe" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-Strobe", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeSelectEntity", + "translation_key": "default_strobe", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "enum": "Strobe", + "options": [ + "No Strobe", + "Strobe" + ] + }, + "state": { + "class_name": "DefaultStrobeSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-StrobeLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeLevelSelectEntity", - "translation_key": "default_strobe_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "current_option": null, - "enum": "StrobeLevel", - "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-StrobeLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeLevelSelectEntity", + "translation_key": "default_strobe_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "enum": "StrobeLevel", + "options": [ + "Low level strobe", + "Medium level strobe", + "High level strobe", + "Very high level strobe" + ] + }, + "state": { + "class_name": "DefaultStrobeLevelSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-WarningMode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultToneSelectEntity", - "translation_key": "default_siren_tone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "current_option": null, - "enum": "WarningMode", - "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-1282-WarningMode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultToneSelectEntity", + "translation_key": "default_siren_tone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "enum": "WarningMode", + "options": [ + "Stop", + "Burglar", + "Fire", + "Emergency", + "Police Panic", + "Fire Panic", + "Emergency Panic" + ] + }, + "state": { + "class_name": "DefaultToneSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": "Battery", - "unique_id": "00:15:bc:00:41:00:6f:8e-43-battery", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "native_value": 5.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": "Battery", + "unique_id": "00:15:bc:00:41:00:6f:8e-43-battery", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 5.0 + } } ], "siren": [ { - "fallback_name": "Siren", - "unique_id": "00:15:bc:00:41:00:6f:8e-43", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "AdvancedSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "is_on": false, - "available_tones": { - "1": "Burglar", - "2": "Fire", - "3": "Emergency", - "4": "Police Panic", - "5": "Fire Panic", - "6": "Emergency Panic" + "info_object": { + "fallback_name": "Siren", + "unique_id": "00:15:bc:00:41:00:6f:8e-43", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "AdvancedSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "available_tones": { + "1": "Burglar", + "2": "Fire", + "3": "Emergency", + "4": "Police Panic", + "5": "Fire Panic", + "6": "Emergency Panic" + }, + "supported_features": 31 }, - "supported_features": 31 + "state": { + "class_name": "AdvancedSiren", + "available": true, + "state": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:41:00:6f:8e-43-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:41:00:6f:8e", - "endpoint_id": 43, - "available": true, - "group_id": null, - "installed_version": "0x00020004", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:41:00:6f:8e-43-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:41:00:6f:8e", + "endpoint_id": 43, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00020004", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-smszb-120-0x00040008.json b/tests/data/devices/frient-a-s-smszb-120-0x00040008.json index f4fd5006d..3f407c905 100644 --- a/tests/data/devices/frient-a-s-smszb-120-0x00040008.json +++ b/tests/data/devices/frient-a-s-smszb-120-0x00040008.json @@ -324,209 +324,250 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-35-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-35-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-35-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-35-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-35-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-35-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 75.0, + "battery_size": "CR123A", + "battery_quantity": 1, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": 75.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR123A", - "battery_quantity": 1, - "battery_voltage": 2.9 + ] }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 22.81, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.81 + } } ], "siren": [ { - "fallback_name": "Siren", - "unique_id": "00:15:bc:00:31:01:f8:92-35-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "BasicSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": false, - "available_tones": {}, - "supported_features": 19 + "info_object": { + "fallback_name": "Siren", + "unique_id": "00:15:bc:00:31:01:f8:92-35-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "BasicSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "available_tones": {}, + "supported_features": 19 + }, + "state": { + "class_name": "BasicSiren", + "available": true, + "state": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:31:01:f8:92-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:31:01:f8:92", - "endpoint_id": 35, - "available": true, - "group_id": null, - "installed_version": "0x00040008", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:31:01:f8:92-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:31:01:f8:92", + "endpoint_id": 35, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00040008", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-smszb-120.json b/tests/data/devices/frient-a-s-smszb-120.json index 7265780d6..fd87f5f8a 100644 --- a/tests/data/devices/frient-a-s-smszb-120.json +++ b/tests/data/devices/frient-a-s-smszb-120.json @@ -306,209 +306,248 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": 212, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 212 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": -47, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -47 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.2 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 23.43, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 23.43 + } } ], "siren": [ { - "fallback_name": "Siren", - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "BasicSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": false, - "available_tones": {}, - "supported_features": 19 + "info_object": { + "fallback_name": "Siren", + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "BasicSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "available_tones": {}, + "supported_features": 19 + }, + "state": { + "class_name": "BasicSiren", + "available": true, + "state": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:1d:92:32", - "endpoint_id": 35, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:1d:92:32-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:1d:92:32", + "endpoint_id": 35, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-splzb-141-0x00020009.json b/tests/data/devices/frient-a-s-splzb-141-0x00020009.json index a5d488a34..d04f1ddf2 100644 --- a/tests/data/devices/frient-a-s-splzb-141-0x00020009.json +++ b/tests/data/devices/frient-a-s-splzb-141-0x00020009.json @@ -562,329 +562,389 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": -56, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -56 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 2.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 2.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.041, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0.041, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": "Device temperature", - "unique_id": "00:15:bc:00:2f:02:19:79-2-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 32, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": "Device temperature", + "unique_id": "00:15:bc:00:2f:02:19:79-2-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 32 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 2.0, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 2.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 59.986, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 59.986, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.037, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "rms_current_max": 0.27 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0.037, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": 0.27, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 123.08, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", + "rms_voltage_max": 125.01 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 123.08, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": 125.01, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:2f:02:19:79-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:2f:02:19:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": "0x00020009", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:2f:02:19:79-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:2f:02:19:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00020009", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/frient-a-s-wiszb-131-0x00020006.json b/tests/data/devices/frient-a-s-wiszb-131-0x00020006.json index d1abbd45e..51cac87ae 100644 --- a/tests/data/devices/frient-a-s-wiszb-131-0x00020006.json +++ b/tests/data/devices/frient-a-s-wiszb-131-0x00020006.json @@ -322,206 +322,247 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-35-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-35-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } }, { - "fallback_name": "Tamper", - "unique_id": "00:15:bc:00:44:01:11:f9-35-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": "Tamper", + "unique_id": "00:15:bc:00:44:01:11:f9-35-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-35-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-35-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-35-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-35-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-35-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": -53, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-35-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -53 + } }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-35-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-35-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 90.0, + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "native_value": 90.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": 2.9 + ] }, { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-38-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 38, - "available": true, - "group_id": null, - "native_value": 20.12, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-38-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 38, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.12 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:bc:00:44:01:11:f9-35-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:bc:00:44:01:11:f9", - "endpoint_id": 35, - "available": true, - "group_id": null, - "installed_version": "0x00020006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:bc:00:44:01:11:f9-35-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:bc:00:44:01:11:f9", + "endpoint_id": 35, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00020006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/gledopto-gl-b-008p-0x00000006.json b/tests/data/devices/gledopto-gl-b-008p-0x00000006.json index cda484bec..ffe8334fc 100644 --- a/tests/data/devices/gledopto-gl-b-008p-0x00000006.json +++ b/tests/data/devices/gledopto-gl-b-008p-0x00000006.json @@ -340,237 +340,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.26890974288548103, - 0.6674143587396048 - ], - "color_temp": 158, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 158, - "max_mireds": 495 + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 158, + "max_mireds": 495 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.26890974288548103, + 0.6674143587396048 + ], + "color_temp": 158, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 17476, - "mode": "auto", - "native_max_value": 495, - "native_min_value": 158, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 495, + "native_min_value": 158, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 17476 + } }, { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 51, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 51 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x00000006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:d6:1e:ab-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:d6:1e:ab", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/gledopto-gl-b-008z.json b/tests/data/devices/gledopto-gl-b-008z.json index 77df1e2db..a58e2a38d 100644 --- a/tests/data/devices/gledopto-gl-b-008z.json +++ b/tests/data/devices/gledopto-gl-b-008z.json @@ -253,123 +253,152 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.19043259327077133, - 0.7200732433051041 - ], - "color_temp": 500, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.19043259327077133, + 0.7200732433051041 + ], + "color_temp": 500, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:5a:bb:1b-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:80:5a:bb:1b", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/gledopto-gl-c-009p-0x17013001.json b/tests/data/devices/gledopto-gl-c-009p-0x17013001.json index 0366a21da..67000a6cb 100644 --- a/tests/data/devices/gledopto-gl-c-009p-0x17013001.json +++ b/tests/data/devices/gledopto-gl-c-009p-0x17013001.json @@ -292,232 +292,280 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 143, - "xy_color": null, - "color_temp": 158, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 158, - "max_mireds": 495 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 158, + "max_mireds": 495 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 143, + "xy_color": null, + "color_temp": 158, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 495, - "native_min_value": 158, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 495, + "native_min_value": 158, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 204, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 204 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x17013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x17013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/gledopto-gl-c-009p-0x25013001.json b/tests/data/devices/gledopto-gl-c-009p-0x25013001.json index 2a7d6deb8..30012337a 100644 --- a/tests/data/devices/gledopto-gl-c-009p-0x25013001.json +++ b/tests/data/devices/gledopto-gl-c-009p-0x25013001.json @@ -203,205 +203,248 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": true, - "brightness": 138, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 138, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 112, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 112 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": -72, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -72 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x25013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x25013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/gledopto-gl-c-009p-0x29013001.json b/tests/data/devices/gledopto-gl-c-009p-0x29013001.json index d472ffd17..7879d3cc2 100644 --- a/tests/data/devices/gledopto-gl-c-009p-0x29013001.json +++ b/tests/data/devices/gledopto-gl-c-009p-0x29013001.json @@ -203,205 +203,248 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 166, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 166, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 200, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 200 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": -61, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -61 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:97:e8:62", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x29013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:97:e8:62-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:97:e8:62", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x29013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/gledopto-gl-sd-301p-0x26013001.json b/tests/data/devices/gledopto-gl-sd-301p-0x26013001.json index 11a69206f..cb5b5da6d 100644 --- a/tests/data/devices/gledopto-gl-sd-301p-0x26013001.json +++ b/tests/data/devices/gledopto-gl-sd-301p-0x26013001.json @@ -292,232 +292,280 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": 495, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 158, - "max_mireds": 495 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 158, + "max_mireds": 495 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": 495, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 495, - "native_min_value": 158, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 495, + "native_min_value": 158, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 120, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 120 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": -81, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -81 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x26013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cb:4a:aa-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cb:4a:aa", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x26013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/gledpopto-gl-c-007p.json b/tests/data/devices/gledpopto-gl-c-007p.json index b546dec15..764270c7e 100644 --- a/tests/data/devices/gledpopto-gl-c-007p.json +++ b/tests/data/devices/gledpopto-gl-c-007p.json @@ -352,237 +352,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 211, - "xy_color": [ - 0.26890974288548103, - 0.6674143587396048 - ], - "color_temp": 495, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 158, - "max_mireds": 495 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 158, + "max_mireds": 495 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 211, + "xy_color": [ + 0.26890974288548103, + 0.6674143587396048 + ], + "color_temp": 495, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 158, - "mode": "auto", - "native_max_value": 495, - "native_min_value": 158, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 495, + "native_min_value": 158, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 158 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 0 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:0d:48:29", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:0d:48:29-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:0d:48:29", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/handshake-finland-agge-zigbee-smart-rotary-dimmer-0x00000002.json b/tests/data/devices/handshake-finland-agge-zigbee-smart-rotary-dimmer-0x00000002.json index 76542efcf..e1898f823 100644 --- a/tests/data/devices/handshake-finland-agge-zigbee-smart-rotary-dimmer-0x00000002.json +++ b/tests/data/devices/handshake-finland-agge-zigbee-smart-rotary-dimmer-0x00000002.json @@ -237,175 +237,213 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:45:62:b6:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:45:62:b6:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:45:62:b6:0e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:45:62:b6:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 137, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:45:62:b6:0e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:45:62:b6:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 137, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:45:62:b6:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 229, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:45:62:b6:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 229 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:45:62:b6:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 136, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:45:62:b6:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 136 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:45:62:b6:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -66, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:45:62:b6:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -66 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:45:62:b6:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:45:62:b6:0e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:45:62:b6:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/heiman-smokesensor-em.json b/tests/data/devices/heiman-smokesensor-em.json index 1b0655a49..7f1fda32c 100644 --- a/tests/data/devices/heiman-smokesensor-em.json +++ b/tests/data/devices/heiman-smokesensor-em.json @@ -181,161 +181,190 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:49:00:53-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:49:00:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:49:00:53-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:5b:49:00:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:49:00:53-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:49:00:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:49:00:53-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:49:00:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:49:00:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:49:00:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:49:00:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:49:00:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:49:00:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:49:00:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:49:00:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:49:00:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:49:00:53-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:49:00:53-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:49:00:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:5b:49:00:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.2 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:49:00:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:49:00:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:49:00:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:49:00:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/hive-mbr1-0x01047320.json b/tests/data/devices/hive-mbr1-0x01047320.json index e95858257..3c3184bf0 100644 --- a/tests/data/devices/hive-mbr1-0x01047320.json +++ b/tests/data/devices/hive-mbr1-0x01047320.json @@ -466,107 +466,127 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01047320", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:d0:af:c8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:d0:af:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01047320", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/hobeian-zg-101zl.json b/tests/data/devices/hobeian-zg-101zl.json index 2cd459606..8f14a7ec7 100644 --- a/tests/data/devices/hobeian-zg-101zl.json +++ b/tests/data/devices/hobeian-zg-101zl.json @@ -387,190 +387,224 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Toggle", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Toggle" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 124, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 124 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -80, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -80 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:41:15:95:9c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:41:15:95:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/hobeian-zg-102zm.json b/tests/data/devices/hobeian-zg-102zm.json index e6f07878f..72bb7bfe0 100644 --- a/tests/data/devices/hobeian-zg-102zm.json +++ b/tests/data/devices/hobeian-zg-102zm.json @@ -178,131 +178,155 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:26:37:f4-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:26:37:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:26:37:f4-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:be:26:37:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:26:37:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:26:37:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:26:37:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:26:37:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:26:37:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:26:37:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 240, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:26:37:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:26:37:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 240 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:26:37:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:26:37:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -40, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:26:37:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:26:37:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -40 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:26:37:f4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:26:37:f4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:26:37:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:be:26:37:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ] }, diff --git a/tests/data/devices/hobeian-zg-204zk.json b/tests/data/devices/hobeian-zg-204zk.json index 06e753d26..b8db1c41c 100644 --- a/tests/data/devices/hobeian-zg-204zk.json +++ b/tests/data/devices/hobeian-zg-204zk.json @@ -197,131 +197,157 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:4e:24:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:32:4e:24:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:4e:24:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:4e:24:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:4e:24:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 160, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:4e:24:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 160 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:4e:24:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:4e:24:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:4e:24:ab-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:4e:24:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "CR2450", + "battery_quantity": 1, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:32:4e:24:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2450", - "battery_quantity": 1, - "battery_voltage": 3.0 + ] } ] }, diff --git a/tests/data/devices/hobeian-zg-204zv.json b/tests/data/devices/hobeian-zg-204zv.json index 2c163767b..d05a81cd9 100644 --- a/tests/data/devices/hobeian-zg-204zv.json +++ b/tests/data/devices/hobeian-zg-204zv.json @@ -225,200 +225,239 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 184, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 184 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -54, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -54 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1475, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 1475 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 23.3, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 23.3 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 41.3, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:4b:d8:42-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:4b:d8:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 41.3 + } } ] }, diff --git a/tests/data/devices/hobeian-zg-229z.json b/tests/data/devices/hobeian-zg-229z.json index 0e3b92193..f704b0e06 100644 --- a/tests/data/devices/hobeian-zg-229z.json +++ b/tests/data/devices/hobeian-zg-229z.json @@ -169,176 +169,213 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:da:48:c9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:da:48:c9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:da:48:c9:d3-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:da:48:c9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:da:48:c9:d3-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:da:48:c9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:da:48:c9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:da:48:c9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:da:48:c9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 86, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:da:48:c9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 86 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:da:48:c9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:da:48:c9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:da:48:c9:d3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:da:48:c9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:da:48:c9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ] }, diff --git a/tests/data/devices/homr-hrmsn01.json b/tests/data/devices/homr-hrmsn01.json index 4eb8d7501..d14dfabf7 100644 --- a/tests/data/devices/homr-hrmsn01.json +++ b/tests/data/devices/homr-hrmsn01.json @@ -413,443 +413,531 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-10", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 10, - "available": true, - "group_id": null, - "on": true, - "brightness": 255, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 0, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-10", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 10, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 255, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 0, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-10-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-10-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 10, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 0 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-SirenLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultSirenLevelSelectEntity", - "translation_key": "default_siren_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "SirenLevel", - "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" - ] + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-SirenLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultSirenLevelSelectEntity", + "translation_key": "default_siren_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SirenLevel", + "options": [ + "Low level sound", + "Medium level sound", + "High level sound", + "Very high level sound" + ] + }, + "state": { + "class_name": "DefaultSirenLevelSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-Strobe", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeSelectEntity", - "translation_key": "default_strobe", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "Strobe", - "options": [ - "No Strobe", - "Strobe" - ] + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-Strobe", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeSelectEntity", + "translation_key": "default_strobe", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "Strobe", + "options": [ + "No Strobe", + "Strobe" + ] + }, + "state": { + "class_name": "DefaultStrobeSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-StrobeLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeLevelSelectEntity", - "translation_key": "default_strobe_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "StrobeLevel", - "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" - ] + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-StrobeLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeLevelSelectEntity", + "translation_key": "default_strobe_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StrobeLevel", + "options": [ + "Low level strobe", + "Medium level strobe", + "High level strobe", + "Very high level strobe" + ] + }, + "state": { + "class_name": "DefaultStrobeLevelSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-WarningMode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultToneSelectEntity", - "translation_key": "default_siren_tone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "WarningMode", - "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" - ] + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282-WarningMode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultToneSelectEntity", + "translation_key": "default_siren_tone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "WarningMode", + "options": [ + "Stop", + "Burglar", + "Fire", + "Emergency", + "Police Panic", + "Fire Panic", + "Emergency Panic" + ] + }, + "state": { + "class_name": "DefaultToneSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 24.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 24.0 + } }, { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 997, - "suggested_display_precision": 0, - "unit": "hPa" + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "hPa" + }, + "state": { + "class_name": "Pressure", + "available": true, + "state": 997 + } }, { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 41.78, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 41.78 + } } ], "siren": [ { - "fallback_name": "Siren", - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "AdvancedSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "available_tones": { - "1": "Burglar", - "2": "Fire", - "3": "Emergency", - "4": "Police Panic", - "5": "Fire Panic", - "6": "Emergency Panic" + "info_object": { + "fallback_name": "Siren", + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-1-1282", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "AdvancedSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "available_tones": { + "1": "Burglar", + "2": "Fire", + "3": "Emergency", + "4": "Police Panic", + "5": "Fire Panic", + "6": "Emergency Panic" + }, + "supported_features": 31 }, - "supported_features": 31 + "state": { + "class_name": "AdvancedSiren", + "available": true, + "state": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-5-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", - "endpoint_id": 5, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:f8:ec:e4:c3:5d-5-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:f8:ec:e4:c3:5d", + "endpoint_id": 5, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/horn-zone-haier-hs-22zw-0000011216.json b/tests/data/devices/horn-zone-haier-hs-22zw-0000011216.json index 4ef1f54c6..473c98318 100644 --- a/tests/data/devices/horn-zone-haier-hs-22zw-0000011216.json +++ b/tests/data/devices/horn-zone-haier-hs-22zw-0000011216.json @@ -122,101 +122,121 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e2:16:2d:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e2:16:2d:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e2:16:2d:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e2:16:2d:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e2:16:2d:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e2:16:2d:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e2:16:2d:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e2:16:2d:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-badring-water-leakage-sensor-0x01000007.json b/tests/data/devices/ikea-of-sweden-badring-water-leakage-sensor-0x01000007.json index fc762ce8f..5ea4f4e6e 100644 --- a/tests/data/devices/ikea-of-sweden-badring-water-leakage-sensor-0x01000007.json +++ b/tests/data/devices/ikea-of-sweden-badring-water-leakage-sensor-0x01000007.json @@ -230,161 +230,192 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:d7:c3:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:81:d7:c3:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:d7:c3:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:d7:c3:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:d7:c3:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:d7:c3:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:d7:c3:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:d7:c3:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:d7:c3:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AAA", + "battery_quantity": 1, + "battery_voltage": 1.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:81:d7:c3:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 1, - "battery_voltage": 1.5 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:d7:c3:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01000007", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:d7:c3:57-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:d7:c3:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01000007", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-fyrtur-block-out-roller-blind-0x23088631.json b/tests/data/devices/ikea-of-sweden-fyrtur-block-out-roller-blind-0x23088631.json index 205ab034c..ba8b1ee91 100644 --- a/tests/data/devices/ikea-of-sweden-fyrtur-block-out-roller-blind-0x23088631.json +++ b/tests/data/devices/ikea-of-sweden-fyrtur-block-out-roller-blind-0x23088631.json @@ -263,217 +263,257 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 77.0, + "battery_voltage": 7.6 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 77.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 7.6 + ] }, { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x23088631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "f4:b3:b1:ff:fe:8c:5a:5f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:b3:b1:ff:fe:8c:5a:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x23088631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-inspelning-smart-plug-0x02040045.json b/tests/data/devices/ikea-of-sweden-inspelning-smart-plug-0x02040045.json index 45d0c44c1..2fd7c7830 100644 --- a/tests/data/devices/ikea-of-sweden-inspelning-smart-plug-0x02040045.json +++ b/tests/data/devices/ikea-of-sweden-inspelning-smart-plug-0x02040045.json @@ -516,331 +516,389 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 2.44, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2.44, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.007, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.007, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": "Child lock", - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Disable LED", - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-enable_led", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "disable_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "enable_led", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 1, - "on_value": 0 + "info_object": { + "fallback_name": "Disable LED", + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-enable_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "disable_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "enable_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 1, + "on_value": 0 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "d4:48:67:ff:fe:13:d6:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x02040045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "d4:48:67:ff:fe:13:d6:f8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "d4:48:67:ff:fe:13:d6:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02040045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-ormanas-led-strip-0x01010010.json b/tests/data/devices/ikea-of-sweden-ormanas-led-strip-0x01010010.json index 9e5dcd6df..b0aa0bfc7 100644 --- a/tests/data/devices/ikea-of-sweden-ormanas-led-strip-0x01010010.json +++ b/tests/data/devices/ikea-of-sweden-ormanas-led-strip-0x01010010.json @@ -433,289 +433,348 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 56, - "xy_color": [ - 0.3229877164873732, - 0.32899977111467155 - ], - "color_temp": 264, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 250, - "max_mireds": 454 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 250, + "max_mireds": 454 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 56, + "xy_color": [ + 0.3229877164873732, + 0.32899977111467155 + ], + "color_temp": 264, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 250, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 250, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 8, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 8 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 204, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 204 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:96:7e:63:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01010010", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:96:7e:63:8a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:96:7e:63:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01010010", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-parasoll-door-window-sensor-0x01000019.json b/tests/data/devices/ikea-of-sweden-parasoll-door-window-sensor-0x01000019.json index eac245ff1..b91202680 100644 --- a/tests/data/devices/ikea-of-sweden-parasoll-door-window-sensor-0x01000019.json +++ b/tests/data/devices/ikea-of-sweden-parasoll-door-window-sensor-0x01000019.json @@ -285,161 +285,192 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "04:87:27:ff:fe:4a:b3:25-2-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "04:87:27:ff:fe:4a:b3:25", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-2-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "04:87:27:ff:fe:4a:b3:25-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:87:27:ff:fe:4a:b3:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "04:87:27:ff:fe:4a:b3:25-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:87:27:ff:fe:4a:b3:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:87:27:ff:fe:4a:b3:25-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:87:27:ff:fe:4a:b3:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:87:27:ff:fe:4a:b3:25-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AAA", + "battery_quantity": 1, + "battery_voltage": 1.6 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "04:87:27:ff:fe:4a:b3:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 1, - "battery_voltage": 1.6 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "04:87:27:ff:fe:4a:b3:25-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:87:27:ff:fe:4a:b3:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01000019", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01000019", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-praktlysing-cellular-blind-0x23088631.json b/tests/data/devices/ikea-of-sweden-praktlysing-cellular-blind-0x23088631.json index 7c65a0c82..0526f74d8 100644 --- a/tests/data/devices/ikea-of-sweden-praktlysing-cellular-blind-0x23088631.json +++ b/tests/data/devices/ikea-of-sweden-praktlysing-cellular-blind-0x23088631.json @@ -270,217 +270,257 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 95.0, + "battery_voltage": 8.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 95.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 8.1 + ] }, { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x23088631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "bc:02:6e:ff:fe:5e:af:fd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "bc:02:6e:ff:fe:5e:af:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x23088631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-remote-control-n2.json b/tests/data/devices/ikea-of-sweden-remote-control-n2.json index 403f49774..29f69c73a 100644 --- a/tests/data/devices/ikea-of-sweden-remote-control-n2.json +++ b/tests/data/devices/ikea-of-sweden-remote-control-n2.json @@ -188,137 +188,162 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AAA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000047.json b/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000047.json index 6a8e800f6..cff3d417b 100644 --- a/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000047.json +++ b/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000047.json @@ -208,137 +208,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 78.0, + "battery_size": "AAA", + "battery_quantity": 1, + "battery_voltage": 1.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 78.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 1, - "battery_voltage": 1.2 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01000047", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01000047", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000057.json b/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000057.json index d7f33ec26..ed24009cd 100644 --- a/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000057.json +++ b/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000057.json @@ -228,137 +228,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 15, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 15 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AAA", + "battery_quantity": 1, + "battery_voltage": 1.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 1, - "battery_voltage": 1.5 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01000057", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01000057", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer-0x01000057.json b/tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer-0x01000057.json index ce04ef2de..ea6ebd96f 100644 --- a/tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer-0x01000057.json +++ b/tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer-0x01000057.json @@ -221,137 +221,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 39, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 39 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AAA", + "battery_quantity": 1, + "battery_voltage": 1.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 1, - "battery_voltage": 1.5 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01000057", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01000057", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-somrig-shortcut-button-0x01000021.json b/tests/data/devices/ikea-of-sweden-somrig-shortcut-button-0x01000021.json index 9a92e1fe1..b66e3c972 100644 --- a/tests/data/devices/ikea-of-sweden-somrig-shortcut-button-0x01000021.json +++ b/tests/data/devices/ikea-of-sweden-somrig-shortcut-button-0x01000021.json @@ -276,137 +276,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6d:e6:02:47", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6d:e6:02:47", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 180, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 180 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6d:e6:02:47", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -66, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -66 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 84.0, + "battery_size": "AAA", + "battery_quantity": 1, + "battery_voltage": 1.3 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:6d:e6:02:47", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 84.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 1, - "battery_voltage": 1.3 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6d:e6:02:47", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01000021", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01000021", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-0x00011001.json b/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-0x00011001.json index 6a9b47777..d23fdb5be 100644 --- a/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-0x00011001.json +++ b/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-0x00011001.json @@ -238,327 +238,382 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-replace_filter", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "ReplaceFilter", - "translation_key": "replace_filter", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "replace_filter" + "info_object": { + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-replace_filter", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "ReplaceFilter", + "translation_key": "replace_filter", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "replace_filter" + }, + "state": { + "class_name": "ReplaceFilter", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "fan": [ { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637", - "migrate_unique_ids": [], - "platform": "fan", - "class_name": "IkeaFan", - "translation_key": "fan", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "preset_mode": null, - "percentage": 20, - "is_on": true, - "speed": "low", - "preset_modes": [ - "auto" - ], - "supported_features": 57, - "speed_count": 10, - "speed_list": [ - "off", - "low", - "medium", - "high", - "auto" - ], - "speed_range": [ - 1, - 10 - ], - "default_on_percentage": 50 + "info_object": { + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637", + "migrate_unique_ids": [], + "platform": "fan", + "class_name": "IkeaFan", + "translation_key": "fan", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "preset_modes": [ + "auto" + ], + "supported_features": 57, + "speed_count": 10, + "speed_list": [ + "off", + "low", + "medium", + "high", + "auto" + ] + }, + "state": { + "class_name": "IkeaFan", + "available": true, + "preset_mode": null, + "percentage": 20, + "is_on": true, + "speed": "low" + } } ], "number": [ { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-filter_life_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "FilterLifeTime", - "translation_key": "filter_life_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 259200, - "mode": "auto", - "native_max_value": 4294967295, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-filter_life_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "FilterLifeTime", + "translation_key": "filter_life_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 4294967295, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "FilterLifeTime", + "available": true, + "state": 259200 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 16, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "PM25", + "available": true, + "state": 16 + } }, { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-device_run_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "IkeaDeviceRunTime", - "translation_key": "device_run_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 118729, - "suggested_display_precision": null, - "unit": "min" + "info_object": { + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-device_run_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "IkeaDeviceRunTime", + "translation_key": "device_run_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "min" + }, + "state": { + "class_name": "IkeaDeviceRunTime", + "available": true, + "state": 118729 + } }, { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-filter_run_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "IkeaFilterRunTime", - "translation_key": "filter_run_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 118729, - "suggested_display_precision": null, - "unit": "min" + "info_object": { + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-filter_run_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "IkeaFilterRunTime", + "translation_key": "filter_run_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "min" + }, + "state": { + "class_name": "IkeaFilterRunTime", + "available": true, + "state": 118729 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ChildLock", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ChildLock", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ChildLock", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-disable_led", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DisableLed", - "translation_key": "disable_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "disable_led", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-64637-disable_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DisableLed", + "translation_key": "disable_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "disable_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "DisableLed", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "0c:43:14:ff:fe:73:07:e2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "0c:43:14:ff:fe:73:07:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00011001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "0c:43:14:ff:fe:73:07:e2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "0c:43:14:ff:fe:73:07:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00011001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-table-0x00011001.json b/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-table-0x00011001.json index aaad311ed..671380219 100644 --- a/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-table-0x00011001.json +++ b/tests/data/devices/ikea-of-sweden-starkvind-air-purifier-table-0x00011001.json @@ -310,327 +310,382 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-replace_filter", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "ReplaceFilter", - "translation_key": "replace_filter", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "replace_filter" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-replace_filter", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "ReplaceFilter", + "translation_key": "replace_filter", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "replace_filter" + }, + "state": { + "class_name": "ReplaceFilter", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "fan": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637", - "migrate_unique_ids": [], - "platform": "fan", - "class_name": "IkeaFan", - "translation_key": "fan", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "preset_mode": null, - "percentage": 0, - "is_on": false, - "speed": "off", - "preset_modes": [ - "auto" - ], - "supported_features": 57, - "speed_count": 10, - "speed_list": [ - "off", - "low", - "medium", - "high", - "auto" - ], - "speed_range": [ - 1, - 10 - ], - "default_on_percentage": 50 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637", + "migrate_unique_ids": [], + "platform": "fan", + "class_name": "IkeaFan", + "translation_key": "fan", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "preset_modes": [ + "auto" + ], + "supported_features": 57, + "speed_count": 10, + "speed_list": [ + "off", + "low", + "medium", + "high", + "auto" + ] + }, + "state": { + "class_name": "IkeaFan", + "available": true, + "preset_mode": null, + "percentage": 0, + "is_on": false, + "speed": "off" + } } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-filter_life_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "FilterLifeTime", - "translation_key": "filter_life_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 259200, - "mode": "auto", - "native_max_value": 4294967295, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-filter_life_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "FilterLifeTime", + "translation_key": "filter_life_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 4294967295, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "FilterLifeTime", + "available": true, + "state": 259200 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 204, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 204 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "PM25", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-device_run_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "IkeaDeviceRunTime", - "translation_key": "device_run_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 59343, - "suggested_display_precision": null, - "unit": "min" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-device_run_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "IkeaDeviceRunTime", + "translation_key": "device_run_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "min" + }, + "state": { + "class_name": "IkeaDeviceRunTime", + "available": true, + "state": 59343 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-filter_run_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "IkeaFilterRunTime", - "translation_key": "filter_run_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 59343, - "suggested_display_precision": null, - "unit": "min" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-filter_run_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "IkeaFilterRunTime", + "translation_key": "filter_run_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "min" + }, + "state": { + "class_name": "IkeaFilterRunTime", + "available": true, + "state": 59343 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ChildLock", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ChildLock", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ChildLock", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-disable_led", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "DisableLed", - "translation_key": "disable_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "disable_led", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-64637-disable_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "DisableLed", + "translation_key": "disable_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "disable_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "DisableLed", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:99:45:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00011001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:99:45:a5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:99:45:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00011001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2-0x00010012.json b/tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2-0x00010012.json index 2d70e11e7..234f94326 100644 --- a/tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2-0x00010012.json +++ b/tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2-0x00010012.json @@ -201,137 +201,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:61:2b:43-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:61:2b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:61:2b:43-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:61:2b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:61:2b:43-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:61:2b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:61:2b:43-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:61:2b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:61:2b:43-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:61:2b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -58, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:61:2b:43-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:61:2b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -58 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:61:2b:43-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:61:2b:43-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:61:2b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:52:61:2b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": 0.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:61:2b:43-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:61:2b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00010012", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:61:2b:43-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:61:2b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00010012", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-w-op-ch-400lm-0x23094631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-w-op-ch-400lm-0x23094631.json index fe88a98a7..740a8d7f9 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-w-op-ch-400lm-0x23094631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-w-op-ch-400lm-0x23094631.json @@ -257,257 +257,310 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 3, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 3, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:d5:37:65-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:d5:37:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x23094631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:d5:37:65-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:d5:37:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x23094631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-ws-opal-400lm-0x23087631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-ws-opal-400lm-0x23087631.json index 640c1ee54..b3e8f892d 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-ws-opal-400lm-0x23087631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-ws-opal-400lm-0x23087631.json @@ -361,284 +361,342 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": 250, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 250, - "max_mireds": 454 + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 250, + "max_mireds": 454 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": 250, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 250, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 250, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:74:75:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x23087631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:74:75:2c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:74:75:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x23087631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e14-ws-globe-470lm-0x01010020.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e14-ws-globe-470lm-0x01010020.json index f832a9339..0b92b343c 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e14-ws-globe-470lm-0x01010020.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e14-ws-globe-470lm-0x01010020.json @@ -306,284 +306,342 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": 370, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 250, - "max_mireds": 454 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 250, + "max_mireds": 454 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": 370, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 250, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 250, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 254 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 1 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 160, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 160 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:8d:14:56-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:8d:14:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01010020", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:8d:14:56-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:8d:14:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01010020", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-opal-1000lm-0x23094631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-opal-1000lm-0x23094631.json index 4573211cf..087c96707 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-opal-1000lm-0x23094631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-opal-1000lm-0x23094631.json @@ -257,257 +257,310 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:39:3d:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x23094631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:39:3d:3c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:39:3d:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x23094631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-w-opal-1000lm-0x23094631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-w-opal-1000lm-0x23094631.json index 158b3bfe3..b29a934e2 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-w-opal-1000lm-0x23094631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-w-opal-1000lm-0x23094631.json @@ -251,257 +251,310 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:8e:8c:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x23094631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:8e:8c:44-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:8e:8c:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x23094631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-ws-opal-980lm-0x23095631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-ws-opal-980lm-0x23095631.json index 78544cc8f..c1a479f91 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-ws-opal-980lm-0x23095631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-ws-opal-980lm-0x23095631.json @@ -341,284 +341,342 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 3, - "xy_color": null, - "color_temp": 452, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 250, - "max_mireds": 454 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 250, + "max_mireds": 454 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 3, + "xy_color": null, + "color_temp": 452, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 250, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 250, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:dd:49:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:dd:49:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x23095631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:dd:49:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:dd:49:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x23095631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ws-globe-1055lm-0x02040005.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ws-globe-1055lm-0x02040005.json index 44b801324..eaae510f3 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ws-globe-1055lm-0x02040005.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ws-globe-1055lm-0x02040005.json @@ -322,284 +322,342 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 234, - "xy_color": null, - "color_temp": 250, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 250, - "max_mireds": 454 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 250, + "max_mireds": 454 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 234, + "xy_color": null, + "color_temp": 250, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 443, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 250, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 250, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 443 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 234, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 234 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 3 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:27:c9:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x02040005", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:27:c9:2f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:27:c9:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02040005", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ww-g95-cl-470lm-0x00011006.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ww-g95-cl-470lm-0x00011006.json index 97f2e0866..e876bd3c2 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ww-g95-cl-470lm-0x00011006.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ww-g95-cl-470lm-0x00011006.json @@ -237,257 +237,310 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00011006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:4d:bd:b3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:4d:bd:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00011006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ws-400lm-0x23095631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ws-400lm-0x23095631.json index d1f9b4bf4..e5b340b69 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ws-400lm-0x23095631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ws-400lm-0x23095631.json @@ -367,284 +367,342 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 1, - "xy_color": null, - "color_temp": 250, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 250, - "max_mireds": 454 + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 250, + "max_mireds": 454 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 1, + "xy_color": null, + "color_temp": 250, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 250, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 250, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x23095631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:8f:fa:33-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:8f:fa:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x23095631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-345lm8.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-345lm8.json index 775901476..aaaafdefe 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-345lm8.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-345lm8.json @@ -232,257 +232,310 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 1, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 1, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:ce:b7:e4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:ce:b7:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-400lm-0x23093631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-400lm-0x23093631.json index 578a282a8..3f789b4f2 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-400lm-0x23093631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-400lm-0x23093631.json @@ -256,257 +256,310 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 176, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 176 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -56, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -56 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x23093631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:ce:e9:6e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:ce:e9:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x23093631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-control-outlet-0x23089631.json b/tests/data/devices/ikea-of-sweden-tradfri-control-outlet-0x23089631.json index 126f10b59..55d3b4ab9 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-control-outlet-0x23089631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-control-outlet-0x23089631.json @@ -233,160 +233,190 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x23089631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:ff:fe:a5:b7:93-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:ff:fe:a5:b7:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x23089631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-motion-sensor.json b/tests/data/devices/ikea-of-sweden-tradfri-motion-sensor.json index b0447c192..1c5b09502 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-motion-sensor.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-motion-sensor.json @@ -207,161 +207,192 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:94:76:3f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IkeaMotion", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:94:76:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IkeaMotion", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "IkeaMotion", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:94:76:3f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:94:76:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:94:76:3f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:94:76:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:94:76:3f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:94:76:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:94:76:3f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 87.0, + "battery_size": "CR2032", + "battery_quantity": 2, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:99:94:76:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 87.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 2, - "battery_voltage": 2.9 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:94:76:3f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:94:76:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-on-off-switch.json b/tests/data/devices/ikea-of-sweden-tradfri-on-off-switch.json index b9b18651a..971243923 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-on-off-switch.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-on-off-switch.json @@ -206,137 +206,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:53:65:d7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:53:65:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:53:65:d7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:53:65:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:53:65:d7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:53:65:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:53:65:d7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:53:65:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:53:65:d7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:53:65:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:53:65:d7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:53:65:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:53:65:d7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:53:65:d7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:53:65:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "14:b4:57:ff:fe:53:65:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 0.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:53:65:d7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:53:65:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:53:65:d7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:53:65:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-open-close-remote-0x23079631.json b/tests/data/devices/ikea-of-sweden-tradfri-open-close-remote-0x23079631.json index 9b0a7e014..6f30d834f 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-open-close-remote-0x23079631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-open-close-remote-0x23079631.json @@ -221,137 +221,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "38:5b:44:ff:fe:e6:8a:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "38:5b:44:ff:fe:e6:8a:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "38:5b:44:ff:fe:e6:8a:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "38:5b:44:ff:fe:e6:8a:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "38:5b:44:ff:fe:e6:8a:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "38:5b:44:ff:fe:e6:8a:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "38:5b:44:ff:fe:e6:8a:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 87.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "38:5b:44:ff:fe:e6:8a:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 87.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.1 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "38:5b:44:ff:fe:e6:8a:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x23079631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "38:5b:44:ff:fe:e6:8a:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x23079631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-remote-control.json b/tests/data/devices/ikea-of-sweden-tradfri-remote-control.json index 4f3569618..992497982 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-remote-control.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-remote-control.json @@ -206,137 +206,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 16.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.6 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 16.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.6 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button.json b/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button.json index 209653e35..707b5eadb 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button.json @@ -201,137 +201,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 180.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 180.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.9 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-wireless-dimmer.json b/tests/data/devices/ikea-of-sweden-tradfri-wireless-dimmer.json index e8cd04635..766ce3262 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-wireless-dimmer.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-wireless-dimmer.json @@ -213,137 +213,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 34.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 34.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 0.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ikea-of-sweden-vallhorn-wireless-motion-sensor-0x01000064.json b/tests/data/devices/ikea-of-sweden-vallhorn-wireless-motion-sensor-0x01000064.json index 0917b41c8..5580189c8 100644 --- a/tests/data/devices/ikea-of-sweden-vallhorn-wireless-motion-sensor-0x01000064.json +++ b/tests/data/devices/ikea-of-sweden-vallhorn-wireless-motion-sensor-0x01000064.json @@ -370,315 +370,376 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": "On time", - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-on_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "on_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 10, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "On time", + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-on_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "on_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 10, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-2-1030-pir_o_to_u_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", - "translation_key": "pir_o_to_u_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-2-1030-pir_o_to_u_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", + "translation_key": "pir_o_to_u_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-2-1030-pir_u_to_o_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "PIRUnoccupiedToOccupiedDelayConfigurationEntity", - "translation_key": "pir_u_to_o_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-2-1030-pir_u_to_o_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "PIRUnoccupiedToOccupiedDelayConfigurationEntity", + "translation_key": "pir_u_to_o_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "PIRUnoccupiedToOccupiedDelayConfigurationEntity", + "available": true, + "state": 0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 70.0, + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": 2.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 70.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": 2.5 + ] }, { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-3-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 3, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-3-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 3 + } } ], "switch": [ { - "fallback_name": "On only when dark", - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-on_only_when_dark", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "on_only_when_dark", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "on_only_when_dark", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "On only when dark", + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-on_only_when_dark", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "on_only_when_dark", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_only_when_dark", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01000064", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01000064", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/imagic-by-greatstar-1112-s.json b/tests/data/devices/imagic-by-greatstar-1112-s.json index 352cf8476..518afe582 100644 --- a/tests/data/devices/imagic-by-greatstar-1112-s.json +++ b/tests/data/devices/imagic-by-greatstar-1112-s.json @@ -255,233 +255,279 @@ "zha_lib_entities": { "alarm_control_panel": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1281", - "migrate_unique_ids": [], - "platform": "alarm_control_panel", - "class_name": "AlarmControlPanel", - "translation_key": "alarm_control_panel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "alarm_state": "disarmed", - "code_arm_required": false, - "code_format": "number", - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1281", + "migrate_unique_ids": [], + "platform": "alarm_control_panel", + "class_name": "AlarmControlPanel", + "translation_key": "alarm_control_panel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "code_arm_required": false, + "code_format": "number", + "supported_features": 15 + }, + "state": { + "class_name": "AlarmControlPanel", + "available": true, + "state": "disarmed" + } } ], "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Unknown", + "battery_quantity": 0, + "battery_voltage": 5.6 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": 0, - "battery_voltage": 5.6 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25.7, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 25.7 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.8, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 30.8 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:61:9f:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:61:9f:d3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:61:9f:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/innr-ae-280-c-0x20026a30.json b/tests/data/devices/innr-ae-280-c-0x20026a30.json index dba6b95a7..86e45b685 100644 --- a/tests/data/devices/innr-ae-280-c-0x20026a30.json +++ b/tests/data/devices/innr-ae-280-c-0x20026a30.json @@ -287,289 +287,348 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.489066910811017, - 0.4145723659113451 - ], - "color_temp": 420, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 555 + "info_object": { + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 555 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.489066910811017, + 0.4145723659113451 + ], + "color_temp": 420, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 555, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 555, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "14:2d:41:ff:fe:58:aa:27-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:2d:41:ff:fe:58:aa:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x20026a30", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "14:2d:41:ff:fe:58:aa:27-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:2d:41:ff:fe:58:aa:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x20026a30", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/innr-rb-285-c-0x10051567.json b/tests/data/devices/innr-rb-285-c-0x10051567.json index 18a300fda..b1ed32b5a 100644 --- a/tests/data/devices/innr-rb-285-c-0x10051567.json +++ b/tests/data/devices/innr-rb-285-c-0x10051567.json @@ -322,237 +322,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.37297627222095064, - 0.37386129549095903 - ], - "color_temp": 236, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 555 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 555 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.37297627222095064, + 0.37386129549095903 + ], + "color_temp": 236, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 555, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 555, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:03:00:01:62-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:03:00:01:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x10051567", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:03:00:01:62-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:03:00:01:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x10051567", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/innr-rc-250-0x21086500.json b/tests/data/devices/innr-rc-250-0x21086500.json index 19afc4690..2e6001033 100644 --- a/tests/data/devices/innr-rc-250-0x21086500.json +++ b/tests/data/devices/innr-rc-250-0x21086500.json @@ -201,137 +201,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 204, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 204 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 10.0, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.5 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x21086500", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x21086500", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/innr-rs-232-c-0x22151511.json b/tests/data/devices/innr-rs-232-c-0x22151511.json index 34da00e1a..6834a9aa9 100644 --- a/tests/data/devices/innr-rs-232-c-0x22151511.json +++ b/tests/data/devices/innr-rs-232-c-0x22151511.json @@ -304,341 +304,410 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.5255664911879149, - 0.4134737163347829 - ], - "color_temp": 497, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 555 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 555 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.5255664911879149, + 0.4134737163347829 + ], + "color_temp": 497, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 555, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 555, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 100 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -86, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -86 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:3f:19:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x22151511", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:3f:19:36-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:3f:19:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x22151511", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/innr-sp-120-0x11040002.json b/tests/data/devices/innr-sp-120-0x11040002.json index 725f330e9..e4ef8d331 100644 --- a/tests/data/devices/innr-sp-120-0x11040002.json +++ b/tests/data/devices/innr-sp-120-0x11040002.json @@ -569,275 +569,323 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 145.26, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 145.26, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 238.0, + "measurement_type": "" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 238.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x11040002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:d3:fb:4b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:d3:fb:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x11040002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/innr-sp-234-0x31016610.json b/tests/data/devices/innr-sp-234-0x31016610.json index 58678a4b4..ed4958f25 100644 --- a/tests/data/devices/innr-sp-234-0x31016610.json +++ b/tests/data/devices/innr-sp-234-0x31016610.json @@ -442,277 +442,325 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 5.41, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.41, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.007, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.007, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 123.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 123.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x31016610", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "70:ac:08:ff:fe:ef:c4:b7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "70:ac:08:ff:fe:ef:c4:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x31016610", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/innr-sp-240-0x191e3685.json b/tests/data/devices/innr-sp-240-0x191e3685.json index 5576f341e..47989dd36 100644 --- a/tests/data/devices/innr-sp-240-0x191e3685.json +++ b/tests/data/devices/innr-sp-240-0x191e3685.json @@ -575,277 +575,325 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.143, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.143, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 2.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.014, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.014, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 231.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 231.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:51:53:67-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:51:53:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x191e3685", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:51:53:67-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:51:53:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x191e3685", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/innr-sp-242-0x17173685.json b/tests/data/devices/innr-sp-242-0x17173685.json index 9376f3bd2..15626e143 100644 --- a/tests/data/devices/innr-sp-242-0x17173685.json +++ b/tests/data/devices/innr-sp-242-0x17173685.json @@ -563,409 +563,482 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 172, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 172 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -68, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -68 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 466.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 466.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 240.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 240.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:df:1b:97-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:df:1b:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x17173685", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:df:1b:97-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:df:1b:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x17173685", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/inovelli-vzm30-sn-0x01100100.json b/tests/data/devices/inovelli-vzm30-sn-0x01100100.json index 28f6f4dec..caa7ceec6 100644 --- a/tests/data/devices/inovelli-vzm30-sn-0x01100100.json +++ b/tests/data/devices/inovelli-vzm30-sn-0x01100100.json @@ -767,492 +767,585 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "DefaultMoveRateConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 192, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 192 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -52, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -52 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 70.61, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 70.61, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 124.4 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 124.4, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliInternalTemperature", - "translation_key": "internal_temp_monitor", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 31, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliInternalTemperature", + "translation_key": "internal_temp_monitor", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "InovelliInternalTemperature", + "available": true, + "state": 31 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-overheated", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliOverheated", - "translation_key": "overheated", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Normal", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-overheated", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliOverheated", + "translation_key": "overheated", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "InovelliOverheated", + "available": true, + "state": "Normal" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 22.24, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.24 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 50.51, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 50.51 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01100100", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01100100", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/inovelli-vzm30-sn.json b/tests/data/devices/inovelli-vzm30-sn.json index 3044d1eb3..d01a0181b 100644 --- a/tests/data/devices/inovelli-vzm30-sn.json +++ b/tests/data/devices/inovelli-vzm30-sn.json @@ -917,859 +917,1022 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-auto_off_timer", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliAutoShutoffTimer", - "translation_key": "auto_off_timer", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 32767, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-auto_off_timer", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliAutoShutoffTimer", + "translation_key": "auto_off_timer", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 32767, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliAutoShutoffTimer", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-default_level_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDefaultLevel", - "translation_key": "default_level_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-default_level_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDefaultLevel", + "translation_key": "default_level_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalDefaultLevel", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-default_level_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDefaultLevel", - "translation_key": "default_level_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-default_level_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDefaultLevel", + "translation_key": "default_level_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDefaultLevel", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_down_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDimmingDownSpeed", - "translation_key": "dimming_speed_down_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_down_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDimmingDownSpeed", + "translation_key": "dimming_speed_down_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalDimmingDownSpeed", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_down_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingDownSpeed", - "translation_key": "dimming_speed_down_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_down_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingDownSpeed", + "translation_key": "dimming_speed_down_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDimmingDownSpeed", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_up_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDimmingUpSpeed", - "translation_key": "dimming_speed_up_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_up_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDimmingUpSpeed", + "translation_key": "dimming_speed_up_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalDimmingUpSpeed", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_up_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingUpSpeed", - "translation_key": "dimming_speed_up_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25, - "mode": "auto", - "native_max_value": 126, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_up_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingUpSpeed", + "translation_key": "dimming_speed_up_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 126, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDimmingUpSpeed", + "available": true, + "state": 25 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-load_level_indicator_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLoadLevelIndicatorTimeout", - "translation_key": "load_level_indicator_timeout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 11, - "mode": "auto", - "native_max_value": 11, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-load_level_indicator_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLoadLevelIndicatorTimeout", + "translation_key": "load_level_indicator_timeout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 11, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLoadLevelIndicatorTimeout", + "available": true, + "state": 11 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_off_to_on_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalRampRateOffToOn", - "translation_key": "ramp_rate_off_to_on_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_off_to_on_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalRampRateOffToOn", + "translation_key": "ramp_rate_off_to_on_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalRampRateOffToOn", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_off_to_on_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingSpeedOffToOn", - "translation_key": "ramp_rate_off_to_on_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_off_to_on_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingSpeedOffToOn", + "translation_key": "ramp_rate_off_to_on_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDimmingSpeedOffToOn", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_on_to_off_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalRampRateOnToOff", - "translation_key": "ramp_rate_on_to_off_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_on_to_off_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalRampRateOnToOff", + "translation_key": "ramp_rate_on_to_off_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalRampRateOnToOff", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_on_to_off_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingSpeedOnToOff", - "translation_key": "ramp_rate_on_to_off_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_on_to_off_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingSpeedOnToOff", + "translation_key": "ramp_rate_on_to_off_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDimmingSpeedOnToOff", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-state_after_power_restored", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliStartupDefaultLevel", - "translation_key": "state_after_power_restored", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-state_after_power_restored", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliStartupDefaultLevel", + "translation_key": "state_after_power_restored", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliStartupDefaultLevel", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "DefaultMoveRateConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 240, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 240 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -40, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -40 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 118.5 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 118.5, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliInternalTemperature", - "translation_key": "internal_temp_monitor", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliInternalTemperature", + "translation_key": "internal_temp_monitor", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "InovelliInternalTemperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-overheated", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliOverheated", - "translation_key": "overheated", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-overheated", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliOverheated", + "translation_key": "overheated", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "InovelliOverheated", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 17.6, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 17.6 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 61.47, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-4-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 61.47 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-invert_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliInvertSwitch", - "translation_key": "invert_switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "invert_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-invert_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliInvertSwitch", + "translation_key": "invert_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "invert_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliInvertSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/inovelli-vzm31-sn-0x01020212.json b/tests/data/devices/inovelli-vzm31-sn-0x01020212.json index 8f13c57bf..b4966d36c 100644 --- a/tests/data/devices/inovelli-vzm31-sn-0x01020212.json +++ b/tests/data/devices/inovelli-vzm31-sn-0x01020212.json @@ -895,1180 +895,1407 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-auto_off_timer", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliAutoShutoffTimer", - "translation_key": "auto_off_timer", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 32767, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-auto_off_timer", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliAutoShutoffTimer", + "translation_key": "auto_off_timer", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 32767, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliAutoShutoffTimer", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-button_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliButtonDelay", - "translation_key": "button_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-button_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliButtonDelay", + "translation_key": "button_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliButtonDelay", + "available": true, + "state": 1 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-default_level_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDefaultLevel", - "translation_key": "default_level_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-default_level_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDefaultLevel", + "translation_key": "default_level_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalDefaultLevel", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-default_level_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDefaultLevel", - "translation_key": "default_level_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-default_level_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDefaultLevel", + "translation_key": "default_level_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDefaultLevel", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_down_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDimmingDownSpeed", - "translation_key": "dimming_speed_down_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_down_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDimmingDownSpeed", + "translation_key": "dimming_speed_down_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalDimmingDownSpeed", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_down_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingDownSpeed", - "translation_key": "dimming_speed_down_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_down_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingDownSpeed", + "translation_key": "dimming_speed_down_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDimmingDownSpeed", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_up_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDimmingUpSpeed", - "translation_key": "dimming_speed_up_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_up_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDimmingUpSpeed", + "translation_key": "dimming_speed_up_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalDimmingUpSpeed", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_up_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingUpSpeed", - "translation_key": "dimming_speed_up_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25, - "mode": "auto", - "native_max_value": 126, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-dimming_speed_up_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingUpSpeed", + "translation_key": "dimming_speed_up_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 126, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDimmingUpSpeed", + "available": true, + "state": 25 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_color_when_off", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOffColor", - "translation_key": "led_color_when_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 170, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_color_when_off", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOffColor", + "translation_key": "led_color_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliDefaultAllLEDOffColor", + "available": true, + "state": 170 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_color_when_on", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOnColor", - "translation_key": "led_color_when_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 170, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_color_when_on", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOnColor", + "translation_key": "led_color_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliDefaultAllLEDOnColor", + "available": true, + "state": 170 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_intensity_when_off", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOffIntensity", - "translation_key": "led_intensity_when_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_intensity_when_off", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOffIntensity", + "translation_key": "led_intensity_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliDefaultAllLEDOffIntensity", + "available": true, + "state": 1 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_intensity_when_on", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOnIntensity", - "translation_key": "led_intensity_when_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 33, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_intensity_when_on", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOnIntensity", + "translation_key": "led_intensity_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliDefaultAllLEDOnIntensity", + "available": true, + "state": 33 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-load_level_indicator_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLoadLevelIndicatorTimeout", - "translation_key": "load_level_indicator_timeout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 11, - "mode": "auto", - "native_max_value": 11, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-load_level_indicator_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLoadLevelIndicatorTimeout", + "translation_key": "load_level_indicator_timeout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 11, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLoadLevelIndicatorTimeout", + "available": true, + "state": 11 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-maximum_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliMaximumLoadDimmingLevel", - "translation_key": "maximum_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 2, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-maximum_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliMaximumLoadDimmingLevel", + "translation_key": "maximum_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliMaximumLoadDimmingLevel", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-minimum_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliMinimumLoadDimmingLevel", - "translation_key": "minimum_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 1, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-minimum_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliMinimumLoadDimmingLevel", + "translation_key": "minimum_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 1, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliMinimumLoadDimmingLevel", + "available": true, + "state": 1 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_off_to_on_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalRampRateOffToOn", - "translation_key": "ramp_rate_off_to_on_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_off_to_on_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalRampRateOffToOn", + "translation_key": "ramp_rate_off_to_on_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalRampRateOffToOn", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_off_to_on_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingSpeedOffToOn", - "translation_key": "ramp_rate_off_to_on_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_off_to_on_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingSpeedOffToOn", + "translation_key": "ramp_rate_off_to_on_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDimmingSpeedOffToOn", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_on_to_off_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalRampRateOnToOff", - "translation_key": "ramp_rate_on_to_off_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_on_to_off_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalRampRateOnToOff", + "translation_key": "ramp_rate_on_to_off_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalRampRateOnToOff", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_on_to_off_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingSpeedOnToOff", - "translation_key": "ramp_rate_on_to_off_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-ramp_rate_on_to_off_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingSpeedOnToOff", + "translation_key": "ramp_rate_on_to_off_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDimmingSpeedOnToOff", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-state_after_power_restored", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliStartupDefaultLevel", - "translation_key": "state_after_power_restored", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-state_after_power_restored", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliStartupDefaultLevel", + "translation_key": "state_after_power_restored", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliStartupDefaultLevel", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 30 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-leading_or_trailing_edge", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "InovelliDimmingModeEntity", - "translation_key": "leading_or_trailing_edge", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LeadingEdge", - "enum": "InovelliDimmingMode", - "options": [ - "LeadingEdge", - "TrailingEdge" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-leading_or_trailing_edge", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "InovelliDimmingModeEntity", + "translation_key": "leading_or_trailing_edge", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "InovelliDimmingMode", + "options": [ + "LeadingEdge", + "TrailingEdge" + ] + }, + "state": { + "class_name": "InovelliDimmingModeEntity", + "available": true, + "state": "LeadingEdge" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-output_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "InovelliOutputModeEntity", - "translation_key": "output_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "OnOff", - "enum": "InovelliOutputMode", - "options": [ - "Dimmer", - "OnOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-output_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "InovelliOutputModeEntity", + "translation_key": "output_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "InovelliOutputMode", + "options": [ + "Dimmer", + "OnOff" + ] + }, + "state": { + "class_name": "InovelliOutputModeEntity", + "available": true, + "state": "OnOff" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-switch_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "InovelliSwitchTypeEntity", - "translation_key": "switch_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Single Pole", - "enum": "InovelliSwitchType", - "options": [ - "Single Pole", - "Three Way Dumb", - "Three Way AUX", - "Single Pole Full Sine" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-switch_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "InovelliSwitchTypeEntity", + "translation_key": "switch_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "InovelliSwitchType", + "options": [ + "Single Pole", + "Three Way Dumb", + "Three Way AUX", + "Single Pole Full Sine" + ] + }, + "state": { + "class_name": "InovelliSwitchTypeEntity", + "available": true, + "state": "Single Pole" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 112, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 112 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -72, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -72 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 3.02, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3.02, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliInternalTemperature", - "translation_key": "internal_temp_monitor", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 39, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliInternalTemperature", + "translation_key": "internal_temp_monitor", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "InovelliInternalTemperature", + "available": true, + "state": 39 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-overheated", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliOverheated", - "translation_key": "overheated", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Normal", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-overheated", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliOverheated", + "translation_key": "overheated", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "InovelliOverheated", + "available": true, + "state": "Normal" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-disable_clear_notifications_double_tap", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliDisableDoubleTapClearNotificationsMode", - "translation_key": "disable_clear_notifications_double_tap", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "disable_clear_notifications_double_tap", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-disable_clear_notifications_double_tap", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliDisableDoubleTapClearNotificationsMode", + "translation_key": "disable_clear_notifications_double_tap", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "disable_clear_notifications_double_tap", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliDisableDoubleTapClearNotificationsMode", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-double_tap_up_enabled", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliDoubleTapUpEnabled", - "translation_key": "double_tap_up_enabled", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "double_tap_up_enabled", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-double_tap_up_enabled", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliDoubleTapUpEnabled", + "translation_key": "double_tap_up_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "double_tap_up_enabled", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliDoubleTapUpEnabled", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-firmware_progress_led", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliFirmwareProgressLED", - "translation_key": "firmware_progress_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "firmware_progress_led", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-firmware_progress_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliFirmwareProgressLED", + "translation_key": "firmware_progress_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "firmware_progress_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliFirmwareProgressLED", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-invert_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliInvertSwitch", - "translation_key": "invert_switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "invert_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-invert_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliInvertSwitch", + "translation_key": "invert_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "invert_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliInvertSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-local_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliLocalProtection", - "translation_key": "local_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "local_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-local_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliLocalProtection", + "translation_key": "local_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "local_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliLocalProtection", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-on_off_led_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliOnOffLEDMode", - "translation_key": "one_led_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "on_off_led_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-on_off_led_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliOnOffLEDMode", + "translation_key": "one_led_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off_led_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliOnOffLEDMode", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-relay_click_in_on_off_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliRelayClickInOnOffMode", - "translation_key": "relay_click_in_on_off_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "relay_click_in_on_off_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-relay_click_in_on_off_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliRelayClickInOnOffMode", + "translation_key": "relay_click_in_on_off_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "relay_click_in_on_off_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliRelayClickInOnOffMode", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-smart_bulb_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliSmartBulbMode", - "translation_key": "smart_bulb_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "smart_bulb_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-smart_bulb_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliSmartBulbMode", + "translation_key": "smart_bulb_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "smart_bulb_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliSmartBulbMode", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:41:3c:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01020212", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01020212", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/inovelli-vzm35-sn-0x02020107.json b/tests/data/devices/inovelli-vzm35-sn-0x02020107.json index 24aa5e0ad..701127f07 100644 --- a/tests/data/devices/inovelli-vzm35-sn-0x02020107.json +++ b/tests/data/devices/inovelli-vzm35-sn-0x02020107.json @@ -556,1233 +556,1471 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-auto_off_timer", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliAutoShutoffTimer", - "translation_key": "auto_off_timer", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3600, - "mode": "auto", - "native_max_value": 32767, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-auto_off_timer", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliAutoShutoffTimer", + "translation_key": "auto_off_timer", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 32767, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliAutoShutoffTimer", + "available": true, + "state": 3600 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-button_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliButtonDelay", - "translation_key": "button_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-button_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliButtonDelay", + "translation_key": "button_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliButtonDelay", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-default_level_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDefaultLevel", - "translation_key": "default_level_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-default_level_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDefaultLevel", + "translation_key": "default_level_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalDefaultLevel", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-default_level_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDefaultLevel", - "translation_key": "default_level_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-default_level_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDefaultLevel", + "translation_key": "default_level_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDefaultLevel", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_down_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDimmingDownSpeed", - "translation_key": "dimming_speed_down_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_down_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDimmingDownSpeed", + "translation_key": "dimming_speed_down_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalDimmingDownSpeed", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_down_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingDownSpeed", - "translation_key": "dimming_speed_down_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_down_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingDownSpeed", + "translation_key": "dimming_speed_down_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDimmingDownSpeed", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_up_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalDimmingUpSpeed", - "translation_key": "dimming_speed_up_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_up_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalDimmingUpSpeed", + "translation_key": "dimming_speed_up_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalDimmingUpSpeed", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_up_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingUpSpeed", - "translation_key": "dimming_speed_up_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25, - "mode": "auto", - "native_max_value": 126, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-dimming_speed_up_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingUpSpeed", + "translation_key": "dimming_speed_up_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 126, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDimmingUpSpeed", + "available": true, + "state": 25 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_down_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDoubleTapDownLevel", - "translation_key": "double_tap_down_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_down_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDoubleTapDownLevel", + "translation_key": "double_tap_down_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliDoubleTapDownLevel", + "available": true, + "state": 2 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_up_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDoubleTapUpLevel", - "translation_key": "double_tap_up_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 2, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_up_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDoubleTapUpLevel", + "translation_key": "double_tap_up_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliDoubleTapUpLevel", + "available": true, + "state": 254 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_color_when_off", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOffColor", - "translation_key": "led_color_when_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 170, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_color_when_off", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOffColor", + "translation_key": "led_color_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliDefaultAllLEDOffColor", + "available": true, + "state": 170 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_color_when_on", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOnColor", - "translation_key": "led_color_when_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 170, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_color_when_on", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOnColor", + "translation_key": "led_color_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliDefaultAllLEDOnColor", + "available": true, + "state": 170 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_intensity_when_off", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOffIntensity", - "translation_key": "led_intensity_when_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_intensity_when_off", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOffIntensity", + "translation_key": "led_intensity_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliDefaultAllLEDOffIntensity", + "available": true, + "state": 1 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_intensity_when_on", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliDefaultAllLEDOnIntensity", - "translation_key": "led_intensity_when_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 33, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-led_intensity_when_on", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliDefaultAllLEDOnIntensity", + "translation_key": "led_intensity_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliDefaultAllLEDOnIntensity", + "available": true, + "state": 33 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-load_level_indicator_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLoadLevelIndicatorTimeout", - "translation_key": "load_level_indicator_timeout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 11, - "mode": "auto", - "native_max_value": 11, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-load_level_indicator_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLoadLevelIndicatorTimeout", + "translation_key": "load_level_indicator_timeout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 11, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLoadLevelIndicatorTimeout", + "available": true, + "state": 11 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-maximum_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliMaximumLoadDimmingLevel", - "translation_key": "maximum_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 2, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-maximum_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliMaximumLoadDimmingLevel", + "translation_key": "maximum_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliMaximumLoadDimmingLevel", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-minimum_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliMinimumLoadDimmingLevel", - "translation_key": "minimum_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 1, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-minimum_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliMinimumLoadDimmingLevel", + "translation_key": "minimum_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 1, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliMinimumLoadDimmingLevel", + "available": true, + "state": 254 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-quick_start_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliQuickStartTime", - "translation_key": "quick_start_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-quick_start_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliQuickStartTime", + "translation_key": "quick_start_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliQuickStartTime", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_off_to_on_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalRampRateOffToOn", - "translation_key": "ramp_rate_off_to_on_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_off_to_on_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalRampRateOffToOn", + "translation_key": "ramp_rate_off_to_on_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalRampRateOffToOn", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_off_to_on_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingSpeedOffToOn", - "translation_key": "ramp_rate_off_to_on_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_off_to_on_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingSpeedOffToOn", + "translation_key": "ramp_rate_off_to_on_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDimmingSpeedOffToOn", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_on_to_off_local", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliLocalRampRateOnToOff", - "translation_key": "ramp_rate_on_to_off_local", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_on_to_off_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliLocalRampRateOnToOff", + "translation_key": "ramp_rate_on_to_off_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliLocalRampRateOnToOff", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_on_to_off_remote", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliRemoteDimmingSpeedOnToOff", - "translation_key": "ramp_rate_on_to_off_remote", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 127, - "mode": "auto", - "native_max_value": 127, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-ramp_rate_on_to_off_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliRemoteDimmingSpeedOnToOff", + "translation_key": "ramp_rate_on_to_off_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliRemoteDimmingSpeedOnToOff", + "available": true, + "state": 127 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-state_after_power_restored", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "InovelliStartupDefaultLevel", - "translation_key": "state_after_power_restored", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-state_after_power_restored", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "InovelliStartupDefaultLevel", + "translation_key": "state_after_power_restored", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "InovelliStartupDefaultLevel", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-output_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "InovelliOutputModeEntity", - "translation_key": "output_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "OnOff", - "enum": "InovelliOutputMode", - "options": [ - "Dimmer", - "OnOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-output_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "InovelliOutputModeEntity", + "translation_key": "output_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "InovelliOutputMode", + "options": [ + "Dimmer", + "OnOff" + ] + }, + "state": { + "class_name": "InovelliOutputModeEntity", + "available": true, + "state": "OnOff" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-smart_fan_led_display_levels", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "InovelliFanLedScalingModeEntity", - "translation_key": "smart_fan_led_display_levels", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Adaptive", - "enum": "InovelliFanLedScalingMode", - "options": [ - "VZM31SN", - "Grade 1", - "Grade 2", - "Grade 3", - "Grade 4", - "Grade 5", - "Grade 6", - "Grade 7", - "Grade 8", - "Grade 9", - "Adaptive" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-smart_fan_led_display_levels", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "InovelliFanLedScalingModeEntity", + "translation_key": "smart_fan_led_display_levels", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "InovelliFanLedScalingMode", + "options": [ + "VZM31SN", + "Grade 1", + "Grade 2", + "Grade 3", + "Grade 4", + "Grade 5", + "Grade 6", + "Grade 7", + "Grade 8", + "Grade 9", + "Adaptive" + ] + }, + "state": { + "class_name": "InovelliFanLedScalingModeEntity", + "available": true, + "state": "Adaptive" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-switch_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "InovelliFanSwitchTypeEntity", - "translation_key": "switch_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Load Only", - "enum": "InovelliFanSwitchType", - "options": [ - "Load Only", - "Three Way AUX" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-switch_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "InovelliFanSwitchTypeEntity", + "translation_key": "switch_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "InovelliFanSwitchType", + "options": [ + "Load Only", + "Three Way AUX" + ] + }, + "state": { + "class_name": "InovelliFanSwitchTypeEntity", + "available": true, + "state": "Load Only" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 184, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 184 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -54, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -54 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliInternalTemperature", - "translation_key": "internal_temp_monitor", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliInternalTemperature", + "translation_key": "internal_temp_monitor", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "InovelliInternalTemperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-overheated", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "InovelliOverheated", - "translation_key": "overheated", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Normal", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-overheated", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "InovelliOverheated", + "translation_key": "overheated", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "InovelliOverheated", + "available": true, + "state": "Normal" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-aux_switch_scenes", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliAuxSwitchScenes", - "translation_key": "aux_switch_scenes", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "aux_switch_scenes", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-aux_switch_scenes", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliAuxSwitchScenes", + "translation_key": "aux_switch_scenes", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "aux_switch_scenes", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliAuxSwitchScenes", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_down_enabled", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliDoubleTapDownEnabled", - "translation_key": "double_tap_down_enabled", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "double_tap_down_enabled", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_down_enabled", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliDoubleTapDownEnabled", + "translation_key": "double_tap_down_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "double_tap_down_enabled", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliDoubleTapDownEnabled", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_up_enabled", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliDoubleTapUpEnabled", - "translation_key": "double_tap_up_enabled", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "double_tap_up_enabled", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_up_enabled", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliDoubleTapUpEnabled", + "translation_key": "double_tap_up_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "double_tap_up_enabled", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliDoubleTapUpEnabled", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-firmware_progress_led", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliFirmwareProgressLED", - "translation_key": "firmware_progress_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "firmware_progress_led", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-firmware_progress_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliFirmwareProgressLED", + "translation_key": "firmware_progress_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "firmware_progress_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliFirmwareProgressLED", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-invert_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliInvertSwitch", - "translation_key": "invert_switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "invert_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-invert_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliInvertSwitch", + "translation_key": "invert_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "invert_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliInvertSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-local_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliLocalProtection", - "translation_key": "local_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "local_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-local_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliLocalProtection", + "translation_key": "local_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "local_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliLocalProtection", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-on_off_led_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliOnOffLEDMode", - "translation_key": "one_led_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "on_off_led_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-on_off_led_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliOnOffLEDMode", + "translation_key": "one_led_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off_led_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliOnOffLEDMode", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-smart_bulb_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliSmartBulbMode", - "translation_key": "smart_bulb_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "smart_bulb_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-smart_bulb_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliSmartBulbMode", + "translation_key": "smart_bulb_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "smart_bulb_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliSmartBulbMode", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-smart_fan_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "InovelliSmartFanMode", - "translation_key": "smart_fan_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "smart_fan_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-smart_fan_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "InovelliSmartFanMode", + "translation_key": "smart_fan_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "smart_fan_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "InovelliSmartFanMode", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:3d:90:21-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:3d:90:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x02020107", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02020107", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/isilentllc-dog-feeder.json b/tests/data/devices/isilentllc-dog-feeder.json index 25015dfc5..788a4bd4d 100644 --- a/tests/data/devices/isilentllc-dog-feeder.json +++ b/tests/data/devices/isilentllc-dog-feeder.json @@ -310,169 +310,204 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Jammed", - "unique_id": "00:13:a2:00:41:67:1f:d7-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInputWithDescription", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": "Jammed", + "unique_id": "00:13:a2:00:41:67:1f:d7-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInputWithDescription", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInputWithDescription", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:67:1f:d7-2-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:67:1f:d7-2-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:67:1f:d7-4-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:67:1f:d7-4-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:67:1f:d7-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3.0, - "mode": "auto", - "native_max_value": 12.0, - "native_min_value": 1.0, - "native_step": null, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:67:1f:d7-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 12.0, + "native_min_value": 1.0, + "native_step": null, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 3.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:67:1f:d7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:67:1f:d7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:67:1f:d7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:67:1f:d7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:67:1f:d7-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:67:1f:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:67:1f:d7-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:13:a2:00:41:67:1f:d7", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ] }, diff --git a/tests/data/devices/isilentllc-doorbell.json b/tests/data/devices/isilentllc-doorbell.json index 96400f0a7..a059b602a 100644 --- a/tests/data/devices/isilentllc-doorbell.json +++ b/tests/data/devices/isilentllc-doorbell.json @@ -169,120 +169,145 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4e:54-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:c0:4e:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4e:54-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:c0:4e:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4e:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:c0:4e:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4e:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:c0:4e:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4e:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:c0:4e:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4e:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:c0:4e:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4e:54-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:c0:4e:54", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 26.4, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4e:54-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:c0:4e:54", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 26.4 + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4e:54-2-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:c0:4e:54", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 46.8, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4e:54-2-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:c0:4e:54", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 46.8 + } } ] }, diff --git a/tests/data/devices/isilentllc-freezer-monitor.json b/tests/data/devices/isilentllc-freezer-monitor.json index 7cad49013..a3b620216 100644 --- a/tests/data/devices/isilentllc-freezer-monitor.json +++ b/tests/data/devices/isilentllc-freezer-monitor.json @@ -181,124 +181,149 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-3-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": -23.81, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "f0:f5:bd:ff:fe:2c:e0:90-3-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "f0:f5:bd:ff:fe:2c:e0:90", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": -23.81 + } } ] }, diff --git a/tests/data/devices/isilentllc-home-energy-monitor.json b/tests/data/devices/isilentllc-home-energy-monitor.json index 13077baa7..4242cdf12 100644 --- a/tests/data/devices/isilentllc-home-energy-monitor.json +++ b/tests/data/devices/isilentllc-home-energy-monitor.json @@ -3995,4350 +3995,4960 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-10-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-10-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 16.11, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 16.11, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.04, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 60.04, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 25.01, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 25.01, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 55, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 55, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 11.04, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 11.04, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-10-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 118.42, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 118.42, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-11-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-11-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 61.25, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 61.25, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.57, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 60.57, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 83.22, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 83.22, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 30, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 30, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 10.5, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 10.5, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-11-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 121.93, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 121.93, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-12-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-12-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 12, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.37, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 12, - "available": true, - "group_id": null, - "native_value": 0.37, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 12, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.04, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 12, - "available": true, - "group_id": null, - "native_value": 60.04, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 12, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 29.04, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 12, - "available": true, - "group_id": null, - "native_value": 29.04, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 12, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 56, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 12, - "available": true, - "group_id": null, - "native_value": 56, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 12, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 4.35, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 12, - "available": true, - "group_id": null, - "native_value": 4.35, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-12-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 12, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 123.32, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 12, - "available": true, - "group_id": null, - "native_value": 123.32, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-13-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-13-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 13, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 73.87, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 13, - "available": true, - "group_id": null, - "native_value": 73.87, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 13, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.65, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 13, - "available": true, - "group_id": null, - "native_value": 60.65, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 13, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 71.56, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 13, - "available": true, - "group_id": null, - "native_value": 71.56, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 13, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 63, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 13, - "available": true, - "group_id": null, - "native_value": 63, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 13, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 4.36, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 13, - "available": true, - "group_id": null, - "native_value": 4.36, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-13-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 13, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 117.29, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 13, - "available": true, - "group_id": null, - "native_value": 117.29, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-14-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-14-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 14, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 80.66, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 14, - "available": true, - "group_id": null, - "native_value": 80.66, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 14, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.94, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 14, - "available": true, - "group_id": null, - "native_value": 60.94, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 14, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 58.59, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 14, - "available": true, - "group_id": null, - "native_value": 58.59, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 14, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 18, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 14, - "available": true, - "group_id": null, - "native_value": 18, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 14, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 8.26, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 14, - "available": true, - "group_id": null, - "native_value": 8.26, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-14-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 14, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 117.36, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 14, - "available": true, - "group_id": null, - "native_value": 117.36, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-15-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-15-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 15, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 5.34, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 15, - "available": true, - "group_id": null, - "native_value": 5.34, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 15, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.74, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 15, - "available": true, - "group_id": null, - "native_value": 60.74, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 15, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 77.12, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 15, - "available": true, - "group_id": null, - "native_value": 77.12, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 15, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 99, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 15, - "available": true, - "group_id": null, - "native_value": 99, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 15, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 12.19, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 15, - "available": true, - "group_id": null, - "native_value": 12.19, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-15-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 15, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 120.67, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 15, - "available": true, - "group_id": null, - "native_value": 120.67, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-16-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-16-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 16, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 82.07, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 16, - "available": true, - "group_id": null, - "native_value": 82.07, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 16, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.32, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 16, - "available": true, - "group_id": null, - "native_value": 60.32, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 16, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 8.98, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 16, - "available": true, - "group_id": null, - "native_value": 8.98, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 16, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 44, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 16, - "available": true, - "group_id": null, - "native_value": 44, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 16, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 11.93, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 16, - "available": true, - "group_id": null, - "native_value": 11.93, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-16-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 16, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 116.78, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 16, - "available": true, - "group_id": null, - "native_value": 116.78, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-17-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-17-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 17, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 53.88, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 17, - "available": true, - "group_id": null, - "native_value": 53.88, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 17, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.88, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 17, - "available": true, - "group_id": null, - "native_value": 60.88, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 17, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 65.55, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 17, - "available": true, - "group_id": null, - "native_value": 65.55, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 17, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 95, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 17, - "available": true, - "group_id": null, - "native_value": 95, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 17, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 10.07, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 17, - "available": true, - "group_id": null, - "native_value": 10.07, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-17-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 17, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 120.71, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 17, - "available": true, - "group_id": null, - "native_value": 120.71, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-18-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-18-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 18, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 15.29, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 18, - "available": true, - "group_id": null, - "native_value": 15.29, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 18, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.85, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 18, - "available": true, - "group_id": null, - "native_value": 60.85, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 18, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 55.31, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 18, - "available": true, - "group_id": null, - "native_value": 55.31, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 18, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 24, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 18, - "available": true, - "group_id": null, - "native_value": 24, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 18, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 14.46, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 18, - "available": true, - "group_id": null, - "native_value": 14.46, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-18-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 18, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 116.15, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 18, - "available": true, - "group_id": null, - "native_value": 116.15, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-19-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-19-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 19, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 2.92, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 19, - "available": true, - "group_id": null, - "native_value": 2.92, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 19, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 59.93, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 19, - "available": true, - "group_id": null, - "native_value": 59.93, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 19, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 50.75, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 19, - "available": true, - "group_id": null, - "native_value": 50.75, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 19, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 34, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 19, - "available": true, - "group_id": null, - "native_value": 34, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 19, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 5.23, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 19, - "available": true, - "group_id": null, - "native_value": 5.23, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-19-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 19, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 121.3, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 19, - "available": true, - "group_id": null, - "native_value": 121.3, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-2-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-2-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 10.61, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 10.61, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.17, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 60.17, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 53.61, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 53.61, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 85, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 85, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 6.28, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 6.28, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-2-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 118.51, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 118.51, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-20-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-20-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 20, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 59.51, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 20, - "available": true, - "group_id": null, - "native_value": 59.51, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 20, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.21, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 20, - "available": true, - "group_id": null, - "native_value": 60.21, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 20, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 92.69, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 20, - "available": true, - "group_id": null, - "native_value": 92.69, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 20, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 91, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 20, - "available": true, - "group_id": null, - "native_value": 91, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 20, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 6.7, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 20, - "available": true, - "group_id": null, - "native_value": 6.7, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-20-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 20, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 119.91, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 20, - "available": true, - "group_id": null, - "native_value": 119.91, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-21-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-21-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 21, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 4.17, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 21, - "available": true, - "group_id": null, - "native_value": 4.17, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 21, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 59.17, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 21, - "available": true, - "group_id": null, - "native_value": 59.17, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 21, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 79.9, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 21, - "available": true, - "group_id": null, - "native_value": 79.9, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 21, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 51, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 21, - "available": true, - "group_id": null, - "native_value": 51, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 21, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 3.94, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 21, - "available": true, - "group_id": null, - "native_value": 3.94, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-21-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 21, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 116.88, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 21, - "available": true, - "group_id": null, - "native_value": 116.88, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-22-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-22-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 22, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 61.28, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 22, - "available": true, - "group_id": null, - "native_value": 61.28, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 22, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 59.33, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 22, - "available": true, - "group_id": null, - "native_value": 59.33, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 22, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 5.13, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 22, - "available": true, - "group_id": null, - "native_value": 5.13, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 22, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 97, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 22, - "available": true, - "group_id": null, - "native_value": 97, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 22, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 5.64, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 22, - "available": true, - "group_id": null, - "native_value": 5.64, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-22-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 22, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 122.72, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 22, - "available": true, - "group_id": null, - "native_value": 122.72, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-23-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-23-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 23, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 11.9, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 23, - "available": true, - "group_id": null, - "native_value": 11.9, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 23, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 59.34, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 23, - "available": true, - "group_id": null, - "native_value": 59.34, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 23, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 39.19, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 23, - "available": true, - "group_id": null, - "native_value": 39.19, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 23, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 21, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 23, - "available": true, - "group_id": null, - "native_value": 21, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 23, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 3.91, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 23, - "available": true, - "group_id": null, - "native_value": 3.91, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-23-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 23, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 116.66, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 23, - "available": true, - "group_id": null, - "native_value": 116.66, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-24-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-24-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 24, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 4.11, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 24, - "available": true, - "group_id": null, - "native_value": 4.11, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 24, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 59.99, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 24, - "available": true, - "group_id": null, - "native_value": 59.99, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 24, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 94.32, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 24, - "available": true, - "group_id": null, - "native_value": 94.32, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 24, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 55, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 24, - "available": true, - "group_id": null, - "native_value": 55, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 24, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 1.84, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 24, - "available": true, - "group_id": null, - "native_value": 1.84, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-24-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 24, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 121.41, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 24, - "available": true, - "group_id": null, - "native_value": 121.41, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-25-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-25-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 25, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 13.49, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 25, - "available": true, - "group_id": null, - "native_value": 13.49, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 25, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 59.46, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 25, - "available": true, - "group_id": null, - "native_value": 59.46, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 25, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 28.08, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 25, - "available": true, - "group_id": null, - "native_value": 28.08, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 25, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 0, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 25, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 25, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 1.68, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 25, - "available": true, - "group_id": null, - "native_value": 1.68, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-25-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 25, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 118.04, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 25, - "available": true, - "group_id": null, - "native_value": 118.04, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-26-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-26-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 26, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 84.08, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 26, - "available": true, - "group_id": null, - "native_value": 84.08, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 26, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 59.58, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 26, - "available": true, - "group_id": null, - "native_value": 59.58, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 26, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 9.18, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 26, - "available": true, - "group_id": null, - "native_value": 9.18, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 26, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 41, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 26, - "available": true, - "group_id": null, - "native_value": 41, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 26, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 3.52, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 26, - "available": true, - "group_id": null, - "native_value": 3.52, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-26-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 26, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 124.04, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 26, - "available": true, - "group_id": null, - "native_value": 124.04, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-3-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-3-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 39.33, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 39.33, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 59.36, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 59.36, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 6.4, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 6.4, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 27, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 27, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 5.29, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 5.29, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-3-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 115.19, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 115.19, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-4-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-4-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 63.77, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 63.77, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 59.99, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 59.99, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 61.39, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 61.39, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 93, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 93, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 8.33, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 8.33, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-4-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 117.45, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 117.45, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-5-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-5-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 4.37, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 4.37, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.57, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 60.57, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 22.23, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 22.23, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 93, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 93, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 14.64, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 14.64, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-5-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 124.16, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 124.16, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-6-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-6-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 31.48, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 31.48, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 59.0, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 59.0, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 81.49, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 81.49, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 23, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 23, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 10.24, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 10.24, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-6-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 123.42, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 123.42, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-7-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-7-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 7, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 7.6, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 7, - "available": true, - "group_id": null, - "native_value": 7.6, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 7, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.92, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 7, - "available": true, - "group_id": null, - "native_value": 60.92, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 7, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 36.56, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 7, - "available": true, - "group_id": null, - "native_value": 36.56, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 7, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 52, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 7, - "available": true, - "group_id": null, - "native_value": 52, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 7, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 3.39, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 7, - "available": true, - "group_id": null, - "native_value": 3.39, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-7-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 7, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 118.6, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 7, - "available": true, - "group_id": null, - "native_value": 118.6, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-8-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-8-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 8, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 2.47, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": 2.47, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 8, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.04, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": 60.04, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 8, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 43.42, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": 43.42, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 8, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 77, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": 77, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 8, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 4.09, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": 4.09, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-8-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 8, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 124.38, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": 124.38, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-9-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-9-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 9, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 63.6, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 9, - "available": true, - "group_id": null, - "native_value": 63.6, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 9, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.71, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 9, - "available": true, - "group_id": null, - "native_value": 60.71, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 9, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 25.72, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 9, - "available": true, - "group_id": null, - "native_value": 25.72, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 9, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 37, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 9, - "available": true, - "group_id": null, - "native_value": 37, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 9, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 3.48, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 9, - "available": true, - "group_id": null, - "native_value": 3.48, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" - }, - { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + ] + }, + { + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:93:fe:df-9-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:93:fe:df", + "endpoint_id": 9, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 124.69, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:41:93:fe:df", - "endpoint_id": 9, - "available": true, - "group_id": null, - "native_value": 124.69, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ] }, diff --git a/tests/data/devices/isilentllc-masterbed-light-controller.json b/tests/data/devices/isilentllc-masterbed-light-controller.json index d016d4005..dab8ed0ec 100644 --- a/tests/data/devices/isilentllc-masterbed-light-controller.json +++ b/tests/data/devices/isilentllc-masterbed-light-controller.json @@ -511,240 +511,293 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-2-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-2-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-3-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-3-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 3, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.32599374380102236, - 0.332997634851606 - ], - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.32599374380102236, + 0.332997634851606 + ], + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-2-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 1.5, - "mode": "auto", - "native_max_value": 1023, - "native_min_value": 0, - "native_step": 0.009999999776482582, - "native_unit_of_measurement": "V" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-2-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1023, + "native_min_value": 0, + "native_step": 0.009999999776482582, + "native_unit_of_measurement": "V" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 1.5 + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-3-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 1.5, - "mode": "auto", - "native_max_value": 1023, - "native_min_value": 0, - "native_step": 0.009999999776482582, - "native_unit_of_measurement": "V" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-3-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1023, + "native_min_value": 0, + "native_step": 0.009999999776482582, + "native_unit_of_measurement": "V" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 1.5 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-4-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 24.9, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-4-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 24.9 + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:b1:90:06-4-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:b1:90:06", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 43.7, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:b1:90:06-4-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:b1:90:06", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 43.7 + } } ] }, diff --git a/tests/data/devices/isilentllc-safe.json b/tests/data/devices/isilentllc-safe.json index 057bfff64..20285375c 100644 --- a/tests/data/devices/isilentllc-safe.json +++ b/tests/data/devices/isilentllc-safe.json @@ -366,186 +366,229 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-3-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-3-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 3, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 4, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.32599374380102236, - 0.332997634851606 - ], - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 4, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.32599374380102236, + 0.332997634851606 + ], + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 25.2, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 25.2 + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:41:95:c3:a6-2-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:41:95:c3:a6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 41.9, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:41:95:c3:a6-2-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:41:95:c3:a6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 41.9 + } } ] }, diff --git a/tests/data/devices/isilentllc-test-device.json b/tests/data/devices/isilentllc-test-device.json index 317695eba..17399e5e2 100644 --- a/tests/data/devices/isilentllc-test-device.json +++ b/tests/data/devices/isilentllc-test-device.json @@ -175,121 +175,146 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", - "endpoint_id": 10, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", + "endpoint_id": 10, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", - "endpoint_id": 10, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:c2-10-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", + "endpoint_id": 10, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:c2-11-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", - "endpoint_id": 11, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:c2-11-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "74:4d:bd:ff:fe:60:7c:c2", + "endpoint_id": 11, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ] }, diff --git a/tests/data/devices/isilentllc-test-mule.json b/tests/data/devices/isilentllc-test-mule.json index 939d1b9ae..4d80b3118 100644 --- a/tests/data/devices/isilentllc-test-mule.json +++ b/tests/data/devices/isilentllc-test-mule.json @@ -151,101 +151,121 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "74:4d:bd:ff:fe:60:7c:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "74:4d:bd:ff:fe:60:7c:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "74:4d:bd:ff:fe:60:7c:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "74:4d:bd:ff:fe:60:7c:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "74:4d:bd:ff:fe:60:7c:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "74:4d:bd:ff:fe:60:7c:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "74:4d:bd:ff:fe:60:7c:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "74:4d:bd:ff:fe:60:7c:80-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "74:4d:bd:ff:fe:60:7c:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/isilentllc-water-heater.json b/tests/data/devices/isilentllc-water-heater.json index 3cbf18d0a..73c1def36 100644 --- a/tests/data/devices/isilentllc-water-heater.json +++ b/tests/data/devices/isilentllc-water-heater.json @@ -319,206 +319,245 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 0.0, + "measurement_type": "PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT, DC_MEASUREMENT", + "ac_frequency_max": 0.0 + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT, DC_MEASUREMENT", - "max_value": 0.0, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT, DC_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT, DC_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0, + "measurement_type": "PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT, DC_MEASUREMENT", + "rms_voltage_max": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "PHASE_B_MEASUREMENT, PHASE_C_MEASUREMENT, DC_MEASUREMENT", - "max_value": 0.0, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 47.5, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 47.5 + } }, { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-3-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 56.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-3-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 56.0 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "00:13:a2:00:40:c0:4d:cb-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:13:a2:00:40:c0:4d:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "00:13:a2:00:40:c0:4d:cb-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:13:a2:00:40:c0:4d:cb", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ] }, diff --git a/tests/data/devices/jasco-products-45856-0x00000006.json b/tests/data/devices/jasco-products-45856-0x00000006.json index 30f3a0541..84c624e17 100644 --- a/tests/data/devices/jasco-products-45856-0x00000006.json +++ b/tests/data/devices/jasco-products-45856-0x00000006.json @@ -324,206 +324,251 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "ForceOnLight", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:26:d3:61-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:26:d3:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/jasco-products-45857-0x00000006.json b/tests/data/devices/jasco-products-45857-0x00000006.json index e5901d258..b91a42533 100644 --- a/tests/data/devices/jasco-products-45857-0x00000006.json +++ b/tests/data/devices/jasco-products-45857-0x00000006.json @@ -379,235 +379,285 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "ForceOnLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "ForceOnLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "ForceOnLight", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.1309, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.1309, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:25:2c:24-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:25:2c:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ke-tradfri-open-close-remote-0x22010631.json b/tests/data/devices/ke-tradfri-open-close-remote-0x22010631.json index e455e5cf4..4ddcea7b6 100644 --- a/tests/data/devices/ke-tradfri-open-close-remote-0x22010631.json +++ b/tests/data/devices/ke-tradfri-open-close-remote-0x22010631.json @@ -221,137 +221,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:96:48:04-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:96:48:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:96:48:04-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:96:48:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:96:48:04-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:96:48:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:96:48:04-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:96:48:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:96:48:04-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:96:48:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:96:48:04-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:96:48:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:96:48:04-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:96:48:04-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:96:48:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 87.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "5c:02:72:ff:fe:96:48:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 87.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.9 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:96:48:04-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:96:48:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x22010631", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:96:48:04-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:96:48:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x22010631", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/keen-home-inc-sv01-410-mp-1-1-0x10235121.json b/tests/data/devices/keen-home-inc-sv01-410-mp-1-1-0x10235121.json index 6adafee5d..49768c08b 100644 --- a/tests/data/devices/keen-home-inc-sv01-410-mp-1-1-0x10235121.json +++ b/tests/data/devices/keen-home-inc-sv01-410-mp-1-1-0x10235121.json @@ -271,211 +271,249 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "KeenVent", - "translation_key": "keen_vent", - "translation_placeholders": null, - "device_class": "damper", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "KeenVent", + "translation_key": "keen_vent", + "translation_placeholders": null, + "device_class": "damper", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "KeenVent", + "available": true, + "current_position": 100, + "is_closed": false, + "state": "open" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 3.1 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 28.11, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 28.11 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 991, - "suggested_display_precision": 0, - "unit": "hPa" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "hPa" + }, + "state": { + "class_name": "Pressure", + "available": true, + "state": 991 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x10235121", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:6b:5b:c9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:6b:5b:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x10235121", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/keen-home-inc-sv02-610-mp-1-3.json b/tests/data/devices/keen-home-inc-sv02-610-mp-1-3.json index 91facc0e1..469d131a7 100644 --- a/tests/data/devices/keen-home-inc-sv02-610-mp-1-3.json +++ b/tests/data/devices/keen-home-inc-sv02-610-mp-1-3.json @@ -228,211 +228,249 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "KeenVent", - "translation_key": "keen_vent", - "translation_placeholders": null, - "device_class": "damper", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "KeenVent", + "translation_key": "keen_vent", + "translation_placeholders": null, + "device_class": "damper", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "KeenVent", + "available": true, + "current_position": 100, + "is_closed": true, + "state": "closed" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 5.0, + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 2.3 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 2.3 + ] }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20.73, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.73 + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 994, - "suggested_display_precision": 0, - "unit": "hPa" + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "hPa" + }, + "state": { + "class_name": "Pressure", + "available": true, + "state": 994 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:81:48:29-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:81:48:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:81:48:29-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:81:48:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/keen-home-inc-sv02-612-mp-1-3.json b/tests/data/devices/keen-home-inc-sv02-612-mp-1-3.json index e47052cb0..e34891672 100644 --- a/tests/data/devices/keen-home-inc-sv02-612-mp-1-3.json +++ b/tests/data/devices/keen-home-inc-sv02-612-mp-1-3.json @@ -277,211 +277,249 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "KeenVent", - "translation_key": "keen_vent", - "translation_placeholders": null, - "device_class": "damper", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "KeenVent", + "translation_key": "keen_vent", + "translation_placeholders": null, + "device_class": "damper", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "KeenVent", + "available": true, + "current_position": 100, + "is_closed": true, + "state": "closed" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 0.0, + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 1.3 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 1.3 + ] }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 16.7, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 16.7 + } }, { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1004, - "suggested_display_precision": 0, - "unit": "hPa" + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "hPa" + }, + "state": { + "class_name": "Pressure", + "available": true, + "state": 1004 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0b:57:ff:fe:92:e6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:92:e6:e4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0b:57:ff:fe:92:e6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/king-of-fans-inc-hbuniversalcfremote-0x0000000f.json b/tests/data/devices/king-of-fans-inc-hbuniversalcfremote-0x0000000f.json index 99858baa2..43ba655bb 100644 --- a/tests/data/devices/king-of-fans-inc-hbuniversalcfremote-0x0000000f.json +++ b/tests/data/devices/king-of-fans-inc-hbuniversalcfremote-0x0000000f.json @@ -221,218 +221,256 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "fan": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1-514", - "migrate_unique_ids": [], - "platform": "fan", - "class_name": "KofFan", - "translation_key": "fan", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "preset_mode": null, - "percentage": 0, - "is_on": false, - "speed": "off", - "preset_modes": [ - "smart" - ], - "supported_features": 57, - "speed_count": 4, - "speed_list": [ - "off", - "low", - "medium", - "high", - "smart" - ], - "speed_range": [ - 1, - 4 - ], - "default_on_percentage": 50 + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1-514", + "migrate_unique_ids": [], + "platform": "fan", + "class_name": "KofFan", + "translation_key": "fan", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "preset_modes": [ + "smart" + ], + "supported_features": 57, + "speed_count": 4, + "speed_list": [ + "off", + "low", + "medium", + "high", + "smart" + ] + }, + "state": { + "class_name": "KofFan", + "available": true, + "preset_mode": null, + "percentage": 0, + "is_on": false, + "speed": "off" + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:09:ad:41-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:09:ad:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000000f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:09:ad:41-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:09:ad:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000000f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/king-of-fans-inc-hdc52eastwindfan-0x0000000f.json b/tests/data/devices/king-of-fans-inc-hdc52eastwindfan-0x0000000f.json index 382669807..a5ab82bde 100644 --- a/tests/data/devices/king-of-fans-inc-hdc52eastwindfan-0x0000000f.json +++ b/tests/data/devices/king-of-fans-inc-hdc52eastwindfan-0x0000000f.json @@ -227,218 +227,256 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "fan": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1-514", - "migrate_unique_ids": [], - "platform": "fan", - "class_name": "KofFan", - "translation_key": "fan", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "preset_mode": null, - "percentage": 0, - "is_on": false, - "speed": "off", - "preset_modes": [ - "smart" - ], - "supported_features": 57, - "speed_count": 4, - "speed_list": [ - "off", - "low", - "medium", - "high", - "smart" - ], - "speed_range": [ - 1, - 4 - ], - "default_on_percentage": 50 + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1-514", + "migrate_unique_ids": [], + "platform": "fan", + "class_name": "KofFan", + "translation_key": "fan", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "preset_modes": [ + "smart" + ], + "supported_features": 57, + "speed_count": 4, + "speed_list": [ + "off", + "low", + "medium", + "high", + "smart" + ] + }, + "state": { + "class_name": "KofFan", + "available": true, + "preset_mode": null, + "percentage": 0, + "is_on": false, + "speed": "off" + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:22:a3:00:00:27:48:84-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:22:a3:00:00:27:48:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000000f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:27:48:84-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:22:a3:00:00:27:48:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000000f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/konke-3afe140103020000.json b/tests/data/devices/konke-3afe140103020000.json index e363a0ca8..f64e8c1fc 100644 --- a/tests/data/devices/konke-3afe140103020000.json +++ b/tests/data/devices/konke-3afe140103020000.json @@ -166,153 +166,183 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Unknown", + "battery_voltage": 4.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": null, - "battery_voltage": 4.0 + ] }, { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 23.9, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 23.9 + } }, { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 46.69, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:7a-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:91:5f:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 46.69 + } } ] }, diff --git a/tests/data/devices/konke-3afe220103020000.json b/tests/data/devices/konke-3afe220103020000.json index ae6446bd1..b0e4ad0cd 100644 --- a/tests/data/devices/konke-3afe220103020000.json +++ b/tests/data/devices/konke-3afe220103020000.json @@ -166,153 +166,183 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Unknown", + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25.33, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 25.33 + } }, { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 44.76, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:91:5f:d1-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:91:5f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 44.76 + } } ] }, diff --git a/tests/data/devices/konke-3afe270104020015.json b/tests/data/devices/konke-3afe270104020015.json index 2e5f5a581..ae99b83b3 100644 --- a/tests/data/devices/konke-3afe270104020015.json +++ b/tests/data/devices/konke-3afe270104020015.json @@ -192,131 +192,156 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:e9:73:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "08:6b:d7:ff:fe:e9:73:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:e9:73:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:e9:73:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:e9:73:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:e9:73:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "08:6b:d7:ff:fe:e9:73:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:e9:73:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "08:6b:d7:ff:fe:e9:73:96-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "08:6b:d7:ff:fe:e9:73:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Unknown", + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "08:6b:d7:ff:fe:e9:73:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ] }, diff --git a/tests/data/devices/konke-3afe280100510001.json b/tests/data/devices/konke-3afe280100510001.json index 278484ed8..5a9c783d6 100644 --- a/tests/data/devices/konke-3afe280100510001.json +++ b/tests/data/devices/konke-3afe280100510001.json @@ -167,107 +167,127 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:59:0a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:07:59:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:59:0a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:07:59:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:59:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:07:59:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:59:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:07:59:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:59:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:07:59:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:59:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:07:59:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:59:0a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:59:0a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:07:59:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Unknown", + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "14:b4:57:ff:fe:07:59:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ] }, diff --git a/tests/data/devices/konke-3afe28010402000d.json b/tests/data/devices/konke-3afe28010402000d.json index 979b9556d..067b5cb37 100644 --- a/tests/data/devices/konke-3afe28010402000d.json +++ b/tests/data/devices/konke-3afe28010402000d.json @@ -204,153 +204,183 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:70:fb-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:07:70:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:70:fb-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:07:70:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:70:fb-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:07:70:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:70:fb-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "14:b4:57:ff:fe:07:70:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:70:fb-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:07:70:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:70:fb-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:07:70:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:70:fb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:07:70:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:70:fb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:07:70:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:70:fb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:07:70:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:70:fb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:07:70:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:07:70:fb-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:07:70:fb-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:07:70:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Unknown", + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "14:b4:57:ff:fe:07:70:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ] }, diff --git a/tests/data/devices/kwikset-smartcode-convert-gen1-0x30a07a06.json b/tests/data/devices/kwikset-smartcode-convert-gen1-0x30a07a06.json index 2c4f2559a..517d9f679 100644 --- a/tests/data/devices/kwikset-smartcode-convert-gen1-0x30a07a06.json +++ b/tests/data/devices/kwikset-smartcode-convert-gen1-0x30a07a06.json @@ -258,183 +258,219 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "lock": [ { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-257", - "migrate_unique_ids": [], - "platform": "lock", - "class_name": "DoorLock", - "translation_key": "door_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_locked": true + "info_object": { + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-257", + "migrate_unique_ids": [], + "platform": "lock", + "class_name": "DoorLock", + "translation_key": "door_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "DoorLock", + "available": true, + "is_locked": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 6.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 6.2 + ] }, { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 25.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 25.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:24:46:ff:fd:03:83:d9-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:24:46:ff:fd:03:83:d9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": "0x30a07a06", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:24:46:ff:fd:03:83:d9-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:24:46:ff:fd:03:83:d9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x30a07a06", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lds-zb-onoffplug-d0005-0x21186230.json b/tests/data/devices/lds-zb-onoffplug-d0005-0x21186230.json index a47ec7269..d8d945965 100644 --- a/tests/data/devices/lds-zb-onoffplug-d0005-0x21186230.json +++ b/tests/data/devices/lds-zb-onoffplug-d0005-0x21186230.json @@ -388,277 +388,324 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": null + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 3.0, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": null + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3.0, - "suggested_display_precision": 3, - "unit": null, - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 67.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 67.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x21186230", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:48:5a:2c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:48:5a:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x21186230", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lds-zbt-cctswitch-d0001-0x21000006.json b/tests/data/devices/lds-zbt-cctswitch-d0001-0x21000006.json index f9c0a198e..37e71fdcf 100644 --- a/tests/data/devices/lds-zbt-cctswitch-d0001-0x21000006.json +++ b/tests/data/devices/lds-zbt-cctswitch-d0001-0x21000006.json @@ -201,137 +201,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:81:56:33-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:81:56:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:81:56:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:81:56:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:81:56:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:81:56:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:81:56:33-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 89.0, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "14:b4:57:ff:fe:81:56:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 89.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:81:56:33-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:81:56:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x21000006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x21000006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ledvance-a60s-rgbw-0x02146550.json b/tests/data/devices/ledvance-a60s-rgbw-0x02146550.json index 8bf1c2378..459520f37 100644 --- a/tests/data/devices/ledvance-a60s-rgbw-0x02146550.json +++ b/tests/data/devices/ledvance-a60s-rgbw-0x02146550.json @@ -680,233 +680,282 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.03660639353017472, - 0.03675898374914168 - ], - "color_temp": 153, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 370 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 370 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.03660639353017472, + 0.03675898374914168 + ], + "color_temp": 153, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 153, - "mode": "auto", - "native_max_value": 370, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 370, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 153 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x02146550", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:dd:e3:9b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:dd:e3:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02146550", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ledvance-flex-rgbw-0x00102428.json b/tests/data/devices/ledvance-flex-rgbw-0x00102428.json index 041c2f9c3..a6784318a 100644 --- a/tests/data/devices/ledvance-flex-rgbw-0x00102428.json +++ b/tests/data/devices/ledvance-flex-rgbw-0x00102428.json @@ -323,284 +323,342 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.38054474708171204, - 0.3769130998702983 - ], - "color_temp": 370, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 145, - "max_mireds": 606 + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 145, + "max_mireds": 606 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.38054474708171204, + 0.3769130998702983 + ], + "color_temp": 370, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "DefaultMoveRateConfigurationEntity", + "available": true, + "state": 254 + } }, { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:00:6b:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00102428", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:00:6b:f5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:00:6b:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00102428", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ledvance-outdoor-accent-light-rgb-0x00102428.json b/tests/data/devices/ledvance-outdoor-accent-light-rgb-0x00102428.json index 71c1b1c18..a6d597859 100644 --- a/tests/data/devices/ledvance-outdoor-accent-light-rgb-0x00102428.json +++ b/tests/data/devices/ledvance-outdoor-accent-light-rgb-0x00102428.json @@ -299,284 +299,342 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 202, - "xy_color": [ - 0.16398870832379644, - 0.13199053940642405 - ], - "color_temp": 1901, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 1901, - "max_mireds": 6535 + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 1901, + "max_mireds": 6535 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 202, + "xy_color": [ + 0.16398870832379644, + 0.13199053940642405 + ], + "color_temp": 1901, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "DefaultMoveRateConfigurationEntity", + "available": true, + "state": 254 + } }, { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:07:83:8e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:07:83:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00102428", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:07:83:8e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:07:83:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00102428", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ledvance-plug-0x00102101.json b/tests/data/devices/ledvance-plug-0x00102101.json index f7630940c..87417abf4 100644 --- a/tests/data/devices/ledvance-plug-0x00102101.json +++ b/tests/data/devices/ledvance-plug-0x00102101.json @@ -183,130 +183,155 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:05:49:22-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:05:49:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:05:49:22-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:05:49:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:05:49:22-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:05:49:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:05:49:22-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:05:49:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:05:49:22-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:05:49:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:05:49:22-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:05:49:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:05:49:22-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:05:49:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:05:49:22-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "f0:d1:b8:00:00:05:49:22", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "f0:d1:b8:00:00:05:49:22-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f0:d1:b8:00:00:05:49:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00102101", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "f0:d1:b8:00:00:05:49:22-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f0:d1:b8:00:00:05:49:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00102101", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/legrand-contactor.json b/tests/data/devices/legrand-contactor.json index 2085a5e49..76377372d 100644 --- a/tests/data/devices/legrand-contactor.json +++ b/tests/data/devices/legrand-contactor.json @@ -523,321 +523,377 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json b/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json index d9b3f3a20..bbc29ba55 100644 --- a/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json +++ b/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json @@ -333,381 +333,459 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 76, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 76, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "DefaultMoveRateConfigurationEntity", + "available": true, + "state": 254 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 76, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 76 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 3 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 3 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 56, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 56 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Toggle", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Toggle" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 57, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 57 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x004d45ff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x004d45ff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/legrand-double-gangs-remote-switch.json b/tests/data/devices/legrand-double-gangs-remote-switch.json index 8f2b5d0e9..8688f9caa 100644 --- a/tests/data/devices/legrand-double-gangs-remote-switch.json +++ b/tests/data/devices/legrand-double-gangs-remote-switch.json @@ -259,161 +259,190 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:14:95:c6-2-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:14:95:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-2-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:14:95:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:14:95:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:14:95:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:b6:14:95:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:14:95:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json b/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json index 5bb4aafaf..4a90c7089 100644 --- a/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json +++ b/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json @@ -233,256 +233,309 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 220, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 220 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -67, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -67 + } } ], "switch": [ { - "fallback_name": "Turn on LED when off", - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_dark", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "turn_on_led_when_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "led_dark", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Turn on LED when off", + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_dark", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "turn_on_led_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "led_dark", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Turn on LED when on", - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_on", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "turn_on_led_when_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "led_on", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Turn on LED when on", + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_on", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "turn_on_led_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "led_on", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x001c4203", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x001c4203", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/legrand-light-switch-with-neutral.json b/tests/data/devices/legrand-light-switch-with-neutral.json index 65b68b2d2..8e2c9808c 100644 --- a/tests/data/devices/legrand-light-switch-with-neutral.json +++ b/tests/data/devices/legrand-light-switch-with-neutral.json @@ -304,256 +304,309 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 212, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 212 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -58, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -58 + } } ], "switch": [ { - "fallback_name": "Turn on LED when off", - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_dark", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "turn_on_led_when_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "led_dark", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Turn on LED when off", + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_dark", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "turn_on_led_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "led_dark", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Turn on LED when on", - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_on", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "turn_on_led_when_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "led_on", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Turn on LED when on", + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-led_on", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "turn_on_led_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "led_on", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/legrand-mobile-outlet-0x006545ff.json b/tests/data/devices/legrand-mobile-outlet-0x006545ff.json index 965615bc1..b44c140e7 100644 --- a/tests/data/devices/legrand-mobile-outlet-0x006545ff.json +++ b/tests/data/devices/legrand-mobile-outlet-0x006545ff.json @@ -615,321 +615,377 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 224, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 224 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -55, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -55 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 13.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 13.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 19.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 19.0, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x006545ff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x006545ff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/level-home-b2-0x0300001a.json b/tests/data/devices/level-home-b2-0x0300001a.json index 6dfc5dcaf..6e1853779 100644 --- a/tests/data/devices/level-home-b2-0x0300001a.json +++ b/tests/data/devices/level-home-b2-0x0300001a.json @@ -353,160 +353,191 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:13:82:67:19:59-10-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:13:82:67:19:59", - "endpoint_id": 10, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:13:82:67:19:59-10-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:13:82:67:19:59", + "endpoint_id": 10, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "lock": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:13:82:67:19:59-10-257", - "migrate_unique_ids": [], - "platform": "lock", - "class_name": "DoorLock", - "translation_key": "door_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:13:82:67:19:59", - "endpoint_id": 10, - "available": true, - "group_id": null, - "is_locked": false + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:13:82:67:19:59-10-257", + "migrate_unique_ids": [], + "platform": "lock", + "class_name": "DoorLock", + "translation_key": "door_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "f4:ce:36:13:82:67:19:59", + "endpoint_id": 10, + "available": true, + "group_id": null + }, + "state": { + "class_name": "DoorLock", + "available": true, + "is_locked": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:13:82:67:19:59-10-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:13:82:67:19:59-10-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:13:82:67:19:59", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 50.0, + "battery_size": "CR2", + "battery_quantity": 1, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "f4:ce:36:13:82:67:19:59", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 50.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2", - "battery_quantity": 1, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "f4:ce:36:13:82:67:19:59-5-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:13:82:67:19:59", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:13:82:67:19:59-5-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:13:82:67:19:59", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f4:ce:36:13:82:67:19:59-5-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:13:82:67:19:59", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:13:82:67:19:59-5-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:13:82:67:19:59", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:13:82:67:19:59-5-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:13:82:67:19:59", - "endpoint_id": 5, - "available": true, - "group_id": null, - "installed_version": "0x0300001a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:13:82:67:19:59-5-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:13:82:67:19:59", + "endpoint_id": 5, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0300001a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/level-home-bolt-0x03020006.json b/tests/data/devices/level-home-bolt-0x03020006.json index 4abfd8387..39f0e49a4 100644 --- a/tests/data/devices/level-home-bolt-0x03020006.json +++ b/tests/data/devices/level-home-bolt-0x03020006.json @@ -196,160 +196,191 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:b9:50:7a:86:d6-10-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:b9:50:7a:86:d6", - "endpoint_id": 10, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:b9:50:7a:86:d6-10-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:b9:50:7a:86:d6", + "endpoint_id": 10, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "lock": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:b9:50:7a:86:d6-10-257", - "migrate_unique_ids": [], - "platform": "lock", - "class_name": "DoorLock", - "translation_key": "door_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:b9:50:7a:86:d6", - "endpoint_id": 10, - "available": true, - "group_id": null, - "is_locked": true + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:b9:50:7a:86:d6-10-257", + "migrate_unique_ids": [], + "platform": "lock", + "class_name": "DoorLock", + "translation_key": "door_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "f4:ce:36:b9:50:7a:86:d6", + "endpoint_id": 10, + "available": true, + "group_id": null + }, + "state": { + "class_name": "DoorLock", + "available": true, + "is_locked": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:b9:50:7a:86:d6-10-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:b9:50:7a:86:d6-10-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:b9:50:7a:86:d6", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "CR2", + "battery_quantity": 1, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "f4:ce:36:b9:50:7a:86:d6", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2", - "battery_quantity": 1, - "battery_voltage": 2.8 + ] }, { - "fallback_name": null, - "unique_id": "f4:ce:36:b9:50:7a:86:d6-5-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:b9:50:7a:86:d6", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:b9:50:7a:86:d6-5-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:b9:50:7a:86:d6", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "f4:ce:36:b9:50:7a:86:d6-5-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:b9:50:7a:86:d6", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:b9:50:7a:86:d6-5-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:b9:50:7a:86:d6", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "f4:ce:36:b9:50:7a:86:d6-5-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "f4:ce:36:b9:50:7a:86:d6", - "endpoint_id": 5, - "available": true, - "group_id": null, - "installed_version": "0x03020006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "f4:ce:36:b9:50:7a:86:d6-5-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "f4:ce:36:b9:50:7a:86:d6", + "endpoint_id": 5, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x03020006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lixee-zlinky-tic-0x00000011.json b/tests/data/devices/lixee-zlinky-tic-0x00000011.json index 98b499f8f..89bc97771 100644 --- a/tests/data/devices/lixee-zlinky-tic-0x00000011.json +++ b/tests/data/devices/lixee-zlinky-tic-0x00000011.json @@ -899,606 +899,714 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 32, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 32 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 42837.076, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 42837.076, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier1_summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Tier1SmartEnergySummation", - "translation_key": "tier1_summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier1_summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Tier1SmartEnergySummation", + "translation_key": "tier1_summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "Tier1SmartEnergySummation", + "available": true, + "state": 19043.24, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 19043.24, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier2_summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Tier2SmartEnergySummation", - "translation_key": "tier2_summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier2_summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Tier2SmartEnergySummation", + "translation_key": "tier2_summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "Tier2SmartEnergySummation", + "available": true, + "state": 23793.836, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 23793.836, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier3_summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Tier3SmartEnergySummation", - "translation_key": "tier3_summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier3_summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Tier3SmartEnergySummation", + "translation_key": "tier3_summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "Tier3SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier4_summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Tier4SmartEnergySummation", - "translation_key": "tier4_summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier4_summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Tier4SmartEnergySummation", + "translation_key": "tier4_summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "Tier4SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier5_summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Tier5SmartEnergySummation", - "translation_key": "tier5_summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier5_summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Tier5SmartEnergySummation", + "translation_key": "tier5_summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "Tier5SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier6_summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Tier6SmartEnergySummation", - "translation_key": "tier6_summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-1794-tier6_summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Tier6SmartEnergySummation", + "translation_key": "tier6_summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "Tier6SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 257.0, + "measurement_type": "", + "active_power_max": 4160.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 257.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "", - "max_value": 4160.0, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-active_power_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhB", - "translation_key": "active_power_ph_b", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-active_power_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhB", + "translation_key": "active_power_ph_b", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePowerPhB", + "available": true, + "state": 13.0, + "measurement_type": "", + "active_power_max_ph_b": 0.0 + }, + "extra_state_attributes": [ "active_power_max_ph_b", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 13.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "", - "max_value": 0.0, - "max_attribute_name": "active_power_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 0.0, + "measurement_type": "" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 6.0, + "measurement_type": "", + "rms_current_max": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 6.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "", - "max_value": 0.0, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_current_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "translation_key": "rms_current_ph_b", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_current_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "translation_key": "rms_current_ph_b", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "available": true, + "state": 0.0, + "measurement_type": "", + "rms_current_max_ph_b": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max_ph_b" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "", - "max_value": 0.0, - "max_attribute_name": "rms_current_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_current_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "translation_key": "rms_current_ph_c", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_current_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "translation_key": "rms_current_ph_c", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "available": true, + "state": 0.0, + "measurement_type": "", + "rms_current_max_ph_c": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max_ph_c" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "", - "max_value": 0.0, - "max_attribute_name": "rms_current_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 241.0, + "measurement_type": "" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 241.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_voltage_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "translation_key": "rms_voltage_ph_b", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_voltage_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "translation_key": "rms_voltage_ph_b", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "available": true, + "state": 0.0, + "measurement_type": "" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max_ph_b" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "", - "max_value": null, - "max_attribute_name": "rms_voltage_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_voltage_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "translation_key": "rms_voltage_ph_c", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-rms_voltage_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "translation_key": "rms_voltage_ph_c", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "available": true, + "state": 0.0, + "measurement_type": "" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max_ph_c" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "", - "max_value": null, - "max_attribute_name": "rms_voltage_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 4160.0, + "measurement_type": "", + "active_power_max": 4160.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4160.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "", - "max_value": 4160.0, - "max_attribute_name": "active_power_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000011", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:db:c0:ae-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:db:c0:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000011", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lk-zb-doorsensor-d0003.json b/tests/data/devices/lk-zb-doorsensor-d0003.json index 003ae9bb4..ce0af3c86 100644 --- a/tests/data/devices/lk-zb-doorsensor-d0003.json +++ b/tests/data/devices/lk-zb-doorsensor-d0003.json @@ -204,161 +204,192 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "84:2e:14:ff:fe:44:9e:71-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "84:2e:14:ff:fe:44:9e:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "84:2e:14:ff:fe:44:9e:71-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "84:2e:14:ff:fe:44:9e:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "84:2e:14:ff:fe:44:9e:71-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "84:2e:14:ff:fe:44:9e:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "84:2e:14:ff:fe:44:9e:71-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "84:2e:14:ff:fe:44:9e:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "84:2e:14:ff:fe:44:9e:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "84:2e:14:ff:fe:44:9e:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "84:2e:14:ff:fe:44:9e:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "84:2e:14:ff:fe:44:9e:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "84:2e:14:ff:fe:44:9e:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "84:2e:14:ff:fe:44:9e:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "84:2e:14:ff:fe:44:9e:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "84:2e:14:ff:fe:44:9e:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "84:2e:14:ff:fe:44:9e:71-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "84:2e:14:ff:fe:44:9e:71-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "84:2e:14:ff:fe:44:9e:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 18.0, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "84:2e:14:ff:fe:44:9e:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 18.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.4 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "84:2e:14:ff:fe:44:9e:71-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "84:2e:14:ff:fe:44:9e:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "84:2e:14:ff:fe:44:9e:71-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "84:2e:14:ff:fe:44:9e:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lk-zbt-dimswitch-d0001-0x22166500.json b/tests/data/devices/lk-zbt-dimswitch-d0001-0x22166500.json index be55e3e66..0dc8604ca 100644 --- a/tests/data/devices/lk-zbt-dimswitch-d0001-0x22166500.json +++ b/tests/data/devices/lk-zbt-dimswitch-d0001-0x22166500.json @@ -201,137 +201,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 37.0, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 37.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.5 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x22166500", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x22166500", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lk-zbt-onoffplug-d0001-0x22036610.json b/tests/data/devices/lk-zbt-onoffplug-d0001-0x22036610.json index d1abcb0b3..e67c691a6 100644 --- a/tests/data/devices/lk-zbt-onoffplug-d0001-0x22036610.json +++ b/tests/data/devices/lk-zbt-onoffplug-d0001-0x22036610.json @@ -249,240 +249,285 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "5c:02:72:ff:fe:d3:bc:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x22036610", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:d3:bc:73-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "5c:02:72:ff:fe:d3:bc:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x22036610", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-airmonitor-acn01.json b/tests/data/devices/lumi-lumi-airmonitor-acn01.json index 9b07114fd..d1cb0caef 100644 --- a/tests/data/devices/lumi-lumi-airmonitor-acn01.json +++ b/tests/data/devices/lumi-lumi-airmonitor-acn01.json @@ -202,206 +202,247 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.04, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.04 + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 41.46, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 41.46 + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PPBVOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds_parts", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 42, - "suggested_display_precision": 0, - "unit": "ppb" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PPBVOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds_parts", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppb" + }, + "state": { + "class_name": "PPBVOCLevel", + "available": true, + "state": 42 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:10:61:a1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:10:61:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:10:61:a1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:10:61:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-airrtc-agl001-0x0000001e.json b/tests/data/devices/lumi-lumi-airrtc-agl001-0x0000001e.json index 78a18b522..b56583389 100644 --- a/tests/data/devices/lumi-lumi-airrtc-agl001-0x0000001e.json +++ b/tests/data/devices/lumi-lumi-airrtc-agl001-0x0000001e.json @@ -380,484 +380,584 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-calibrated", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "AqaraThermostatCalibrated", - "translation_key": "calibrated", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "calibrated" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-calibrated", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "AqaraThermostatCalibrated", + "translation_key": "calibrated", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "calibrated" + }, + "state": { + "class_name": "AqaraThermostatCalibrated", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-sensor", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "AqaraThermostatExternalSensor", - "translation_key": "external_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "sensor" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-sensor", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "AqaraThermostatExternalSensor", + "translation_key": "external_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "sensor" + }, + "state": { + "class_name": "AqaraThermostatExternalSensor", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-valve_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "AqaraThermostatValveAlarm", - "translation_key": "valve_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "valve_alarm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-valve_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "AqaraThermostatValveAlarm", + "translation_key": "valve_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "valve_alarm" + }, + "state": { + "class_name": "AqaraThermostatValveAlarm", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-window_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "AqaraThermostatWindowOpen", - "translation_key": null, - "translation_placeholders": null, - "device_class": "window", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "window_open" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-window_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "AqaraThermostatWindowOpen", + "translation_key": null, + "translation_placeholders": null, + "device_class": "window", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_open" + }, + "state": { + "class_name": "AqaraThermostatWindowOpen", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 20.9, - "outdoor_temperature": null, - "target_temperature": 23.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": 2600, - "occupied_heating_setpoint": 2300, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 20.9, + "outdoor_temperature": null, + "target_temperature": 23.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": 2600, + "occupied_heating_setpoint": 2300, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-away_preset_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AqaraThermostatAwayTemp", - "translation_key": "away_preset_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 15.0, - "mode": "slider", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1.0, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-away_preset_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AqaraThermostatAwayTemp", + "translation_key": "away_preset_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "slider", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1.0, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AqaraThermostatAwayTemp", + "available": true, + "state": 15.0 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-preset", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraThermostatPreset", - "translation_key": "preset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Manual", - "enum": "AqaraThermostatPresetMode", - "options": [ - "Manual", - "Auto", - "Away" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-preset", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraThermostatPreset", + "translation_key": "preset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "AqaraThermostatPresetMode", + "options": [ + "Manual", + "Auto", + "Away" + ] + }, + "state": { + "class_name": "AqaraThermostatPreset", + "available": true, + "state": "Manual" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 140, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 140 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -65, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -65 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "CR2032", + "battery_quantity": 1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraThermostatChildLock", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraThermostatChildLock", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "AqaraThermostatChildLock", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-valve_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraThermostatValveDetection", - "translation_key": "valve_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "valve_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-valve_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraThermostatValveDetection", + "translation_key": "valve_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "valve_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "AqaraThermostatValveDetection", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraThermostatWindowDetection", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-64704-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraThermostatWindowDetection", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "AqaraThermostatWindowDetection", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:61:df:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:61:df:4c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:61:df:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-ctrl-neutral2.json b/tests/data/devices/lumi-lumi-ctrl-neutral2.json index a723f1a11..0aa494542 100644 --- a/tests/data/devices/lumi-lumi-ctrl-neutral2.json +++ b/tests/data/devices/lumi-lumi-ctrl-neutral2.json @@ -326,216 +326,261 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 23.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 23.0 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 4, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-5-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 5, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-5-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 5, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:1a:bf:9e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:1a:bf:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-curtain-acn002-0x00000e1f.json b/tests/data/devices/lumi-lumi-curtain-acn002-0x00000e1f.json index ebe94eaa1..7f995e71d 100644 --- a/tests/data/devices/lumi-lumi-curtain-acn002-0x00000e1f.json +++ b/tests/data/devices/lumi-lumi-curtain-acn002-0x00000e1f.json @@ -388,315 +388,376 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Charging", - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-charging", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery_charging", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "charging" + "info_object": { + "fallback_name": "Charging", + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-charging", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery_charging", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "charging" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": "Calibrated", - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-positions_stored", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "calibrated", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "positions_stored" + "info_object": { + "fallback_name": "Calibrated", + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-positions_stored", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "calibrated", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "positions_stored" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } } ], "select": [ { - "fallback_name": "Speed", - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-speed", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "speed", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "High", - "enum": "AqaraRollerDriverSpeed", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": "Speed", + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-speed", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "speed", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "AqaraRollerDriverSpeed", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "High" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 79.0, + "battery_size": "Unknown", + "battery_quantity": 1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 79.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 24.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 24.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000e1f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000e1f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-curtain-acn002-0x00000f20.json b/tests/data/devices/lumi-lumi-curtain-acn002-0x00000f20.json index 611452f15..927a26b66 100644 --- a/tests/data/devices/lumi-lumi-curtain-acn002-0x00000f20.json +++ b/tests/data/devices/lumi-lumi-curtain-acn002-0x00000f20.json @@ -377,315 +377,376 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Charging", - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-charging", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery_charging", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "charging" + "info_object": { + "fallback_name": "Charging", + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-charging", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery_charging", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "charging" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": "Calibrated", - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-positions_stored", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "calibrated", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "positions_stored" + "info_object": { + "fallback_name": "Calibrated", + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-positions_stored", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "calibrated", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "positions_stored" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "select": [ { - "fallback_name": "Speed", - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-speed", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "speed", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "High", - "enum": "AqaraRollerDriverSpeed", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": "Speed", + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-speed", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "speed", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "AqaraRollerDriverSpeed", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "High" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Unknown", + "battery_quantity": 1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.3, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 0.3 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000f20", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:6a:11:ac-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:6a:11:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000f20", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-curtain-acn003.json b/tests/data/devices/lumi-lumi-curtain-acn003.json index 4d4cabc8b..83a9fba42 100644 --- a/tests/data/devices/lumi-lumi-curtain-acn003.json +++ b/tests/data/devices/lumi-lumi-curtain-acn003.json @@ -189,211 +189,252 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "CR2032", + "battery_quantity": 1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 100 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:4b:7b:ee-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:4b:7b:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-curtain-agl001-0x00000018.json b/tests/data/devices/lumi-lumi-curtain-agl001-0x00000018.json index c2d5c8343..5af8f6ff3 100644 --- a/tests/data/devices/lumi-lumi-curtain-agl001-0x00000018.json +++ b/tests/data/devices/lumi-lumi-curtain-agl001-0x00000018.json @@ -312,337 +312,404 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-64704-hand_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "AqaraE1CurtainMotorOpenedByHandBinarySensor", - "translation_key": "hand_open", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "hand_open" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-64704-hand_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "AqaraE1CurtainMotorOpenedByHandBinarySensor", + "translation_key": "hand_open", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "hand_open" + }, + "state": { + "class_name": "AqaraE1CurtainMotorOpenedByHandBinarySensor", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "curtain", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 2, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "curtain", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 2, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-0-power_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AqaraCurtainMotorPowerSourceSensor", - "translation_key": "power_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Battery", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-0-power_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AqaraCurtainMotorPowerSourceSensor", + "translation_key": "power_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "AqaraCurtainMotorPowerSourceSensor", + "available": true, + "state": "Battery" + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 57.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 57.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Drapery", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Drapery" + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-64704-hooks_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AqaraCurtainHookStateSensor", - "translation_key": "hooks_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Locked", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-64704-hooks_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AqaraCurtainHookStateSensor", + "translation_key": "hooks_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "AqaraCurtainHookStateSensor", + "available": true, + "state": "Locked" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-64704-hooks_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraE1CurtainMotorHooksLockedSwitch", - "translation_key": "hooks_locked", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "hooks_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-64704-hooks_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraE1CurtainMotorHooksLockedSwitch", + "translation_key": "hooks_locked", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "hooks_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "AqaraE1CurtainMotorHooksLockedSwitch", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:4f:fb:a7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:4f:fb:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000018", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:4f:fb:a7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:4f:fb:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000018", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-curtain-hagl04.json b/tests/data/devices/lumi-lumi-curtain-hagl04.json index 8b988e9ff..9bb233268 100644 --- a/tests/data/devices/lumi-lumi-curtain-hagl04.json +++ b/tests/data/devices/lumi-lumi-curtain-hagl04.json @@ -263,185 +263,221 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "curtain", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": null, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "curtain", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": null, + "current_tilt_position": null, + "state": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 + } } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.0, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0, - "native_step": null, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0, + "native_step": null, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 1.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Drapery", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Drapery" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:8b:55:72-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:8b:55:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:8b:55:72-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:8b:55:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ] }, diff --git a/tests/data/devices/lumi-lumi-flood-acn001-0x00000004.json b/tests/data/devices/lumi-lumi-flood-acn001-0x00000004.json index 568ec7ca0..9f0710cf2 100644 --- a/tests/data/devices/lumi-lumi-flood-acn001-0x00000004.json +++ b/tests/data/devices/lumi-lumi-flood-acn001-0x00000004.json @@ -205,161 +205,192 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:22:14:df-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:22:14:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:22:14:df-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "54:ef:44:10:00:22:14:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:22:14:df-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:22:14:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:22:14:df-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:22:14:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:22:14:df-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:22:14:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:22:14:df-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:22:14:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:22:14:df-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:22:14:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:22:14:df-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:22:14:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:22:14:df-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:22:14:df-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:22:14:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 50.5, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.96 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "54:ef:44:10:00:22:14:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 50.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.96 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:22:14:df-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:22:14:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000004", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:22:14:df-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:22:14:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000004", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-flood-agl02-0x00000020.json b/tests/data/devices/lumi-lumi-flood-agl02-0x00000020.json index 7d40cec93..e6480ed92 100644 --- a/tests/data/devices/lumi-lumi-flood-agl02-0x00000020.json +++ b/tests/data/devices/lumi-lumi-flood-agl02-0x00000020.json @@ -192,161 +192,192 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:aa:c8:25-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:aa:c8:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:aa:c8:25-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "54:ef:44:10:00:aa:c8:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:aa:c8:25-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:aa:c8:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:aa:c8:25-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:aa:c8:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:aa:c8:25-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:aa:c8:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:aa:c8:25-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:aa:c8:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:aa:c8:25-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:aa:c8:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:aa:c8:25-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:aa:c8:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:aa:c8:25-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:aa:c8:25-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:aa:c8:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 80.5, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "54:ef:44:10:00:aa:c8:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 80.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:aa:c8:25-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:aa:c8:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000020", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:aa:c8:25-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:aa:c8:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000020", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-light-aqcn02-0x00000017.json b/tests/data/devices/lumi-lumi-light-aqcn02-0x00000017.json index d1220c69f..15cebc3e3 100644 --- a/tests/data/devices/lumi-lumi-light-aqcn02-0x00000017.json +++ b/tests/data/devices/lumi-lumi-light-aqcn02-0x00000017.json @@ -330,176 +330,214 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:16:bb:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:16:bb:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:16:bb:90-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:16:bb:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 178, - "xy_color": null, - "color_temp": 190, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 370 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:16:bb:90-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d2:16:bb:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 370 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 178, + "xy_color": null, + "color_temp": 190, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:16:bb:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 150, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:16:bb:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 150 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:16:bb:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:16:bb:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:16:bb:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:16:bb:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:16:bb:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000017", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:16:bb:90-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:16:bb:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000017", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-magnet-ac01.json b/tests/data/devices/lumi-lumi-magnet-ac01.json index a0b8115bf..568afa736 100644 --- a/tests/data/devices/lumi-lumi-magnet-ac01.json +++ b/tests/data/devices/lumi-lumi-magnet-ac01.json @@ -164,190 +164,226 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-64704-detection_distance", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraMagnetAC01DetectionDistance", - "translation_key": "detection_distance", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "TwentyMillimeters", - "enum": "DetectionDistance", - "options": [ - "TenMillimeters", - "TwentyMillimeters", - "ThirtyMillimeters" - ] + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-64704-detection_distance", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraMagnetAC01DetectionDistance", + "translation_key": "detection_distance", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "DetectionDistance", + "options": [ + "TenMillimeters", + "TwentyMillimeters", + "ThirtyMillimeters" + ] + }, + "state": { + "class_name": "AqaraMagnetAC01DetectionDistance", + "available": true, + "state": "TwentyMillimeters" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 69.5, + "battery_size": "CR123A", + "battery_quantity": 1, + "battery_voltage": 1.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 69.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR123A", - "battery_quantity": 1, - "battery_voltage": 1.9 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:1e:85:7f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:1e:85:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-magnet-acn001-0x00000004.json b/tests/data/devices/lumi-lumi-magnet-acn001-0x00000004.json index 0bcd2670c..2994845c8 100644 --- a/tests/data/devices/lumi-lumi-magnet-acn001-0x00000004.json +++ b/tests/data/devices/lumi-lumi-magnet-acn001-0x00000004.json @@ -205,161 +205,192 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:25:87:7e-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:25:87:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:25:87:7e-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "54:ef:44:10:00:25:87:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:25:87:7e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:25:87:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:25:87:7e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:25:87:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:25:87:7e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:25:87:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:25:87:7e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:25:87:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:25:87:7e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:25:87:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:25:87:7e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:25:87:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:25:87:7e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:25:87:7e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:25:87:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 51.0, + "battery_size": "CR1632", + "battery_quantity": 1, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "54:ef:44:10:00:25:87:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 51.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR1632", - "battery_quantity": 1, - "battery_voltage": 2.9 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:25:87:7e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:25:87:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000004", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:25:87:7e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:25:87:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000004", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-magnet-agl02-0x0000001e.json b/tests/data/devices/lumi-lumi-magnet-agl02-0x0000001e.json index 013781510..f93e735fc 100644 --- a/tests/data/devices/lumi-lumi-magnet-agl02-0x0000001e.json +++ b/tests/data/devices/lumi-lumi-magnet-agl02-0x0000001e.json @@ -145,161 +145,191 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:70:f0:26-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:70:f0:26", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:70:f0:26-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:70:f0:26", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:70:f0:26-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:70:f0:26", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:70:f0:26-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:70:f0:26", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -35, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -35 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:70:f0:26-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "CR1632", + "battery_quantity": 1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:52:70:f0:26", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR1632", - "battery_quantity": 1, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:70:f0:26-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:70:f0:26", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-motion-ac02.json b/tests/data/devices/lumi-lumi-motion-ac02.json index f04fab50d..5f065252c 100644 --- a/tests/data/devices/lumi-lumi-motion-ac02.json +++ b/tests/data/devices/lumi-lumi-motion-ac02.json @@ -231,292 +231,348 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-64704-detection_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AqaraMotionDetectionInterval", - "translation_key": "detection_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 2, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-64704-detection_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AqaraMotionDetectionInterval", + "translation_key": "detection_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "AqaraMotionDetectionInterval", + "available": true, + "state": 30 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-64704-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraMotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "High", - "enum": "AqaraMotionSensitivities", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-64704-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraMotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "AqaraMotionSensitivities", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "AqaraMotionSensitivity", + "available": true, + "state": "High" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 75.5, + "battery_size": "CR1632", + "battery_quantity": 1, + "battery_voltage": 3.03 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 75.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR1632", - "battery_quantity": 1, - "battery_voltage": 3.03 + ] }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 24, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 24 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-64704-trigger_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "P1MotionTriggerIndicatorSwitch", - "translation_key": "trigger_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "trigger_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-64704-trigger_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "P1MotionTriggerIndicatorSwitch", + "translation_key": "trigger_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "trigger_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "P1MotionTriggerIndicatorSwitch", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:49:74:c7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:49:74:c7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:49:74:c7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:49:74:c7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-motion-agl02.json b/tests/data/devices/lumi-lumi-motion-agl02.json index 52c89c321..dee9d9740 100644 --- a/tests/data/devices/lumi-lumi-motion-agl02.json +++ b/tests/data/devices/lumi-lumi-motion-agl02.json @@ -212,206 +212,247 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 52.0, + "battery_size": "CR1632", + "battery_quantity": 1, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 52.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR1632", - "battery_quantity": 1, - "battery_voltage": 2.9 + ] }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 4 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:19:e0:9d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:19:e0:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:19:e0:9d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:19:e0:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-motion-agl04-0x00000019.json b/tests/data/devices/lumi-lumi-motion-agl04-0x00000019.json index f5b7368a4..331a95bcf 100644 --- a/tests/data/devices/lumi-lumi-motion-agl04-0x00000019.json +++ b/tests/data/devices/lumi-lumi-motion-agl04-0x00000019.json @@ -214,263 +214,314 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-64704-detection_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AqaraMotionDetectionInterval", - "translation_key": "detection_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 2, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-64704-detection_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AqaraMotionDetectionInterval", + "translation_key": "detection_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "AqaraMotionDetectionInterval", + "available": true, + "state": 10 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-64704-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "AqaraMotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "High", - "enum": "AqaraMotionSensitivities", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-64704-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "AqaraMotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "AqaraMotionSensitivities", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "AqaraMotionSensitivity", + "available": true, + "state": "High" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "CR1632", + "battery_quantity": 1, + "battery_voltage": 3.13 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR1632", - "battery_quantity": 1, - "battery_voltage": 3.13 + ] }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 25.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:40:a2:bb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:40:a2:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000019", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:40:a2:bb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:40:a2:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000019", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-plug-maeu01-0x0000002d.json b/tests/data/devices/lumi-lumi-plug-maeu01-0x0000002d.json index 45e371685..138268826 100644 --- a/tests/data/devices/lumi-lumi-plug-maeu01-0x0000002d.json +++ b/tests/data/devices/lumi-lumi-plug-maeu01-0x0000002d.json @@ -687,292 +687,343 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-64704-consumer_connected", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "XiaomiPlugConsumerConnected", - "translation_key": "consumer_connected", - "translation_placeholders": null, - "device_class": "plug", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "consumer_connected" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-64704-consumer_connected", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "XiaomiPlugConsumerConnected", + "translation_key": "consumer_connected", + "translation_placeholders": null, + "device_class": "plug", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "consumer_connected" + }, + "state": { + "class_name": "XiaomiPlugConsumerConnected", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 164, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 164 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -70, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -70 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 36.079, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 36.079, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 18.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 18.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 230.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 230.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-power_outage_memory", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "XiaomiPlugPowerOutageMemorySwitch", - "translation_key": "power_outage_memory", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "power_outage_memory", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-power_outage_memory", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "XiaomiPlugPowerOutageMemorySwitch", + "translation_key": "power_outage_memory", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "power_outage_memory", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "XiaomiPlugPowerOutageMemorySwitch", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000002d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000002d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-plug-maeu01.json b/tests/data/devices/lumi-lumi-plug-maeu01.json index 0b15f610f..2ddca4d8d 100644 --- a/tests/data/devices/lumi-lumi-plug-maeu01.json +++ b/tests/data/devices/lumi-lumi-plug-maeu01.json @@ -386,328 +386,380 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": null, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.29, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 0.29 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:c1:10:71-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:c1:10:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:c1:10:71-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:c1:10:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-plug-maus01-0x0000000b.json b/tests/data/devices/lumi-lumi-plug-maus01-0x0000000b.json index ad7e50553..93ee8cdf8 100644 --- a/tests/data/devices/lumi-lumi-plug-maus01-0x0000000b.json +++ b/tests/data/devices/lumi-lumi-plug-maus01-0x0000000b.json @@ -491,410 +491,473 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-100-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 100, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-100-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 100, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": null, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 5.027, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.027, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 41.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 41.0 + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.9 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.9, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": null + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 502.7 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 502.7, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:82:d0:78-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:82:d0:78", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000000b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:82:d0:78-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:82:d0:78", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000000b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-relay-c2acn01-0x00000024.json b/tests/data/devices/lumi-lumi-relay-c2acn01-0x00000024.json index 3d58bf160..57b4c1848 100644 --- a/tests/data/devices/lumi-lumi-relay-c2acn01-0x00000024.json +++ b/tests/data/devices/lumi-lumi-relay-c2acn01-0x00000024.json @@ -403,381 +403,454 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": null, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.096, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.096, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 40.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 40.0 + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 9.6 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 9.6, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:04:44:ec:08-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:04:44:ec:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000024", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:04:44:ec:08-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:04:44:ec:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000024", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-remote-b286opcn01.json b/tests/data/devices/lumi-lumi-remote-b286opcn01.json index 8c9b1c974..7bf98d9d6 100644 --- a/tests/data/devices/lumi-lumi-remote-b286opcn01.json +++ b/tests/data/devices/lumi-lumi-remote-b286opcn01.json @@ -391,107 +391,128 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:67-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:75:c1:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:67-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:75:c1:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:67-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:75:c1:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:67-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "04:cf:8c:df:3c:75:c1:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.8 + ] } ] }, diff --git a/tests/data/devices/lumi-lumi-remote-b28ac1.json b/tests/data/devices/lumi-lumi-remote-b28ac1.json index 6982cb66e..045c47ff5 100644 --- a/tests/data/devices/lumi-lumi-remote-b28ac1.json +++ b/tests/data/devices/lumi-lumi-remote-b28ac1.json @@ -238,161 +238,192 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": "Click mode", - "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-click_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "click_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "AqaraSwitchClickMode", - "options": [ - "Single", - "Multiple" - ] + "info_object": { + "fallback_name": "Click mode", + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-click_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "click_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "AqaraSwitchClickMode", + "options": [ + "Single", + "Multiple" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Operation mode", - "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-operation_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "operation_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "AqaraSwitchOperationMode", - "options": [ - "Command", - "Event" - ] + "info_object": { + "fallback_name": "Operation mode", + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-operation_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "operation_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "AqaraSwitchOperationMode", + "options": [ + "Command", + "Event" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": 3.0 + ] } ] }, diff --git a/tests/data/devices/lumi-lumi-remote-b486opcn01.json b/tests/data/devices/lumi-lumi-remote-b486opcn01.json index 1c6c18981..d60a99559 100644 --- a/tests/data/devices/lumi-lumi-remote-b486opcn01.json +++ b/tests/data/devices/lumi-lumi-remote-b486opcn01.json @@ -257,107 +257,128 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:75:c1:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:c1:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:75:c1:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:c1:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:75:c1:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:c1:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:c1:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "04:cf:8c:df:3c:75:c1:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.9 + ] } ] }, diff --git a/tests/data/devices/lumi-lumi-remote-b686opcn01.json b/tests/data/devices/lumi-lumi-remote-b686opcn01.json index 7a4c9d89a..ebbd25661 100644 --- a/tests/data/devices/lumi-lumi-remote-b686opcn01.json +++ b/tests/data/devices/lumi-lumi-remote-b686opcn01.json @@ -365,107 +365,128 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:79:47:76-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:79:47:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:79:47:76-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:79:47:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:79:47:76-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:79:47:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:79:47:76-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "04:cf:8c:df:3c:79:47:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.0 + ] } ] }, diff --git a/tests/data/devices/lumi-lumi-remote-cagl02-0x0000001c.json b/tests/data/devices/lumi-lumi-remote-cagl02-0x0000001c.json index c79e03be0..82c933a5d 100644 --- a/tests/data/devices/lumi-lumi-remote-cagl02-0x0000001c.json +++ b/tests/data/devices/lumi-lumi-remote-cagl02-0x0000001c.json @@ -220,137 +220,162 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -21, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -21 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "CR2450", + "battery_quantity": 1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2450", - "battery_quantity": 1, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001c", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:02:d4:c2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:02:d4:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001c", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-remote-cagl02.json b/tests/data/devices/lumi-lumi-remote-cagl02.json index d9a8842a9..1362872eb 100644 --- a/tests/data/devices/lumi-lumi-remote-cagl02.json +++ b/tests/data/devices/lumi-lumi-remote-cagl02.json @@ -246,137 +246,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:14:f3:e7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:14:f3:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:14:f3:e7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:14:f3:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:14:f3:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:14:f3:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:14:f3:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:14:f3:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:14:f3:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:14:f3:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:14:f3:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:14:f3:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:14:f3:e7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:14:f3:e7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:14:f3:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "CR2450", + "battery_quantity": 1, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "54:ef:44:10:00:14:f3:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2450", - "battery_quantity": 1, - "battery_voltage": 2.8 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:14:f3:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:14:f3:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:14:f3:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:14:f3:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-sen-ill-agl01.json b/tests/data/devices/lumi-lumi-sen-ill-agl01.json index 4ace988f2..99074e03d 100644 --- a/tests/data/devices/lumi-lumi-sen-ill-agl01.json +++ b/tests/data/devices/lumi-lumi-sen-ill-agl01.json @@ -164,130 +164,156 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.2 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2391, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:d9:db:dd-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:0d:d9:db:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 2391 + } } ] }, diff --git a/tests/data/devices/lumi-lumi-sen-ill-mgl01.json b/tests/data/devices/lumi-lumi-sen-ill-mgl01.json index 1d950c4cf..8080c49f3 100644 --- a/tests/data/devices/lumi-lumi-sen-ill-mgl01.json +++ b/tests/data/devices/lumi-lumi-sen-ill-mgl01.json @@ -153,130 +153,156 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:77:19:75-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:77:19:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:77:19:75-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:77:19:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:77:19:75-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:77:19:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:77:19:75-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:77:19:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:77:19:75-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:77:19:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:77:19:75-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:77:19:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:77:19:75-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:77:19:75-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:77:19:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "04:cf:8c:df:3c:77:19:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:77:19:75-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:77:19:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:77:19:75-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "04:cf:8c:df:3c:77:19:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 0 + } } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-86sw2.json b/tests/data/devices/lumi-lumi-sensor-86sw2.json index 32d6137a5..d7ae0538b 100644 --- a/tests/data/devices/lumi-lumi-sensor-86sw2.json +++ b/tests/data/devices/lumi-lumi-sensor-86sw2.json @@ -341,160 +341,191 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:54:cb:fa-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:54:cb:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:54:cb:fa-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:54:cb:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:54:cb:fa-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:54:cb:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:54:cb:fa-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 59.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.99 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:8d:00:02:54:cb:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 59.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.99 + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:54:cb:fa-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:54:cb:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 21.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 21.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:54:cb:fa-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:54:cb:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-ht-agl02.json b/tests/data/devices/lumi-lumi-sensor-ht-agl02.json index 1c8ea9001..c17093e0b 100644 --- a/tests/data/devices/lumi-lumi-sensor-ht-agl02.json +++ b/tests/data/devices/lumi-lumi-sensor-ht-agl02.json @@ -196,206 +196,247 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 66.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.01 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 66.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.01 + ] }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 18.78, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 18.78 + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1013, - "suggested_display_precision": 0, - "unit": "hPa" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "hPa" + }, + "state": { + "class_name": "Pressure", + "available": true, + "state": 1013 + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 49.05, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 49.05 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:7f:c5:a7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:7f:c5:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-magnet-aq2.json b/tests/data/devices/lumi-lumi-sensor-magnet-aq2.json index 0c07f6a36..5fc0cd1b4 100644 --- a/tests/data/devices/lumi-lumi-sensor-magnet-aq2.json +++ b/tests/data/devices/lumi-lumi-sensor-magnet-aq2.json @@ -182,154 +182,185 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:ab:40:52-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:ab:40:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:ab:40:52-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:ab:40:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:ab:40:52-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:ab:40:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:ab:40:52-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:ab:40:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:ab:40:52-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 77.0, + "battery_size": "CR1632", + "battery_quantity": 1, + "battery_voltage": 3.04 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:8d:00:01:ab:40:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 77.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR1632", - "battery_quantity": 1, - "battery_voltage": 3.04 + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:ab:40:52-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:ab:40:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 27.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 27.0 + } } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-motion-aq2.json b/tests/data/devices/lumi-lumi-sensor-motion-aq2.json index c73d7821b..35c81cedc 100644 --- a/tests/data/devices/lumi-lumi-sensor-motion-aq2.json +++ b/tests/data/devices/lumi-lumi-sensor-motion-aq2.json @@ -221,229 +221,275 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 80.5, + "battery_size": "CR2450", + "battery_quantity": 1, + "battery_voltage": 3.04 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 80.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2450", - "battery_quantity": 1, - "battery_voltage": 3.04 + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 739, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 739 + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 27.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 27.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:01:b1:ca:eb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:01:b1:ca:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:b1:ca:eb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:01:b1:ca:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-smoke-acn03-0x00000011.json b/tests/data/devices/lumi-lumi-sensor-smoke-acn03-0x00000011.json index 53e0b0821..79bbf93e2 100644 --- a/tests/data/devices/lumi-lumi-sensor-smoke-acn03-0x00000011.json +++ b/tests/data/devices/lumi-lumi-sensor-smoke-acn03-0x00000011.json @@ -214,338 +214,404 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-linkage_alarm_state", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "AqaraLinkageAlarmState", - "translation_key": "linkage_alarm_state", - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "linkage_alarm_state" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-linkage_alarm_state", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "AqaraLinkageAlarmState", + "translation_key": "linkage_alarm_state", + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "linkage_alarm_state" + }, + "state": { + "class_name": "AqaraLinkageAlarmState", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-self_test", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "AqaraSelfTestButton", - "translation_key": "self_test", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "self_test", - "attribute_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-self_test", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "AqaraSelfTestButton", + "translation_key": "self_test", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "self_test", + "attribute_value": 1 + }, + "state": { + "class_name": "AqaraSelfTestButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 79.5, + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": 3.04 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 79.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": 3.04 + ] }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-smoke_density_dbm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AqaraSmokeDensityDbm", - "translation_key": "smoke_density", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": 3, - "unit": "dB/m" + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-smoke_density_dbm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AqaraSmokeDensityDbm", + "translation_key": "smoke_density", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "dB/m" + }, + "state": { + "class_name": "AqaraSmokeDensityDbm", + "available": true, + "state": 0 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-buzzer_manual_alarm", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraBuzzerManualAlarm", - "translation_key": "buzzer_manual_alarm", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "buzzer_manual_alarm", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-buzzer_manual_alarm", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraBuzzerManualAlarm", + "translation_key": "buzzer_manual_alarm", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "buzzer_manual_alarm", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "AqaraBuzzerManualAlarm", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-buzzer_manual_mute", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraBuzzerManualMute", - "translation_key": "buzzer_manual_mute", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "buzzer_manual_mute", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-buzzer_manual_mute", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraBuzzerManualMute", + "translation_key": "buzzer_manual_mute", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "buzzer_manual_mute", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "AqaraBuzzerManualMute", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-heartbeat_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraHeartbeatIndicator", - "translation_key": "heartbeat_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "heartbeat_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-heartbeat_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraHeartbeatIndicator", + "translation_key": "heartbeat_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "heartbeat_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "AqaraHeartbeatIndicator", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-linkage_alarm", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "AqaraLinkageAlarm", - "translation_key": "linkage_alarm", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "linkage_alarm", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-64704-linkage_alarm", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "AqaraLinkageAlarm", + "translation_key": "linkage_alarm", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "linkage_alarm", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "AqaraLinkageAlarm", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "54:ef:44:10:00:5a:6e:93-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "54:ef:44:10:00:5a:6e:93", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000011", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:5a:6e:93-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "54:ef:44:10:00:5a:6e:93", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000011", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-smoke.json b/tests/data/devices/lumi-lumi-sensor-smoke.json index 824f8310f..66a1fbf56 100644 --- a/tests/data/devices/lumi-lumi-sensor-smoke.json +++ b/tests/data/devices/lumi-lumi-sensor-smoke.json @@ -257,184 +257,220 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "CR123A", + "battery_quantity": 1, + "battery_voltage": 3.18 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR123A", - "battery_quantity": 1, - "battery_voltage": 3.18 + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 23.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 23.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:cb:2e:a9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:cb:2e:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:cb:2e:a9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:cb:2e:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-switch-aq2.json b/tests/data/devices/lumi-lumi-sensor-switch-aq2.json index 9c780d917..704165b82 100644 --- a/tests/data/devices/lumi-lumi-sensor-switch-aq2.json +++ b/tests/data/devices/lumi-lumi-sensor-switch-aq2.json @@ -182,103 +182,124 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:13:91:38-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:13:91:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:13:91:38-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:13:91:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:13:91:38-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:13:91:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:13:91:38-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:13:91:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:13:91:38-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:13:91:38-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:13:91:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 77.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.04 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:8d:00:02:13:91:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 77.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.04 + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:13:91:38-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:13:91:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 29.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:13:91:38-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:8d:00:02:13:91:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 29.0 + } } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-switch-aq3.json b/tests/data/devices/lumi-lumi-sensor-switch-aq3.json index 01d4e7ca8..3f5fa08ad 100644 --- a/tests/data/devices/lumi-lumi-sensor-switch-aq3.json +++ b/tests/data/devices/lumi-lumi-sensor-switch-aq3.json @@ -165,103 +165,124 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:b0:e5:91-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:b0:e5:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:b0:e5:91-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:b0:e5:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:b0:e5:91-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:b0:e5:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:b0:e5:91-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:b0:e5:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:b0:e5:91-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:b0:e5:91-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:b0:e5:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 62.5, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.99 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:8d:00:02:b0:e5:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 62.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.99 + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:b0:e5:91-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:b0:e5:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 28.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:b0:e5:91-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:8d:00:02:b0:e5:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 28.0 + } } ] }, diff --git a/tests/data/devices/lumi-lumi-sensor-switch.json b/tests/data/devices/lumi-lumi-sensor-switch.json index 6a16f97ce..ceda96e25 100644 --- a/tests/data/devices/lumi-lumi-sensor-switch.json +++ b/tests/data/devices/lumi-lumi-sensor-switch.json @@ -172,137 +172,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:10:ba:72-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:10:ba:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:10:ba:72-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:10:ba:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:10:ba:72-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:10:ba:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:10:ba:72-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:10:ba:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:10:ba:72-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:10:ba:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:10:ba:72-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:10:ba:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:10:ba:72-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:10:ba:72-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:10:ba:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 90.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 3.07 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:8d:00:02:10:ba:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 90.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 3.07 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:10:ba:72-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:10:ba:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:10:ba:72-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:10:ba:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-b1lacn02.json b/tests/data/devices/lumi-lumi-switch-b1lacn02.json index 680f9ea44..e3146dec6 100644 --- a/tests/data/devices/lumi-lumi-switch-b1lacn02.json +++ b/tests/data/devices/lumi-lumi-switch-b1lacn02.json @@ -297,195 +297,235 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 17.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 17.0 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 4, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:63:c6:80:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:63:c6:80:fe-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:63:c6:80:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-b1laus01-0x00000020.json b/tests/data/devices/lumi-lumi-switch-b1laus01-0x00000020.json index f01150458..c407bcce8 100644 --- a/tests/data/devices/lumi-lumi-switch-b1laus01-0x00000020.json +++ b/tests/data/devices/lumi-lumi-switch-b1laus01-0x00000020.json @@ -201,169 +201,207 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:da:cf-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:75:da:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:da:cf-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:da:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:da:cf-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:75:da:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:da:cf-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "04:cf:8c:df:3c:75:da:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:da:cf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:75:da:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:da:cf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:da:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:da:cf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:75:da:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:da:cf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:da:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:da:cf-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:75:da:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.2, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:da:cf-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:da:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 0.2 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:75:da:cf-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:75:da:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000020", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:da:cf-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:75:da:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000020", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-b1naus01-0x0000001f.json b/tests/data/devices/lumi-lumi-switch-b1naus01-0x0000001f.json index 01e602c72..65e6a7810 100644 --- a/tests/data/devices/lumi-lumi-switch-b1naus01-0x0000001f.json +++ b/tests/data/devices/lumi-lumi-switch-b1naus01-0x0000001f.json @@ -443,228 +443,276 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 253.802, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 253.802, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.23, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 0.23 + } }, { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "04:cf:8c:df:3c:76:1c:82-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "04:cf:8c:df:3c:76:1c:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:76:1c:82-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "04:cf:8c:df:3c:76:1c:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-b2naus01.json b/tests/data/devices/lumi-lumi-switch-b2naus01.json index ff2223d35..9a2eb60b3 100644 --- a/tests/data/devices/lumi-lumi-switch-b2naus01.json +++ b/tests/data/devices/lumi-lumi-switch-b2naus01.json @@ -680,291 +680,340 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 14.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 14.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 20.7 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20.7, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:a9:89:77-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:a9:89:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:a9:89:77-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:a9:89:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-b2nc01.json b/tests/data/devices/lumi-lumi-switch-b2nc01.json index a06c8e19b..d755c4709 100644 --- a/tests/data/devices/lumi-lumi-switch-b2nc01.json +++ b/tests/data/devices/lumi-lumi-switch-b2nc01.json @@ -725,206 +725,257 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.24, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 0.24 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:e1:af:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:e1:af:79-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:e1:af:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-l1aeu1-0x00000e0b.json b/tests/data/devices/lumi-lumi-switch-l1aeu1-0x00000e0b.json index d7ee1df5a..77ebe87f6 100644 --- a/tests/data/devices/lumi-lumi-switch-l1aeu1-0x00000e0b.json +++ b/tests/data/devices/lumi-lumi-switch-l1aeu1-0x00000e0b.json @@ -224,169 +224,207 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:81:48:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:81:48:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:81:48:a1-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:81:48:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:81:48:a1-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:4f:81:48:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:81:48:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 240, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:81:48:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 240 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:81:48:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -40, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:81:48:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -40 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:81:48:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.3, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:81:48:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 0.3 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:81:48:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000e0b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:81:48:a1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:81:48:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000e0b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-l2aeu1-0x00000e0b.json b/tests/data/devices/lumi-lumi-switch-l2aeu1-0x00000e0b.json index 6ba4c1332..566771a2f 100644 --- a/tests/data/devices/lumi-lumi-switch-l2aeu1-0x00000e0b.json +++ b/tests/data/devices/lumi-lumi-switch-l2aeu1-0x00000e0b.json @@ -267,206 +267,257 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 220, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 220 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -45, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -45 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.3, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 0.3 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:16:89:b4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000e0b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:16:89:b4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:16:89:b4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000e0b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-n0agl1-0x0000001e.json b/tests/data/devices/lumi-lumi-switch-n0agl1-0x0000001e.json index 09fdd4a0e..dc13b9a23 100644 --- a/tests/data/devices/lumi-lumi-switch-n0agl1-0x0000001e.json +++ b/tests/data/devices/lumi-lumi-switch-n0agl1-0x0000001e.json @@ -686,300 +686,353 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -64, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -64 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 41.15, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 41.15, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.18, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 0.18 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 229.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 229.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 4238.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4238.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-n0agl1.json b/tests/data/devices/lumi-lumi-switch-n0agl1.json index 6f46ac8ee..058873310 100644 --- a/tests/data/devices/lumi-lumi-switch-n0agl1.json +++ b/tests/data/devices/lumi-lumi-switch-n0agl1.json @@ -686,300 +686,353 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -64, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -64 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 41.15, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 41.15, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.18, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 0.18 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 229.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 229.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 4238.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4238.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:c7:8a:67-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:c7:8a:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-switch-n1aeu1.json b/tests/data/devices/lumi-lumi-switch-n1aeu1.json index eb380657e..25cd4eabf 100644 --- a/tests/data/devices/lumi-lumi-switch-n1aeu1.json +++ b/tests/data/devices/lumi-lumi-switch-n1aeu1.json @@ -489,240 +489,284 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.28, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 0.28 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 1.2, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.2, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:e5:a3:fd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:e5:a3:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-vibration-agl01-0x0000001c.json b/tests/data/devices/lumi-lumi-vibration-agl01-0x0000001c.json index 4e4871f7c..08f5bbfd4 100644 --- a/tests/data/devices/lumi-lumi-vibration-agl01-0x0000001c.json +++ b/tests/data/devices/lumi-lumi-vibration-agl01-0x0000001c.json @@ -233,183 +233,217 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-2-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-2-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 108, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 108 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -84, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -84 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001c", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:e2:f1:42-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:e2:f1:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001c", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-vibration-aq1.json b/tests/data/devices/lumi-lumi-vibration-aq1.json index 65b39171a..80a5d9321 100644 --- a/tests/data/devices/lumi-lumi-vibration-aq1.json +++ b/tests/data/devices/lumi-lumi-vibration-aq1.json @@ -277,184 +277,220 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "vibration", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "vibration", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 48.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.96 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 48.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.96 + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 26.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 26.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:02:af:97:27-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:02:af:97:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:af:97:27-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:02:af:97:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/lumi-lumi-weather.json b/tests/data/devices/lumi-lumi-weather.json index 0780e03f9..d27e16621 100644 --- a/tests/data/devices/lumi-lumi-weather.json +++ b/tests/data/devices/lumi-lumi-weather.json @@ -202,176 +202,212 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 59.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.99 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 59.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.99 + ] }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 21.73, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 21.73 + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1009, - "suggested_display_precision": 0, - "unit": "hPa" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "hPa" + }, + "state": { + "class_name": "Pressure", + "available": true, + "state": 1009 + } }, { - "fallback_name": null, - "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:15:8d:00:05:4b:9d:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 57.99, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "00:15:8d:00:05:4b:9d:1f-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:15:8d:00:05:4b:9d:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 57.99 + } } ] }, diff --git a/tests/data/devices/lutron-lzl4bwhl01-remote.json b/tests/data/devices/lutron-lzl4bwhl01-remote.json index 62241dba4..d8f88c23a 100644 --- a/tests/data/devices/lutron-lzl4bwhl01-remote.json +++ b/tests/data/devices/lutron-lzl4bwhl01-remote.json @@ -169,50 +169,60 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:ff:3c:b3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ff:ff:00:0f:e7:ff:3c:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:ff:3c:b3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ff:ff:00:0f:e7:ff:3c:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:ff:3c:b3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ff:ff:00:0f:e7:ff:3c:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:ff:3c:b3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ff:ff:00:0f:e7:ff:3c:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/lutron-z3-1brl-0x00000c08.json b/tests/data/devices/lutron-z3-1brl-0x00000c08.json index 524b42417..2565f0c2d 100644 --- a/tests/data/devices/lutron-z3-1brl-0x00000c08.json +++ b/tests/data/devices/lutron-z3-1brl-0x00000c08.json @@ -189,137 +189,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000c08", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000c08", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/mli-tint-extendedcolor-0x10012001.json b/tests/data/devices/mli-tint-extendedcolor-0x10012001.json index 3f1d6e3eb..ed23f007d 100644 --- a/tests/data/devices/mli-tint-extendedcolor-0x10012001.json +++ b/tests/data/devices/mli-tint-extendedcolor-0x10012001.json @@ -292,207 +292,251 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0, - 0 - ], - "color_temp": 370, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 555 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 555 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0, + 0 + ], + "color_temp": 370, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 555, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 555, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:50:2b:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x10012001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:50:2b:f4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:50:2b:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x10012001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/mli-zbt-remote-all-rgbw-0x11010022.json b/tests/data/devices/mli-zbt-remote-all-rgbw-0x11010022.json index 162db5b9e..54a36a0ce 100644 --- a/tests/data/devices/mli-zbt-remote-all-rgbw-0x11010022.json +++ b/tests/data/devices/mli-zbt-remote-all-rgbw-0x11010022.json @@ -516,107 +516,127 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -67, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -67 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x11010022", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x11010022", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/namron-as-1402790.json b/tests/data/devices/namron-as-1402790.json index c88bcf805..ea4e51bc2 100644 --- a/tests/data/devices/namron-as-1402790.json +++ b/tests/data/devices/namron-as-1402790.json @@ -451,210 +451,246 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:e9:5d:02-10-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", - "endpoint_id": 10, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:e9:5d:02-10-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2f:e9:5d:02", + "endpoint_id": 10, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/namron-as-4512785-0x0000000e.json b/tests/data/devices/namron-as-4512785-0x0000000e.json index 147c286cb..182457059 100644 --- a/tests/data/devices/namron-as-4512785-0x0000000e.json +++ b/tests/data/devices/namron-as-4512785-0x0000000e.json @@ -606,323 +606,378 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -73, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -73 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 25.02, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25.02, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "DeviceTemperature", - "translation_key": "device_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3.52, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "DeviceTemperature", + "translation_key": "device_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "DeviceTemperature", + "available": true, + "state": 3.52 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 242.9 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 242.9, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000000e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4c:9e:2b:64-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4c:9e:2b:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000000e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/neuhaus-lighting-group-nlg-remote.json b/tests/data/devices/neuhaus-lighting-group-nlg-remote.json index 84e1ab66d..6c83c0169 100644 --- a/tests/data/devices/neuhaus-lighting-group-nlg-remote.json +++ b/tests/data/devices/neuhaus-lighting-group-nlg-remote.json @@ -151,77 +151,92 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:e3:16:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:e3:16:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:e3:16:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:e3:16:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:e3:16:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:e3:16:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/niko-nv-battery-switch-2-button.json b/tests/data/devices/niko-nv-battery-switch-2-button.json index 519e999c9..25200ce82 100644 --- a/tests/data/devices/niko-nv-battery-switch-2-button.json +++ b/tests/data/devices/niko-nv-battery-switch-2-button.json @@ -235,137 +235,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 3.1 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/niko-nv-battery-switch-4-button-0x21046760.json b/tests/data/devices/niko-nv-battery-switch-4-button-0x21046760.json index aaa24bdd5..10676b58b 100644 --- a/tests/data/devices/niko-nv-battery-switch-4-button-0x21046760.json +++ b/tests/data/devices/niko-nv-battery-switch-4-button-0x21046760.json @@ -312,137 +312,163 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:23:5d:15:43-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:23:5d:15:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:23:5d:15:43-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:23:5d:15:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:23:5d:15:43-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:23:5d:15:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:23:5d:15:43-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 3.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:23:5d:15:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 3.2 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:23:5d:15:43-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:23:5d:15:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x21046760", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x21046760", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/niko-nv-connectable-motor-control-3a-0x21160006.json b/tests/data/devices/niko-nv-connectable-motor-control-3a-0x21160006.json index 1eb26f3c8..d0b7270ab 100644 --- a/tests/data/devices/niko-nv-connectable-motor-control-3a-0x21160006.json +++ b/tests/data/devices/niko-nv-connectable-motor-control-3a-0x21160006.json @@ -394,158 +394,189 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x21160006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7d:6a:9a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:7d:6a:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x21160006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/nodon-sin-4-fp-21.json b/tests/data/devices/nodon-sin-4-fp-21.json index 3d76b46ea..cfe3814e8 100644 --- a/tests/data/devices/nodon-sin-4-fp-21.json +++ b/tests/data/devices/nodon-sin-4-fp-21.json @@ -453,250 +453,297 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } }, { - "fallback_name": "Pilot wire mode", - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-pilot_wire_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "pilot_wire_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "NodOnPilotWireMode", - "options": [ - "Off", - "Comfort", - "Eco", - "FrostProtection", - "ComfortMinus1", - "ComfortMinus2" - ] + "info_object": { + "fallback_name": "Pilot wire mode", + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-pilot_wire_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "pilot_wire_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "NodOnPilotWireMode", + "options": [ + "Off", + "Comfort", + "Eco", + "FrostProtection", + "ComfortMinus1", + "ComfortMinus2" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 4.738, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4.738, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:41:13:af-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:41:13:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:41:13:af-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:41:13:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/nodon-sin-4-rs-20-0x00010300.json b/tests/data/devices/nodon-sin-4-rs-20-0x00010300.json index f89c62bf5..09cf74bfa 100644 --- a/tests/data/devices/nodon-sin-4-rs-20-0x00010300.json +++ b/tests/data/devices/nodon-sin-4-rs-20-0x00010300.json @@ -293,293 +293,349 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "blind", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": 100, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 255 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "blind", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": 100, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 255 + } } ], "number": [ { - "fallback_name": "Calibration rotation run time down", - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_rotation_run_time_down", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "calibration_rotation_run_time_down", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2000, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "ms" + "info_object": { + "fallback_name": "Calibration rotation run time down", + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_rotation_run_time_down", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "calibration_rotation_run_time_down", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "ms" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 2000 + } }, { - "fallback_name": "Calibration rotation run time up", - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_rotation_run_time_up", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "calibration_rotation_run_time_up", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2000, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "ms" + "info_object": { + "fallback_name": "Calibration rotation run time up", + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_rotation_run_time_up", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "calibration_rotation_run_time_up", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "ms" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 2000 + } }, { - "fallback_name": "Calibration vertical run time down", - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_vertical_run_time_down", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "calibration_vertical_run_time_down", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2130, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "ms" + "info_object": { + "fallback_name": "Calibration vertical run time down", + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_vertical_run_time_down", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "calibration_vertical_run_time_down", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "ms" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 2130 + } }, { - "fallback_name": "Calibration vertical run time up", - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_vertical_run_time_up", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "calibration_vertical_run_time_up", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2250, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "ms" + "info_object": { + "fallback_name": "Calibration vertical run time up", + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-calibration_vertical_run_time_up", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "calibration_vertical_run_time_up", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "ms" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 2250 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Tilt_blind_tilt_and_lift", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Tilt_blind_tilt_and_lift" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:52:ae:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00010300", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:52:ae:10-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:52:ae:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00010300", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/occam-temp-sensor-v1-2-jan-19-2026.json b/tests/data/devices/occam-temp-sensor-v1-2-jan-19-2026.json index 6d5be14d1..dea20dac8 100644 --- a/tests/data/devices/occam-temp-sensor-v1-2-jan-19-2026.json +++ b/tests/data/devices/occam-temp-sensor-v1-2-jan-19-2026.json @@ -166,153 +166,182 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", - "endpoint_id": 10, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", + "endpoint_id": 10, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 148, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 148 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": -63, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -63 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 93.0, + "battery_voltage": 25.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 93.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 25.5 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": -18.24, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": -18.24 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 0.05, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:3f:81:7c-10-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:3f:81:7c", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 0.05 + } } ] }, diff --git a/tests/data/devices/orvibo-250bccf66c41421b91b5e3242942c164.json b/tests/data/devices/orvibo-250bccf66c41421b91b5e3242942c164.json index 5beabe043..fdd7ecfb1 100644 --- a/tests/data/devices/orvibo-250bccf66c41421b91b5e3242942c164.json +++ b/tests/data/devices/orvibo-250bccf66c41421b91b5e3242942c164.json @@ -292,254 +292,307 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 128, - "xy_color": null, - "color_temp": 250, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 371 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 371 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 128, + "xy_color": null, + "color_temp": 250, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 153, - "mode": "auto", - "native_max_value": 371, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 371, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 153 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 20 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 20 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 20 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:19:cf:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:19:cf:59-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:19:cf:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/osram-switch-4x-lightify-0x01000000.json b/tests/data/devices/osram-switch-4x-lightify-0x01000000.json index 9c871649e..73f2bfbca 100644 --- a/tests/data/devices/osram-switch-4x-lightify-0x01000000.json +++ b/tests/data/devices/osram-switch-4x-lightify-0x01000000.json @@ -766,110 +766,129 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.9 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01000000", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01000000", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ou-rui-bo-cf31218e11c547179c9c9ade6a492799.json b/tests/data/devices/ou-rui-bo-cf31218e11c547179c9c9ade6a492799.json index e64ad7511..26985e91b 100644 --- a/tests/data/devices/ou-rui-bo-cf31218e11c547179c9c9ade6a492799.json +++ b/tests/data/devices/ou-rui-bo-cf31218e11c547179c9c9ade6a492799.json @@ -171,130 +171,153 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "lock": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-257", - "migrate_unique_ids": [], - "platform": "lock", - "class_name": "DoorLock", - "translation_key": "door_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_locked": true + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-257", + "migrate_unique_ids": [], + "platform": "lock", + "class_name": "DoorLock", + "translation_key": "door_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "DoorLock", + "available": true, + "is_locked": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:2a:3c:30-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:5f:2a:3c:30", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ] }, diff --git a/tests/data/devices/paulmann-licht-gmbh-501-34.json b/tests/data/devices/paulmann-licht-gmbh-501-34.json index d4dab3bea..2e78378aa 100644 --- a/tests/data/devices/paulmann-licht-gmbh-501-34.json +++ b/tests/data/devices/paulmann-licht-gmbh-501-34.json @@ -322,195 +322,232 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "Unknown", + "battery_quantity": 0, + "battery_voltage": 3.3 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": 0, - "battery_voltage": 3.3 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "Unknown", + "battery_quantity": 0, + "battery_voltage": 3.3 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": 0, - "battery_voltage": 3.3 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:ef:79-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:54:ef:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-7602031u7-0x01001d00.json b/tests/data/devices/philips-7602031u7-0x01001d00.json index 4678e1563..00d24c613 100644 --- a/tests/data/devices/philips-7602031u7-0x01001d00.json +++ b/tests/data/devices/philips-7602031u7-0x01001d00.json @@ -370,237 +370,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.2302433813992523, - 0.08744945448996719 - ], - "color_temp": 500, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.2302433813992523, + 0.08744945448996719 + ], + "color_temp": 500, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 366, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 366 + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:4b:51:fc-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:4b:51:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01001d00", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:4b:51:fc-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:4b:51:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01001d00", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-915005988601-0x01002000.json b/tests/data/devices/philips-915005988601-0x01002000.json index ac6dce57f..b85490f1d 100644 --- a/tests/data/devices/philips-915005988601-0x01002000.json +++ b/tests/data/devices/philips-915005988601-0x01002000.json @@ -322,237 +322,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.5596704051270314, - 0.40079346913862823 - ], - "color_temp": 500, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.5596704051270314, + 0.40079346913862823 + ], + "color_temp": 500, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 366, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 366 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 216, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 216 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": -57, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -57 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:72:fa:b6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01002000", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:72:fa:b6-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:72:fa:b6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01002000", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-lct014-0x01001a02.json b/tests/data/devices/philips-lct014-0x01001a02.json index 03bdda4f9..9ee96dc19 100644 --- a/tests/data/devices/philips-lct014-0x01001a02.json +++ b/tests/data/devices/philips-lct014-0x01001a02.json @@ -336,237 +336,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.45734340428778514, - 0.41002517738612954 - ], - "color_temp": 366, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.45734340428778514, + 0.41002517738612954 + ], + "color_temp": 366, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 366, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 366 + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:02:4f:ea:5c-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:02:4f:ea:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01001a02", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:02:4f:ea:5c-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:02:4f:ea:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01001a02", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-lct026.json b/tests/data/devices/philips-lct026.json index 092a9b177..49a4c4a28 100644 --- a/tests/data/devices/philips-lct026.json +++ b/tests/data/devices/philips-lct026.json @@ -328,237 +328,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 67, - "xy_color": [ - 0.5639429312581064, - 0.39041733424887465 - ], - "color_temp": 500, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 67, + "xy_color": [ + 0.5639429312581064, + 0.39041733424887465 + ], + "color_temp": 500, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 366, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 366 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:c8:c2:fd-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:c8:c2:fd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-llc020-0x42006734.json b/tests/data/devices/philips-llc020-0x42006734.json index 434018479..9b267a987 100644 --- a/tests/data/devices/philips-llc020-0x42006734.json +++ b/tests/data/devices/philips-llc020-0x42006734.json @@ -324,237 +324,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.1799343862058442, - 0.2392614633401999 - ], - "color_temp": 153, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.1799343862058442, + 0.2392614633401999 + ], + "color_temp": 153, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 366, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 366 + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:01:16:e3:33-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:01:16:e3:33", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x42006734", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:01:16:e3:33-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:01:16:e3:33", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x42006734", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-lst002-0x01001700.json b/tests/data/devices/philips-lst002-0x01001700.json index a543747ba..8696b0f75 100644 --- a/tests/data/devices/philips-lst002-0x01001700.json +++ b/tests/data/devices/philips-lst002-0x01001700.json @@ -349,153 +349,187 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:8a:89:91", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ad:8a:89:91", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:8a:89:91-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:8a:89:91", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 1, - "xy_color": [ - 0.5266803997863737, - 0.41330586709391925 - ], - "color_temp": 500, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:8a:89:91-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ad:8a:89:91", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 1, + "xy_color": [ + 0.5266803997863737, + 0.41330586709391925 + ], + "color_temp": 500, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:8a:89:91", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ad:8a:89:91", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:8a:89:91", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ad:8a:89:91", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ad:8a:89:91", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01001700", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ad:8a:89:91-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ad:8a:89:91", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01001700", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-rom001-0x02002f08.json b/tests/data/devices/philips-rom001-0x02002f08.json index 5191fe45b..4433e8bda 100644 --- a/tests/data/devices/philips-rom001-0x02002f08.json +++ b/tests/data/devices/philips-rom001-0x02002f08.json @@ -225,137 +225,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:54:a7:c3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:54:a7:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:54:a7:c3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:54:a7:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:54:a7:c3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:54:a7:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:54:a7:c3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:54:a7:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:06:54:a7:c3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:54:a7:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:54:a7:c3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:54:a7:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:06:54:a7:c3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:54:a7:c3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:54:a7:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:17:88:01:06:54:a7:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:54:a7:c3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:54:a7:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x02002f08", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:54:a7:c3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:54:a7:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02002f08", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-rwl020-0x420045b6.json b/tests/data/devices/philips-rwl020-0x420045b6.json index cfcc0e2cb..2ea543792 100644 --- a/tests/data/devices/philips-rwl020-0x420045b6.json +++ b/tests/data/devices/philips-rwl020-0x420045b6.json @@ -240,161 +240,190 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 148, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 148 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -74, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -74 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 44.5, + "battery_voltage": 2.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 44.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.5 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": "0x420045b6", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x420045b6", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-rwl020.json b/tests/data/devices/philips-rwl020.json index a9920f8c2..0f530b272 100644 --- a/tests/data/devices/philips-rwl020.json +++ b/tests/data/devices/philips-rwl020.json @@ -239,161 +239,190 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:08:07:c3:5b-2-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:08:07:c3:5b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-2-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:08:07:c3:5b-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:08:07:c3:5b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:08:07:c3:5b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:08:07:c3:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:08:07:c3:5b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:08:07:c3:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:08:07:c3:5b-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:17:88:01:08:07:c3:5b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:08:07:c3:5b-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:08:07:c3:5b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-rwl021-0x43007305.json b/tests/data/devices/philips-rwl021-0x43007305.json index 656cce6e3..388453828 100644 --- a/tests/data/devices/philips-rwl021-0x43007305.json +++ b/tests/data/devices/philips-rwl021-0x43007305.json @@ -247,161 +247,190 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 116, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 116 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -71, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -71 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 15.0, + "battery_voltage": 2.4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 15.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.4 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": "0x43007305", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x43007305", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-sml001-0x42006bb7.json b/tests/data/devices/philips-sml001-0x42006bb7.json index f160a3a15..0151853ce 100644 --- a/tests/data/devices/philips-sml001-0x42006bb7.json +++ b/tests/data/devices/philips-sml001-0x42006bb7.json @@ -265,287 +265,341 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "PhilipsMotion", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "PhilipsMotion", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "PhilipsMotion", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-1030-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "HueV1MotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_option": "High", - "enum": "HueV1MotionSensitivities", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-1030-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "HueV1MotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "enum": "HueV1MotionSensitivities", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "HueV1MotionSensitivity", + "available": true, + "state": "High" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 38.5, + "battery_voltage": 2.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 38.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.5 + ] }, { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 6, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 6 + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 23.07, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 23.07 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-0-trigger_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "HueMotionTriggerIndicatorSwitch", - "translation_key": "trigger_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "trigger_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-0-trigger_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "HueMotionTriggerIndicatorSwitch", + "translation_key": "trigger_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "trigger_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "HueMotionTriggerIndicatorSwitch", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:f5:ac:71-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:f5:ac:71", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": "0x42006bb7", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x42006bb7", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-sml001-0x43007305.json b/tests/data/devices/philips-sml001-0x43007305.json index be79d602b..623829f30 100644 --- a/tests/data/devices/philips-sml001-0x43007305.json +++ b/tests/data/devices/philips-sml001-0x43007305.json @@ -272,287 +272,341 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "PhilipsMotion", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "PhilipsMotion", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "PhilipsMotion", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "HueV1MotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_option": "Low", - "enum": "HueV1MotionSensitivities", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "HueV1MotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "enum": "HueV1MotionSensitivities", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "HueV1MotionSensitivity", + "available": true, + "state": "Low" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.9 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 13, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 13 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 24.75, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 24.75 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-0-trigger_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "HueMotionTriggerIndicatorSwitch", - "translation_key": "trigger_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "trigger_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-0-trigger_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "HueMotionTriggerIndicatorSwitch", + "translation_key": "trigger_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "trigger_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "HueMotionTriggerIndicatorSwitch", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": "0x43007305", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x43007305", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/philips-sml001-0x43007401.json b/tests/data/devices/philips-sml001-0x43007401.json index 16ab7d4a6..b37b2d3be 100644 --- a/tests/data/devices/philips-sml001-0x43007401.json +++ b/tests/data/devices/philips-sml001-0x43007401.json @@ -272,287 +272,341 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "PhilipsMotion", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "PhilipsMotion", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "PhilipsMotion", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "HueV1MotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_option": "High", - "enum": "HueV1MotionSensitivities", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1030-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "HueV1MotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "enum": "HueV1MotionSensitivities", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "HueV1MotionSensitivity", + "available": true, + "state": "High" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 120, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 120 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -70, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -70 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 21.98, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 21.98 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-0-trigger_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "HueMotionTriggerIndicatorSwitch", - "translation_key": "trigger_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "trigger_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-0-trigger_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "HueMotionTriggerIndicatorSwitch", + "translation_key": "trigger_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "trigger_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "HueMotionTriggerIndicatorSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:7f:df:14", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": "0x43007401", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x43007401", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/plaid-systems-ps-sprzms-slp3-0x00000001.json b/tests/data/devices/plaid-systems-ps-sprzms-slp3-0x00000001.json index ff09694fb..d7c0237aa 100644 --- a/tests/data/devices/plaid-systems-ps-sprzms-slp3-0x00000001.json +++ b/tests/data/devices/plaid-systems-ps-sprzms-slp3-0x00000001.json @@ -191,183 +191,219 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "CR123A", + "battery_quantity": 1, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR123A", - "battery_quantity": 1, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 19.64, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 19.64 + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 45.93, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 45.93 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:0e:6e:82:87-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:0e:6e:82:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:6e:82:87-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:0e:6e:82:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ptvo-info-ptvo-switch.json b/tests/data/devices/ptvo-info-ptvo-switch.json index c65cfe735..3b1d762ec 100644 --- a/tests/data/devices/ptvo-info-ptvo-switch.json +++ b/tests/data/devices/ptvo-info-ptvo-switch.json @@ -486,358 +486,438 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-2-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-2-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-3-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-3-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 3, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-4-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-4-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 4, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-5-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 5, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-5-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 5, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-6-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 6, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-6-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 6, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-7-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 7, - "available": true, - "group_id": null, - "native_value": 22.43, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-7-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 7, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.43 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-8-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": 22.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-8-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 8, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.0 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 4, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-5-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 5, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-5-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 5, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-6-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", - "endpoint_id": 6, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-6-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 6, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ] }, diff --git a/tests/data/devices/samjin-button-0x00000011.json b/tests/data/devices/samjin-button-0x00000011.json index 5dcfb9e8f..c0fd5b3de 100644 --- a/tests/data/devices/samjin-button-0x00000011.json +++ b/tests/data/devices/samjin-button-0x00000011.json @@ -224,184 +224,218 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.5 + ] }, { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25.58, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 25.58 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:04:35:bd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:04:35:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000011", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:04:35:bd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:04:35:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000011", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/samjin-multi-0x0000000b.json b/tests/data/devices/samjin-multi-0x0000000b.json index 36a96c415..c227dcd8b 100644 --- a/tests/data/devices/samjin-multi-0x0000000b.json +++ b/tests/data/devices/samjin-multi-0x0000000b.json @@ -250,206 +250,245 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-64514", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Accelerometer", - "translation_key": "accelerometer", - "translation_placeholders": null, - "device_class": "moving", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "acceleration" + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-64514", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Accelerometer", + "translation_key": "accelerometer", + "translation_placeholders": null, + "device_class": "moving", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "acceleration" + }, + "state": { + "class_name": "Accelerometer", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.1 + ] }, { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 24.41, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 24.41 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "28:6d:97:00:01:03:15:3d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:6d:97:00:01:03:15:3d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000000b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:6d:97:00:01:03:15:3d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:6d:97:00:01:03:15:3d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000000b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/samjin-water.json b/tests/data/devices/samjin-water.json index 1b4c7e18e..b48383453 100644 --- a/tests/data/devices/samjin-water.json +++ b/tests/data/devices/samjin-water.json @@ -218,184 +218,218 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.29, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.29 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:a9:8a:6b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:a9:8a:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/schneider-electric-eko07259-0x01001d00.json b/tests/data/devices/schneider-electric-eko07259-0x01001d00.json index d1e99497c..f01046dee 100644 --- a/tests/data/devices/schneider-electric-eko07259-0x01001d00.json +++ b/tests/data/devices/schneider-electric-eko07259-0x01001d00.json @@ -1501,948 +1501,1135 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Open window detection status", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_detection_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "open_window_detection_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "se_open_window_detection_status" + "info_object": { + "fallback_name": "Open window detection status", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_detection_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "open_window_detection_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "se_open_window_detection_status" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 18.86, - "outdoor_temperature": null, - "target_temperature": 24.8, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 40.0, - "min_temp": 4.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": 2000, - "occupied_heating_setpoint": 2480, - "pi_heating_demand": 30, - "pi_cooling_demand": 0, - "unoccupied_cooling_setpoint": 2200, - "unoccupied_heating_setpoint": 1600 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 40.0, + "min_temp": 4.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 18.86, + "outdoor_temperature": null, + "target_temperature": 24.8, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": 2000, + "occupied_heating_setpoint": 2480, + "pi_heating_demand": 30, + "pi_cooling_demand": 0, + "unoccupied_cooling_setpoint": 2200, + "unoccupied_heating_setpoint": 1600 + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 40.0, - "mode": "box", - "native_max_value": 40.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 40.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 40.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4.0, - "mode": "box", - "native_max_value": 40.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 40.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 4.0 + } }, { - "fallback_name": "Display activity timeout", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_activity_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_activity_timeout", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 60, - "mode": "auto", - "native_max_value": 3600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Display activity timeout", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_activity_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_activity_timeout", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 3600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 60 + } }, { - "fallback_name": "Boost amount", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_boost_amount", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "boost_amount", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2.0, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Boost amount", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_boost_amount", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "boost_amount", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 2.0 + } }, { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 100 + } }, { - "fallback_name": "Fallback timeout", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_fallback_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fallback_timeout", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 600, - "mode": "auto", - "native_max_value": 10800, - "native_min_value": 30, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fallback timeout", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_fallback_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fallback_timeout", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10800, + "native_min_value": 30, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 600 + } }, { - "fallback_name": "Display inactive brightness", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_inactive_brightness", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "display_inactive_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Display inactive brightness", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_inactive_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "display_inactive_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": "Open window detection guard period", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_detection_guard_period", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "open_window_detection_guard_period", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 120, - "mode": "auto", - "native_max_value": 7620, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Open window detection guard period", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_detection_guard_period", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "open_window_detection_guard_period", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 7620, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 120 + } }, { - "fallback_name": "Open window detection threshold", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_detection_threshold", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "open_window_detection_threshold", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.2, - "mode": "auto", - "native_max_value": 1.2, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Open window detection threshold", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_detection_threshold", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "open_window_detection_threshold", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1.2, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0.2 + } }, { - "fallback_name": "Open window event duration", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_event_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "open_window_event_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1200, - "mode": "auto", - "native_max_value": 7620, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Open window event duration", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_open_window_event_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "open_window_event_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 7620, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 1200 + } }, { - "fallback_name": "Ambient sensor correction", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-2-se_sensor_correction", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "ambient_sensor_correction", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": -1.9000000000000001, - "mode": "auto", - "native_max_value": 10, - "native_min_value": -10, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Ambient sensor correction", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-2-se_sensor_correction", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "ambient_sensor_correction", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": -10, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": -1.9000000000000001 + } }, { - "fallback_name": "External sensor correction", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-3-se_sensor_correction", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "external_sensor_correction", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "auto", - "native_max_value": 10, - "native_min_value": -10, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "External sensor correction", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-3-se_sensor_correction", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "external_sensor_correction", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": -10, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0.0 + } }, { - "fallback_name": "Fixed load demand", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-5-se_fixed_load_demand", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fixed_load_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 500, - "mode": "auto", - "native_max_value": 10000, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "W" + "info_object": { + "fallback_name": "Fixed load demand", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-5-se_fixed_load_demand", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fixed_load_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10000, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "W" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 500 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } }, { - "fallback_name": "Control type", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_control_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "control_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "NoControl", - "enum": "SEControlType", - "options": [ - "OnOff", - "PI", - "NoControl" - ] + "info_object": { + "fallback_name": "Control type", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_control_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "control_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SEControlType", + "options": [ + "OnOff", + "PI", + "NoControl" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "NoControl" + } }, { - "fallback_name": "Heat transfer medium", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_heat_transfer_medium", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "heat_transfer_medium", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Nothing", - "enum": "SEHeatTransferMedium", - "options": [ - "Nothing", - "Hydronic", - "Air" - ] + "info_object": { + "fallback_name": "Heat transfer medium", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_heat_transfer_medium", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "heat_transfer_medium", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SEHeatTransferMedium", + "options": [ + "Nothing", + "Hydronic", + "Air" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Nothing" + } }, { - "fallback_name": "Heating emitter type", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_heating_emitter_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "heating_emitter_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Floor", - "enum": "SEHeatingEmitterType", - "options": [ - "Direct", - "Radiator", - "FanAssistedRadiator", - "RadiantPanel", - "Floor", - "NotSpecified" - ] + "info_object": { + "fallback_name": "Heating emitter type", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_heating_emitter_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "heating_emitter_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SEHeatingEmitterType", + "options": [ + "Direct", + "Radiator", + "FanAssistedRadiator", + "RadiantPanel", + "Floor", + "NotSpecified" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Floor" + } }, { - "fallback_name": "Heating fuel", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_heating_fuel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "heating_fuel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Electricity", - "enum": "SEHeatingFuel", - "options": [ - "Electricity", - "Gas", - "Oil", - "SolidFuel", - "Solar", - "ComunityHeating", - "HeatPump", - "NotSpecified" - ] + "info_object": { + "fallback_name": "Heating fuel", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_heating_fuel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "heating_fuel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SEHeatingFuel", + "options": [ + "Electricity", + "Gas", + "Oil", + "SolidFuel", + "Solar", + "ComunityHeating", + "HeatPump", + "NotSpecified" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Electricity" + } }, { - "fallback_name": "Local temperature source", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_local_temperature_source_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "local_temperature_source", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Ambient", - "enum": "SELocalTemperatureSourceSelect", - "options": [ - "Ambient", - "External" - ] + "info_object": { + "fallback_name": "Local temperature source", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_local_temperature_source_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "local_temperature_source", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SELocalTemperatureSourceSelect", + "options": [ + "Ambient", + "External" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Ambient" + } }, { - "fallback_name": "Thermostat application", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_thermostat_application", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "thermostat_application", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Floor", - "enum": "SEThermostatApplication", - "options": [ - "OccupiedSpace", - "Floor", - "NotKnown" - ] + "info_object": { + "fallback_name": "Thermostat application", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_thermostat_application", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "thermostat_application", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SEThermostatApplication", + "options": [ + "OccupiedSpace", + "Floor", + "NotKnown" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Floor" + } }, { - "fallback_name": "External temperature sensor type", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-3-se_temperature_sensor_type", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "external_temperature_sensor_type", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 3, - "available": true, - "group_id": null, - "current_option": "SensorAbsent", - "enum": "SETemperatureSensorType", - "options": [ - "Sensor2kOhm", - "Sensor10kOhm", - "Sensor12kOhm", - "Sensor15kOhm", - "Sensor33kOhm", - "Sensor47kOhm", - "SensorAbsent" - ] + "info_object": { + "fallback_name": "External temperature sensor type", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-3-se_temperature_sensor_type", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "external_temperature_sensor_type", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 3, + "available": true, + "group_id": null, + "enum": "SETemperatureSensorType", + "options": [ + "Sensor2kOhm", + "Sensor10kOhm", + "Sensor12kOhm", + "Sensor15kOhm", + "Sensor33kOhm", + "Sensor47kOhm", + "SensorAbsent" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "SensorAbsent" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 188, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 188 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -64, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -64 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "heating", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "heating" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": 30 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } }, { - "fallback_name": "Control status", - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_control_status", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "control_status", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "NormalOperation", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Control status", + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-se_control_status", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "control_status", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": "NormalOperation" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 19.14, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 19.14 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-3-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-3-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-5-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-5-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 500, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 500, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-5-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-5-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 640.678, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 640.678, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01001d00", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:65:ea:5c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:65:ea:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01001d00", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/schneider-electric-evsckt-outlet-1-0x020a00ff.json b/tests/data/devices/schneider-electric-evsckt-outlet-1-0x020a00ff.json index d3660c733..2d23b2d10 100644 --- a/tests/data/devices/schneider-electric-evsckt-outlet-1-0x020a00ff.json +++ b/tests/data/devices/schneider-electric-evsckt-outlet-1-0x020a00ff.json @@ -436,278 +436,328 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 144.014, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 144.014, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 233.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 233.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:77:a4:73-6-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:77:a4:73", - "endpoint_id": 6, - "available": true, - "group_id": null, - "installed_version": "0x020a00ff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:77:a4:73-6-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:77:a4:73", + "endpoint_id": 6, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x020a00ff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/schneider-electric-lk-dimmer.json b/tests/data/devices/schneider-electric-lk-dimmer.json index a2fc7dbc2..045267f81 100644 --- a/tests/data/devices/schneider-electric-lk-dimmer.json +++ b/tests/data/devices/schneider-electric-lk-dimmer.json @@ -522,253 +522,306 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": 1, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 1, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-default_move_rate", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "DefaultMoveRateConfigurationEntity", - "translation_key": "default_move_rate", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 50, - "mode": "auto", - "native_max_value": 254, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-default_move_rate", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "DefaultMoveRateConfigurationEntity", + "translation_key": "default_move_rate", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "DefaultMoveRateConfigurationEntity", + "available": true, + "state": 50 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 254 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 2, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 2 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:80:01:79-3-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:80:01:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-3-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 3, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/schneider-electric-nhmotion-unidim-1-0x020b0fff.json b/tests/data/devices/schneider-electric-nhmotion-unidim-1-0x020b0fff.json index d91ab83e1..24a9e086f 100644 --- a/tests/data/devices/schneider-electric-nhmotion-unidim-1-0x020b0fff.json +++ b/tests/data/devices/schneider-electric-nhmotion-unidim-1-0x020b0fff.json @@ -324,248 +324,301 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-37-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 37, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-37-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 37, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 88, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 88 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": -89, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -89 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-37-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 37, - "available": true, - "group_id": null, - "native_value": 7, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-37-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 37, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 7 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "installed_version": "0x020b0fff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-3-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x020b0fff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/schneider-electric-puck-dimmer-1.json b/tests/data/devices/schneider-electric-puck-dimmer-1.json index c84aa0d01..428ed0501 100644 --- a/tests/data/devices/schneider-electric-puck-dimmer-1.json +++ b/tests/data/devices/schneider-electric-puck-dimmer-1.json @@ -224,201 +224,244 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": 245, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 245, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", - "endpoint_id": 3, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c9:cb:c2:ea-3-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c9:cb:c2:ea", + "endpoint_id": 3, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/schneider-electric-puck-shutter-1-0x020c02ff.json b/tests/data/devices/schneider-electric-puck-shutter-1-0x020c02ff.json index 52b97b95a..bb252b2a7 100644 --- a/tests/data/devices/schneider-electric-puck-shutter-1-0x020c02ff.json +++ b/tests/data/devices/schneider-electric-puck-shutter-1-0x020c02ff.json @@ -411,293 +411,349 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "blind", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "current_position": 18, - "current_tilt_position": 50, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 255 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "blind", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 18, + "current_tilt_position": 50, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 255 + } } ], "number": [ { - "fallback_name": "Lift drive down time", - "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_lift_drive_down_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "lift_drive_down_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Lift drive down time", + "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_lift_drive_down_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "lift_drive_down_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Lift drive up time", - "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_lift_drive_up_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "lift_drive_up_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Lift drive up time", + "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_lift_drive_up_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "lift_drive_up_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Tilt open close and step time", - "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_tilt_open_close_and_step_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "tilt_open_close_and_step_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Tilt open close and step time", + "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_tilt_open_close_and_step_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "tilt_open_close_and_step_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Tilt position percentage after move to level", - "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_tilt_position_percentage_after_move_to_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "tilt_position_percentage_after_move_to_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Tilt position percentage after move to level", + "unique_id": "ab:cd:ef:12:81:34:28:65-5-se_tilt_position_percentage_after_move_to_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "tilt_position_percentage_after_move_to_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": "Tilt_blind_tilt_and_lift", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Tilt_blind_tilt_and_lift" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:34:28:65-5-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:34:28:65", - "endpoint_id": 5, - "available": true, - "group_id": null, - "installed_version": "0x020c02ff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:34:28:65-5-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:34:28:65", + "endpoint_id": 5, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x020c02ff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/schneider-electric-s520619-0x01003500.json b/tests/data/devices/schneider-electric-s520619-0x01003500.json index 02e10c34d..90d4770a1 100644 --- a/tests/data/devices/schneider-electric-s520619-0x01003500.json +++ b/tests/data/devices/schneider-electric-s520619-0x01003500.json @@ -583,416 +583,503 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-4-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-4-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 4, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 18.95, - "outdoor_temperature": null, - "target_temperature": 17.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 4.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": 2000, - "occupied_heating_setpoint": 1700, - "pi_heating_demand": 0, - "pi_cooling_demand": 0, - "unoccupied_cooling_setpoint": 2200, - "unoccupied_heating_setpoint": 1600 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 4.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 18.95, + "outdoor_temperature": null, + "target_temperature": 17.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": 2000, + "occupied_heating_setpoint": 1700, + "pi_heating_demand": 0, + "pi_cooling_demand": 0, + "unoccupied_cooling_setpoint": 2200, + "unoccupied_heating_setpoint": 1600 + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 40.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 40.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 4.0 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 18.75, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 18.75 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-5-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-5-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-5-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-5-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 5, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x01003500", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:e6:bb:a6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:e6:bb:a6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01003500", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/schneider-electric-socket-outlet-1-0x020612ff.json b/tests/data/devices/schneider-electric-socket-outlet-1-0x020612ff.json index 39dac8ba5..a9bec7cad 100644 --- a/tests/data/devices/schneider-electric-socket-outlet-1-0x020612ff.json +++ b/tests/data/devices/schneider-electric-socket-outlet-1-0x020612ff.json @@ -526,278 +526,328 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 180, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 180 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": -66, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -66 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 10.329, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 10.329, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 225.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 225.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:8a:da:20-6-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:8a:da:20", - "endpoint_id": 6, - "available": true, - "group_id": null, - "installed_version": "0x020612ff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:8a:da:20-6-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:8a:da:20", + "endpoint_id": 6, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x020612ff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/schneider-electric-socket-outlet-2-0x020612ff.json b/tests/data/devices/schneider-electric-socket-outlet-2-0x020612ff.json index 0d489da02..aef258d54 100644 --- a/tests/data/devices/schneider-electric-socket-outlet-2-0x020612ff.json +++ b/tests/data/devices/schneider-electric-socket-outlet-2-0x020612ff.json @@ -526,278 +526,328 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 168, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 168 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": -69, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -69 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.023, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 0.023, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 225.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": 225.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", - "endpoint_id": 6, - "available": true, - "group_id": null, - "installed_version": "0x020612ff", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bc:ec:d0:94-6-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bc:ec:d0:94", + "endpoint_id": 6, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x020612ff", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/securifi-ltd-unk-model.json b/tests/data/devices/securifi-ltd-unk-model.json index be6f4c8c1..6b199428e 100644 --- a/tests/data/devices/securifi-ltd-unk-model.json +++ b/tests/data/devices/securifi-ltd-unk-model.json @@ -358,274 +358,319 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 0.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 122.98466468299382, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 122.98466468299382, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:05:49:ac:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:05:49:ac:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sengled-e11-g13-0x00000009.json b/tests/data/devices/sengled-e11-g13-0x00000009.json index 9ecdecd3d..522eb7a95 100644 --- a/tests/data/devices/sengled-e11-g13-0x00000009.json +++ b/tests/data/devices/sengled-e11-g13-0x00000009.json @@ -311,235 +311,285 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "MinTransitionLight", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 36.9631, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 36.9631, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:3a:9b:48-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:3a:9b:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000009", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:3a:9b:48-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:3a:9b:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000009", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sengled-e12-n14-0x00000004.json b/tests/data/devices/sengled-e12-n14-0x00000004.json index a8250b365..2a2e5a45f 100644 --- a/tests/data/devices/sengled-e12-n14-0x00000004.json +++ b/tests/data/devices/sengled-e12-n14-0x00000004.json @@ -305,235 +305,285 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 255, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "MinTransitionLight", + "available": true, + "on": true, + "brightness": 255, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 8.5, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 8.5, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0026, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0026, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:09:c6:15-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:09:c6:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000004", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:09:c6:15-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:09:c6:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000004", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sengled-e12-n1e-0x0000001e.json b/tests/data/devices/sengled-e12-n1e-0x0000001e.json index fac34e266..20fb5f127 100644 --- a/tests/data/devices/sengled-e12-n1e-0x0000001e.json +++ b/tests/data/devices/sengled-e12-n1e-0x0000001e.json @@ -408,212 +408,257 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.7009994659342336, - 0.2989852750438697 - ], - "color_temp": 397, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 154, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 154, + "max_mireds": 500 + }, + "state": { + "class_name": "MinTransitionLight", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.7009994659342336, + 0.2989852750438697 + ], + "color_temp": 397, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 8.7, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 8.7, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 54.1256, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 54.1256, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:53:34:69-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:53:34:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:53:34:69-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:53:34:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sengled-e1c-nb6.json b/tests/data/devices/sengled-e1c-nb6.json index 740a2a762..a86d57dbe 100644 --- a/tests/data/devices/sengled-e1c-nb6.json +++ b/tests/data/devices/sengled-e1c-nb6.json @@ -152,130 +152,155 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:04:2d:f3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:04:2d:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:04:2d:f3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:04:2d:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:04:2d:f3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:04:2d:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:04:2d:f3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:04:2d:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:04:2d:f3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:04:2d:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:04:2d:f3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:04:2d:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:04:2d:f3-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:04:2d:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:04:2d:f3-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "b0:ce:18:14:00:04:2d:f3", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:04:2d:f3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:04:2d:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:04:2d:f3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:04:2d:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sengled-e1c-nb7-0x0000001a.json b/tests/data/devices/sengled-e1c-nb7-0x0000001a.json index e9b4e9da7..2d4ab23bf 100644 --- a/tests/data/devices/sengled-e1c-nb7-0x0000001a.json +++ b/tests/data/devices/sengled-e1c-nb7-0x0000001a.json @@ -274,220 +274,262 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 1.8, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.8, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 13.4555, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 13.4555, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:6b:9a:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:6b:9a:ee-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:6b:9a:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sengled-e1f-n9g-0x00000020.json b/tests/data/devices/sengled-e1f-n9g-0x00000020.json index 577c45823..415f4bfd6 100644 --- a/tests/data/devices/sengled-e1f-n9g-0x00000020.json +++ b/tests/data/devices/sengled-e1f-n9g-0x00000020.json @@ -323,235 +323,285 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "MinTransitionLight", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 4.8, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4.8, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.2962, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.2962, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:1c:86:48-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:1c:86:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000020", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:1c:86:48-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:1c:86:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000020", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sengled-e1g-g8e-0x0000000e.json b/tests/data/devices/sengled-e1g-g8e-0x0000000e.json index b2c7148de..21ca4a001 100644 --- a/tests/data/devices/sengled-e1g-g8e-0x0000000e.json +++ b/tests/data/devices/sengled-e1g-g8e-0x0000000e.json @@ -414,212 +414,257 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 26, - "xy_color": [ - 0.38054474708171204, - 0.3769130998702983 - ], - "color_temp": 232, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 154, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 154, + "max_mireds": 500 + }, + "state": { + "class_name": "MinTransitionLight", + "available": true, + "on": false, + "brightness": 26, + "xy_color": [ + 0.38054474708171204, + 0.3769130998702983 + ], + "color_temp": 232, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.2, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.2, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.1413, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.1413, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:63:f2:6a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:63:f2:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000000e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:63:f2:6a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:63:f2:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000000e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sengled-e21-n1ea-0x00000026.json b/tests/data/devices/sengled-e21-n1ea-0x00000026.json index 732ab34e2..a575be4d7 100644 --- a/tests/data/devices/sengled-e21-n1ea-0x00000026.json +++ b/tests/data/devices/sengled-e21-n1ea-0x00000026.json @@ -414,292 +414,352 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 86, - "xy_color": [ - 0.20799572747386894, - 0.21699855039291982 - ], - "color_temp": 500, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 154, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 154, + "max_mireds": 500 + }, + "state": { + "class_name": "MinTransitionLight", + "available": true, + "on": false, + "brightness": 86, + "xy_color": [ + 0.20799572747386894, + 0.21699855039291982 + ], + "color_temp": 500, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 154, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 154, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.2, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.2, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.5788, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.5788, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:00:18:57:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:00:18:57:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000026", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:00:18:57:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:00:18:57:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000026", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sengled-z01-a19nae26-0x00000020.json b/tests/data/devices/sengled-z01-a19nae26-0x00000020.json index 680dcbba2..f9dd33b8f 100644 --- a/tests/data/devices/sengled-z01-a19nae26-0x00000020.json +++ b/tests/data/devices/sengled-z01-a19nae26-0x00000020.json @@ -390,236 +390,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "MinTransitionLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 252, - "xy_color": null, - "color_temp": 370, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 370 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "MinTransitionLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 370 + }, + "state": { + "class_name": "MinTransitionLight", + "available": true, + "on": false, + "brightness": 252, + "xy_color": null, + "color_temp": 370, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 9.9, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 9.9, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0996, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0996, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "b0:ce:18:14:03:01:1d:28-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b0:ce:18:14:03:01:1d:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000020", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "b0:ce:18:14:03:01:1d:28-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b0:ce:18:14:03:01:1d:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000020", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sercomm-corp-sz-esw01-au.json b/tests/data/devices/sercomm-corp-sz-esw01-au.json index b009b303d..831759844 100644 --- a/tests/data/devices/sercomm-corp-sz-esw01-au.json +++ b/tests/data/devices/sercomm-corp-sz-esw01-au.json @@ -553,350 +553,418 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 286000, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 286000, - "suggested_display_precision": 1, - "unit": "W", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 20571987.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20571987.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.256, + "measurement_type": "PHASE_A_MEASUREMENT", + "active_power_max": -4194.304 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.256, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": -4194.304, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 50.0, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 50.0, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 1, + "measurement_type": "PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.079, + "measurement_type": "PHASE_A_MEASUREMENT", + "rms_current_max": 32.768 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.079, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": 32.768, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 236.024, + "measurement_type": "PHASE_A_MEASUREMENT", + "rms_voltage_max": 524.28 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 236.024, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "PHASE_A_MEASUREMENT", - "max_value": 524.28, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:61:67:6a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:42:61:67:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/shelly-1pm.json b/tests/data/devices/shelly-1pm.json index ebe3da7c2..1daca3a25 100644 --- a/tests/data/devices/shelly-1pm.json +++ b/tests/data/devices/shelly-1pm.json @@ -595,276 +595,324 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 58, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 58 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 1.443, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.443, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummationReceived", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.02, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 60.02, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 122.82, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 122.82, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:d6:bf:0a-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e7:d6:bf:0a", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ] }, diff --git a/tests/data/devices/shelly-2pm.json b/tests/data/devices/shelly-2pm.json index cac4ec85c..0262d4204 100644 --- a/tests/data/devices/shelly-2pm.json +++ b/tests/data/devices/shelly-2pm.json @@ -244,128 +244,154 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shutter", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": null, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 240 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shutter", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": null, + "current_tilt_position": null, + "state": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 240 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 68, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 68 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -83, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -83 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Shutter", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:bd:cb:14-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9c:bd:cb:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Shutter" + } } ] }, diff --git a/tests/data/devices/shelly-dimmer.json b/tests/data/devices/shelly-dimmer.json index 698d7aebd..e57e08e6c 100644 --- a/tests/data/devices/shelly-dimmer.json +++ b/tests/data/devices/shelly-dimmer.json @@ -613,344 +613,410 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 0 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 140, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 140 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -65, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -65 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.110942, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.110942, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:23:e1:0e-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:23:e1:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 229.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:28:23:e1:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 229.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ] }, diff --git a/tests/data/devices/shelly-ecowitt-ws90.json b/tests/data/devices/shelly-ecowitt-ws90.json index f05a66c8a..c165908a6 100644 --- a/tests/data/devices/shelly-ecowitt-ws90.json +++ b/tests/data/devices/shelly-ecowitt-ws90.json @@ -210,338 +210,407 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Rain detected", - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-rain_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "rain_detected", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "rain_status" + "info_object": { + "fallback_name": "Rain detected", + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-rain_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "rain_detected", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "rain_status" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 64, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 64 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -95, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -95 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.2 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 990, - "suggested_display_precision": 0, - "unit": "hPa" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "hPa" + }, + "state": { + "class_name": "Pressure", + "available": true, + "state": 990 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 60.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 60.0 + } }, { - "fallback_name": "Gust speed", - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-gust_speed", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "gust_speed", - "translation_placeholders": null, - "device_class": "wind_speed", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m/s" + "info_object": { + "fallback_name": "Gust speed", + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-gust_speed", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "gust_speed", + "translation_placeholders": null, + "device_class": "wind_speed", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m/s" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Precipitation", - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-precipitation", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "precipitation", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "mm" + "info_object": { + "fallback_name": "Precipitation", + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-precipitation", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "precipitation", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "mm" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "UV index", - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-uv_index", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "uv_index", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "UV index", + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-uv_index", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "uv_index", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Wind direction", - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-wind_direction", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "wind_direction", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0" + "info_object": { + "fallback_name": "Wind direction", + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-wind_direction", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "wind_direction", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Wind speed", - "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-wind_speed", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "wind_speed", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m/s" + "info_object": { + "fallback_name": "Wind speed", + "unique_id": "ab:cd:ef:12:a6:a9:96:8e-1-wind_speed", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "wind_speed", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:a9:96:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m/s" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/shelly-mini1pm.json b/tests/data/devices/shelly-mini1pm.json index 81f57cae0..f63d376af 100644 --- a/tests/data/devices/shelly-mini1pm.json +++ b/tests/data/devices/shelly-mini1pm.json @@ -504,276 +504,324 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 153, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 153 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.970439, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.970439, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummationReceived", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 2.2, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2.2, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 49.96, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 49.96, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.01, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.01, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 230.95, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 230.95, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:0d:2c:ef-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:6a:0d:2c:ef", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ] }, diff --git a/tests/data/devices/shyugj-dimmer-switch-zb3-0.json b/tests/data/devices/shyugj-dimmer-switch-zb3-0.json index 0227c6c87..d010fbd53 100644 --- a/tests/data/devices/shyugj-dimmer-switch-zb3-0.json +++ b/tests/data/devices/shyugj-dimmer-switch-zb3-0.json @@ -267,175 +267,213 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:59:bd:59-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:59:bd:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:59:bd:59-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:59:bd:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:59:bd:59-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:59:bd:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 246, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:59:bd:59-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:43:59:bd:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 246, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:59:bd:59-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:59:bd:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 184, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:59:bd:59-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:59:bd:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 184 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:59:bd:59-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:59:bd:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:59:bd:59-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:59:bd:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:59:bd:59-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:59:bd:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:59:bd:59-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:59:bd:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:59:bd:59-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:59:bd:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:59:bd:59-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:59:bd:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lca001-0x01002802.json b/tests/data/devices/signify-netherlands-b-v-lca001-0x01002802.json index 136a76317..852bd2ebf 100644 --- a/tests/data/devices/signify-netherlands-b-v-lca001-0x01002802.json +++ b/tests/data/devices/signify-netherlands-b-v-lca001-0x01002802.json @@ -353,237 +353,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.3690699626153964, - 0.3718776226443885 - ], - "color_temp": 230, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.3690699626153964, + 0.3718776226443885 + ], + "color_temp": 230, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 366, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 366 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 64, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 64 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01002802", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:0f:71:cd-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7d:0f:71:cd", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01002802", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lca005-0x01002402.json b/tests/data/devices/signify-netherlands-b-v-lca005-0x01002402.json index a0d73e9f1..aabe10692 100644 --- a/tests/data/devices/signify-netherlands-b-v-lca005-0x01002402.json +++ b/tests/data/devices/signify-netherlands-b-v-lca005-0x01002402.json @@ -334,237 +334,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.37265583276112, - 0.37425803006027314 - ], - "color_temp": 239, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.37265583276112, + 0.37425803006027314 + ], + "color_temp": 239, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 239, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 239 + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:6d:bc:5c-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:6d:bc:5c", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01002402", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:6d:bc:5c-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:6d:bc:5c", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01002402", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lca007-0x01001f0a.json b/tests/data/devices/signify-netherlands-b-v-lca007-0x01001f0a.json index 6848f194c..461abd49b 100644 --- a/tests/data/devices/signify-netherlands-b-v-lca007-0x01001f0a.json +++ b/tests/data/devices/signify-netherlands-b-v-lca007-0x01001f0a.json @@ -322,237 +322,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.45726710917830166, - 0.40999465934233614 - ], - "color_temp": 366, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.45726710917830166, + 0.40999465934233614 + ], + "color_temp": 366, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 366, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 366 + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:6e:be:18-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:6e:be:18", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01001f0a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:6e:be:18-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:6e:be:18", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01001f0a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lcb001-0x01002800.json b/tests/data/devices/signify-netherlands-b-v-lcb001-0x01002800.json index ae3fb5656..1c5794f6c 100644 --- a/tests/data/devices/signify-netherlands-b-v-lcb001-0x01002800.json +++ b/tests/data/devices/signify-netherlands-b-v-lcb001-0x01002800.json @@ -359,237 +359,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 1, - "xy_color": [ - 0.4233615625238422, - 0.39954222934309913 - ], - "color_temp": 312, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 1, + "xy_color": [ + 0.4233615625238422, + 0.39954222934309913 + ], + "color_temp": 312, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 366, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 366 + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:06:0b:87:56-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:06:0b:87:56", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01002800", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:06:0b:87:56-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:06:0b:87:56", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01002800", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lcb002-0x01001f0a.json b/tests/data/devices/signify-netherlands-b-v-lcb002-0x01001f0a.json index 7e6d7462a..316230002 100644 --- a/tests/data/devices/signify-netherlands-b-v-lcb002-0x01001f0a.json +++ b/tests/data/devices/signify-netherlands-b-v-lcb002-0x01001f0a.json @@ -322,237 +322,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.3454947737850004, - 0.3558098725871672 - ], - "color_temp": 200, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.3454947737850004, + 0.3558098725871672 + ], + "color_temp": 200, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 200, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 200 + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:01:9c:a3-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:01:9c:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01001f0a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:01:9c:a3-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:01:9c:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01001f0a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lce001-0x01002404.json b/tests/data/devices/signify-netherlands-b-v-lce001-0x01002404.json index babbc626d..f6847bb9d 100644 --- a/tests/data/devices/signify-netherlands-b-v-lce001-0x01002404.json +++ b/tests/data/devices/signify-netherlands-b-v-lce001-0x01002404.json @@ -322,237 +322,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.4486915388723583, - 0.4077668421454185 - ], - "color_temp": 352, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.4486915388723583, + 0.4077668421454185 + ], + "color_temp": 352, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 367, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 367 + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:5b:93:1a-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:5b:93:1a", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01002404", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:5b:93:1a-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:5b:93:1a", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01002404", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lcg006-0x01002502.json b/tests/data/devices/signify-netherlands-b-v-lcg006-0x01002502.json index 351231307..8f016d09d 100644 --- a/tests/data/devices/signify-netherlands-b-v-lcg006-0x01002502.json +++ b/tests/data/devices/signify-netherlands-b-v-lcg006-0x01002502.json @@ -322,237 +322,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 168, - "xy_color": [ - 0.4511482413977264, - 0.4084229800869764 - ], - "color_temp": 357, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 168, + "xy_color": [ + 0.4511482413977264, + 0.4084229800869764 + ], + "color_temp": 357, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 367, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 367 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 148, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 148 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": -63, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -63 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01002502", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:67:e6:a3-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:67:e6:a3", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01002502", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lcx004-0x01001802.json b/tests/data/devices/signify-netherlands-b-v-lcx004-0x01001802.json index 60009d0fa..8ef82800e 100644 --- a/tests/data/devices/signify-netherlands-b-v-lcx004-0x01001802.json +++ b/tests/data/devices/signify-netherlands-b-v-lcx004-0x01001802.json @@ -316,237 +316,286 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 74, - "xy_color": [ - 0.5266803997863737, - 0.41330586709391925 - ], - "color_temp": 500, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 74, + "xy_color": [ + 0.5266803997863737, + 0.41330586709391925 + ], + "color_temp": 500, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 366, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 366 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:16:33:04:fc-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:16:33:04:fc", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01001802", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:16:33:04:fc-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:16:33:04:fc", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01001802", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lta010-0x01002402.json b/tests/data/devices/signify-netherlands-b-v-lta010-0x01002402.json index 8f973d679..c66213401 100644 --- a/tests/data/devices/signify-netherlands-b-v-lta010-0x01002402.json +++ b/tests/data/devices/signify-netherlands-b-v-lta010-0x01002402.json @@ -316,232 +316,280 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 1, - "xy_color": null, - "color_temp": 366, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 454 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 454 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 1, + "xy_color": null, + "color_temp": 366, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 366, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 366 + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:e2:78:72-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:e2:78:72", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01002402", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:e2:78:72-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:e2:78:72", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01002402", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-ltb003-0x01001f0a.json b/tests/data/devices/signify-netherlands-b-v-ltb003-0x01001f0a.json index 1f4d34cd9..19776c812 100644 --- a/tests/data/devices/signify-netherlands-b-v-ltb003-0x01001f0a.json +++ b/tests/data/devices/signify-netherlands-b-v-ltb003-0x01001f0a.json @@ -322,232 +322,280 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": 200, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 454 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 454 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": 200, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 200, - "mode": "auto", - "native_max_value": 454, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 454, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 200 + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:00:32:fb-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:00:32:fb", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01001f0a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:00:32:fb-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:00:32:fb", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01001f0a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-lwa003-0x01001f0a.json b/tests/data/devices/signify-netherlands-b-v-lwa003-0x01001f0a.json index b00f1aa62..447265bce 100644 --- a/tests/data/devices/signify-netherlands-b-v-lwa003-0x01001f0a.json +++ b/tests/data/devices/signify-netherlands-b-v-lwa003-0x01001f0a.json @@ -231,205 +231,248 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "HueLight", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "HueLight", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "HueLight", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:76:6c:d5-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:76:6c:d5", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x01001f0a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:76:6c:d5-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:76:6c:d5", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x01001f0a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm001-0x0000041a.json b/tests/data/devices/signify-netherlands-b-v-rdm001-0x0000041a.json index 9bcfbcd59..8a383dd0f 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm001-0x0000041a.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm001-0x0000041a.json @@ -189,137 +189,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:02:b6:79-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:02:b6:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:02:b6:79-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:02:b6:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:02:b6:79-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:02:b6:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:02:b6:79-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:02:b6:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:02:b6:79-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:02:b6:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:02:b6:79-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:02:b6:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:02:b6:79-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:02:b6:79-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:02:b6:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:17:88:01:0b:02:b6:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0b:02:b6:79-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0b:02:b6:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000041a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:02:b6:79-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0b:02:b6:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000041a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b13.json b/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b13.json index 3d466a127..1d0b92f47 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b13.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b13.json @@ -207,137 +207,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:d9:30:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:d9:30:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:d9:30:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 141, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:d9:30:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 141 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:d9:30:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:d9:30:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:d9:30:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:05:d9:30:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:d9:30:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x02003b13", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:d9:30:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02003b13", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b19.json b/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b19.json index f959d7f08..1c23d5cfa 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b19.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b19.json @@ -207,137 +207,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:13:48:33-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:13:48:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:13:48:33-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:13:48:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:13:48:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:13:48:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:13:48:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:13:48:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:13:48:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:13:48:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:13:48:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:13:48:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:13:48:33-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:13:48:33-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:13:48:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.7 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:17:88:01:0d:13:48:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.7 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0d:13:48:33-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0d:13:48:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x02003b19", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:13:48:33-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0d:13:48:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02003b19", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm004-0x02004d23.json b/tests/data/devices/signify-netherlands-b-v-rdm004-0x02004d23.json index d0299b444..d2952f272 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm004-0x02004d23.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm004-0x02004d23.json @@ -202,137 +202,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 124, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 124 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -69, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -69 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 25.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 25.5 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x02004d23", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02004d23", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm004.json b/tests/data/devices/signify-netherlands-b-v-rdm004.json index 60f823d1b..1d65ebede 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm004.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm004.json @@ -188,137 +188,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.1 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:06:58:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:84:06:58:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm005-0x02005301.json b/tests/data/devices/signify-netherlands-b-v-rdm005-0x02005301.json index b361e7d67..a6bc1ad80 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm005-0x02005301.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm005-0x02005301.json @@ -214,137 +214,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:df:74:89-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:df:74:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:df:74:89-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:df:74:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:df:74:89-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:df:74:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 132, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:df:74:89-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:df:74:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 132 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:df:74:89-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:df:74:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -67, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:df:74:89-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:df:74:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -67 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:df:74:89-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:df:74:89-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:df:74:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:e5:df:74:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:df:74:89-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:df:74:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x02005301", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:df:74:89-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:df:74:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02005301", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02002d02.json b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02002d02.json index b585f5318..e9859fa39 100644 --- a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02002d02.json +++ b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02002d02.json @@ -207,137 +207,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:26:42:ec-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:26:42:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:26:42:ec-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:26:42:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:26:42:ec-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:26:42:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:26:42:ec-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:26:42:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:26:42:ec-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:26:42:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:26:42:ec-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:26:42:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:26:42:ec-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:26:42:ec-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:26:42:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 95.5, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:17:88:01:0c:26:42:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 95.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:26:42:ec-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:26:42:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x02002d02", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:26:42:ec-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:26:42:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02002d02", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02004d27.json b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02004d27.json index ed71066de..c530ccc21 100644 --- a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02004d27.json +++ b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02004d27.json @@ -202,137 +202,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 184, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 184 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -54, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -54 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x02004d27", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02004d27", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json b/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json index 110762084..6ac8cd6d0 100644 --- a/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json +++ b/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json @@ -229,289 +229,343 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1030-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "HueV2MotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_option": "High", - "enum": "HueV2MotionSensitivities", - "options": [ - "Lowest", - "Low", - "Medium", - "High", - "Highest" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1030-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "HueV2MotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "enum": "HueV2MotionSensitivities", + "options": [ + "Lowest", + "Low", + "Medium", + "High", + "Highest" + ] + }, + "state": { + "class_name": "HueV2MotionSensitivity", + "available": true, + "state": "High" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 61, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 61 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 69.5, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 69.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 20.81, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.81 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-0-trigger_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "HueMotionTriggerIndicatorSwitch", - "translation_key": "trigger_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "trigger_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-0-trigger_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "HueMotionTriggerIndicatorSwitch", + "translation_key": "trigger_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "trigger_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "HueMotionTriggerIndicatorSwitch", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": "0x02003506", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02003506", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json b/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json index 1fe434cdc..d39162798 100644 --- a/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json +++ b/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json @@ -229,289 +229,343 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-1030-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "HueV2MotionSensitivity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_option": "Lowest", - "enum": "HueV2MotionSensitivities", - "options": [ - "Lowest", - "Low", - "Medium", - "High", - "Highest" - ] + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-1030-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "HueV2MotionSensitivity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "enum": "HueV2MotionSensitivities", + "options": [ + "Lowest", + "Low", + "Medium", + "High", + "Highest" + ] + }, + "state": { + "class_name": "HueV2MotionSensitivity", + "available": true, + "state": "Lowest" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 41, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 41 + } }, { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 25.87, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 25.87 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-0-trigger_indicator", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "HueMotionTriggerIndicatorSwitch", - "translation_key": "trigger_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "trigger_indicator", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-0-trigger_indicator", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "HueMotionTriggerIndicatorSwitch", + "translation_key": "trigger_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "trigger_indicator", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "HueMotionTriggerIndicatorSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:17:88:01:0c:dc:9d:61-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:17:88:01:0c:dc:9d:61", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": "0x02003506", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02003506", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sinope-technologies-va4220zb.json b/tests/data/devices/sinope-technologies-va4220zb.json index 248c05c74..dd7b7d8b9 100644 --- a/tests/data/devices/sinope-technologies-va4220zb.json +++ b/tests/data/devices/sinope-technologies-va4220zb.json @@ -450,310 +450,372 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 29.1, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 29.1 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1028", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Flow", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volume_flow_rate", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m\u00b3/h" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1028", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Flow", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volume_flow_rate", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m\u00b3/h" + }, + "state": { + "class_name": "Flow", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "l/h" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "device_type": "Water Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 7 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "l/h", - "device_type": "Water Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 7 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "L" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Water Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 7 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "L", - "device_type": "Water Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 7 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/smarthjemmet-dk-quad-zig-sw.json b/tests/data/devices/smarthjemmet-dk-quad-zig-sw.json index 004552312..b2b6f7692 100644 --- a/tests/data/devices/smarthjemmet-dk-quad-zig-sw.json +++ b/tests/data/devices/smarthjemmet-dk-quad-zig-sw.json @@ -268,80 +268,94 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:6f:4f:77-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:6f:4f:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:6f:4f:77-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:6f:4f:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:6f:4f:77-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:6f:4f:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:6f:4f:77-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:6f:4f:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:6f:4f:77-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:6f:4f:77-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:6f:4f:77", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 28.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:35:6f:4f:77", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 28.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] } ] }, diff --git a/tests/data/devices/smarthjemmet-dk-quad-zig-sw2.json b/tests/data/devices/smarthjemmet-dk-quad-zig-sw2.json index 88d0e396d..5e8f971be 100644 --- a/tests/data/devices/smarthjemmet-dk-quad-zig-sw2.json +++ b/tests/data/devices/smarthjemmet-dk-quad-zig-sw2.json @@ -387,192 +387,231 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-2-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-2-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-3-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-3-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 3, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-4-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-4-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 4, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-5-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 5, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-5-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 5, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.4 + ] } ] }, diff --git a/tests/data/devices/smartthings-multiv4-0x0000001b.json b/tests/data/devices/smartthings-multiv4-0x0000001b.json index b788b5465..e11c66394 100644 --- a/tests/data/devices/smartthings-multiv4-0x0000001b.json +++ b/tests/data/devices/smartthings-multiv4-0x0000001b.json @@ -238,228 +238,272 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-64514", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Accelerometer", - "translation_key": "accelerometer", - "translation_placeholders": null, - "device_class": "moving", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "acceleration" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-64514", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Accelerometer", + "translation_key": "accelerometer", + "translation_placeholders": null, + "device_class": "moving", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "acceleration" + }, + "state": { + "class_name": "Accelerometer", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_voltage": 2.4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.4 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 23.52, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 23.52 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:6f:e5:ee-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:6f:e5:ee", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/smartthings-tagv4-0x00000019.json b/tests/data/devices/smartthings-tagv4-0x00000019.json index fa7c4529c..bc4529e23 100644 --- a/tests/data/devices/smartthings-tagv4-0x00000019.json +++ b/tests/data/devices/smartthings-tagv4-0x00000019.json @@ -179,185 +179,219 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "24:fd:5b:00:01:01:4f:5d-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "24:fd:5b:00:01:01:4f:5d-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "24:fd:5b:00:01:01:4f:5d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "24:fd:5b:00:01:01:4f:5d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "device_tracker": [ { - "fallback_name": "Device scanner", - "unique_id": "24:fd:5b:00:01:01:4f:5d-1", - "migrate_unique_ids": [], - "platform": "device_tracker", - "class_name": "DeviceScannerEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "connected": true, - "battery_level": 69.0 + "info_object": { + "fallback_name": "Device scanner", + "unique_id": "24:fd:5b:00:01:01:4f:5d-1", + "migrate_unique_ids": [], + "platform": "device_tracker", + "class_name": "DeviceScannerEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "DeviceScannerEntity", + "available": true, + "connected": true, + "battery_level": 69.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "24:fd:5b:00:01:01:4f:5d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "24:fd:5b:00:01:01:4f:5d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "24:fd:5b:00:01:01:4f:5d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "24:fd:5b:00:01:01:4f:5d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "24:fd:5b:00:01:01:4f:5d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "24:fd:5b:00:01:01:4f:5d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 69.0, + "battery_voltage": 2.4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 69.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.4 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "24:fd:5b:00:01:01:4f:5d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "24:fd:5b:00:01:01:4f:5d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000019", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "24:fd:5b:00:01:01:4f:5d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "24:fd:5b:00:01:01:4f:5d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000019", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/smartwings-wm25-l-z-0x00000002.json b/tests/data/devices/smartwings-wm25-l-z-0x00000002.json index a1435a031..178729f0e 100644 --- a/tests/data/devices/smartwings-wm25-l-z-0x00000002.json +++ b/tests/data/devices/smartwings-wm25-l-z-0x00000002.json @@ -300,217 +300,257 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] }, { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "e0:79:8d:ff:fe:be:fd:b9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "e0:79:8d:ff:fe:be:fd:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/somfy-situo-4-zigbee-0x00011a00.json b/tests/data/devices/somfy-situo-4-zigbee-0x00011a00.json index 36e0b529e..cb6873594 100644 --- a/tests/data/devices/somfy-situo-4-zigbee-0x00011a00.json +++ b/tests/data/devices/somfy-situo-4-zigbee-0x00011a00.json @@ -431,227 +431,270 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-2-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-2-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-3-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-3-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 3, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-4-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-4-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 4, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-232-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-232-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 232, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 77.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 232, - "available": true, - "group_id": null, - "native_value": 77.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:3b:98:5a-232-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:3b:98:5a", - "endpoint_id": 232, - "available": true, - "group_id": null, - "installed_version": "0x00011a00", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-232-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 232, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00011a00", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/somfy-sonesse-28-wf-li-ion-roller-0x4100e158.json b/tests/data/devices/somfy-sonesse-28-wf-li-ion-roller-0x4100e158.json index 9e8a8cd88..7b96dc427 100644 --- a/tests/data/devices/somfy-sonesse-28-wf-li-ion-roller-0x4100e158.json +++ b/tests/data/devices/somfy-sonesse-28-wf-li-ion-roller-0x4100e158.json @@ -287,217 +287,256 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 34, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 34, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 176, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 176 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -56, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -56 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-232-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-232-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 232, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 20.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 232, - "available": true, - "group_id": null, - "native_value": 20.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-232-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", - "endpoint_id": 232, - "available": true, - "group_id": null, - "installed_version": "0x4100e158", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:7c:3f:a7-232-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:7c:3f:a7", + "endpoint_id": 232, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x4100e158", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/somfy-ysia-5-hp-zigbee-0x00e00041.json b/tests/data/devices/somfy-ysia-5-hp-zigbee-0x00e00041.json index 90d04914c..fd9c5d086 100644 --- a/tests/data/devices/somfy-ysia-5-hp-zigbee-0x00e00041.json +++ b/tests/data/devices/somfy-ysia-5-hp-zigbee-0x00e00041.json @@ -658,249 +658,297 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-2-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-2-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-3-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-3-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 3, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-4-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-4-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 4, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-5-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 5, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-5-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 5, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-232-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-232-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 232, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 92.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 232, - "available": true, - "group_id": null, - "native_value": 92.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:26:2e:c9-232-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:26:2e:c9", - "endpoint_id": 232, - "available": true, - "group_id": null, - "installed_version": "0x00e00041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-232-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 232, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00e00041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-01minizb.json b/tests/data/devices/sonoff-01minizb.json index 1e379b923..28bda0e60 100644 --- a/tests/data/devices/sonoff-01minizb.json +++ b/tests/data/devices/sonoff-01minizb.json @@ -169,146 +169,179 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:26:b7:de:4f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:26:b7:de:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:26:b7:de:4f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:26:b7:de:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:26:b7:de:4f-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:26:b7:de:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:26:b7:de:4f-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:12:4b:00:26:b7:de:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:26:b7:de:4f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:26:b7:de:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:26:b7:de:4f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:26:b7:de:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:26:b7:de:4f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:26:b7:de:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:26:b7:de:4f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:26:b7:de:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:26:b7:de:4f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:26:b7:de:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:26:b7:de:4f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:26:b7:de:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-basiczbr3.json b/tests/data/devices/sonoff-basiczbr3.json index 9b6984222..3604ad0cf 100644 --- a/tests/data/devices/sonoff-basiczbr3.json +++ b/tests/data/devices/sonoff-basiczbr3.json @@ -140,116 +140,144 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:ca:86:ba-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:ca:86:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:ca:86:ba-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:ca:86:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:ca:86:ba-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:ca:86:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:ca:86:ba-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:93:ca:86:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:ca:86:ba-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:ca:86:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 172, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:ca:86:ba-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:ca:86:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 172 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:ca:86:ba-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:ca:86:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -68, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:ca:86:ba-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:ca:86:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -68 + } } ] }, diff --git a/tests/data/devices/sonoff-dongle-e-r.json b/tests/data/devices/sonoff-dongle-e-r.json index ab9c08955..a3a6e4fed 100644 --- a/tests/data/devices/sonoff-dongle-e-r.json +++ b/tests/data/devices/sonoff-dongle-e-r.json @@ -386,294 +386,360 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 51, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 51, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": 51, - "xy_color": null, - "color_temp": 17476, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 65279 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 65279 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 51, + "xy_color": null, + "color_temp": 17476, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 51, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 51 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-2-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 17476, - "mode": "auto", - "native_max_value": 65279, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-2-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65279, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 17476 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-2-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 51, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-2-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 51 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-2-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-2-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 2, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 212, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 212 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:57:93:05-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:57:93:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -47, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:57:93:05-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:57:93:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -47 + } } ] }, diff --git a/tests/data/devices/sonoff-mini-zbdim-0x00001005.json b/tests/data/devices/sonoff-mini-zbdim-0x00001005.json index 998cdc918..c9f6bcd3c 100644 --- a/tests/data/devices/sonoff-mini-zbdim-0x00001005.json +++ b/tests/data/devices/sonoff-mini-zbdim-0x00001005.json @@ -514,264 +514,314 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 0, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 0, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 240, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 240 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -40, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -40 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:01:81:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001005", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:01:81:4d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:01:81:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001005", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-mini-zbrbs-0x00001005.json b/tests/data/devices/sonoff-mini-zbrbs-0x00001005.json index bca198f66..5e3b3e107 100644 --- a/tests/data/devices/sonoff-mini-zbrbs-0x00001005.json +++ b/tests/data/devices/sonoff-mini-zbrbs-0x00001005.json @@ -280,283 +280,339 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } }, { - "fallback_name": "Configure cover limits", - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-limits_calibration", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "configure_limits", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "limits_calibration", - "attribute_value": 2 + "info_object": { + "fallback_name": "Configure cover limits", + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-limits_calibration", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "configure_limits", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "limits_calibration", + "attribute_value": 2 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "select": [ { - "fallback_name": "External trigger mode", - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-external_trigger_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "external_trigger_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "SonoffExternalSwitchTriggerType", - "options": [ - "edge trigger", - "pulse trigger" - ] + "info_object": { + "fallback_name": "External trigger mode", + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-external_trigger_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "external_trigger_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SonoffExternalSwitchTriggerType", + "options": [ + "edge trigger", + "pulse trigger" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 184, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 184 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -54, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -54 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } }, { - "fallback_name": "Calibrated", - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-cover_calibrated", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "calibrated", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Calibrated", + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-cover_calibrated", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "calibrated", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } }, { - "fallback_name": "Motor state", - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-motor_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "motor_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Motor state", + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-motor_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "motor_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:24:57:22-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:24:57:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001005", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:24:57:22-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:24:57:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001005", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-s26r2zb-0x00002000.json b/tests/data/devices/sonoff-s26r2zb-0x00002000.json index 97ee99f50..31d419c53 100644 --- a/tests/data/devices/sonoff-s26r2zb-0x00002000.json +++ b/tests/data/devices/sonoff-s26r2zb-0x00002000.json @@ -207,130 +207,155 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 128, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 128 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -79, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -79 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00002000", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:e4:bd:45-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b4:e4:bd:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00002000", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-s31-lite-zb.json b/tests/data/devices/sonoff-s31-lite-zb.json index b636c97ec..220fe62a3 100644 --- a/tests/data/devices/sonoff-s31-lite-zb.json +++ b/tests/data/devices/sonoff-s31-lite-zb.json @@ -140,100 +140,120 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:24:56:cb:dc-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:24:56:cb:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:24:56:cb:dc-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:24:56:cb:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:24:56:cb:dc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:24:56:cb:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:24:56:cb:dc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:24:56:cb:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:24:56:cb:dc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:24:56:cb:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:24:56:cb:dc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:24:56:cb:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:24:56:cb:dc-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:24:56:cb:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:24:56:cb:dc-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:12:4b:00:24:56:cb:dc", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ] }, diff --git a/tests/data/devices/sonoff-s60zbtpg-0x00001002.json b/tests/data/devices/sonoff-s60zbtpg-0x00001002.json index c363e17b1..eb76bc0e5 100644 --- a/tests/data/devices/sonoff-s60zbtpg-0x00001002.json +++ b/tests/data/devices/sonoff-s60zbtpg-0x00001002.json @@ -520,277 +520,325 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 54, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 54 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.07, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.07, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 11.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 11.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.08, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.08, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 239.03, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 239.03, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:76:b6:2c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:76:b6:2c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-snzb-01m-0x00001005.json b/tests/data/devices/sonoff-snzb-01m-0x00001005.json index 9e48d1354..0163a8fa7 100644 --- a/tests/data/devices/sonoff-snzb-01m-0x00001005.json +++ b/tests/data/devices/sonoff-snzb-01m-0x00001005.json @@ -302,137 +302,160 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:6d:54:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:6d:54:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 54, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 54 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:6d:54:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:25:6d:54:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:6d:54:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001005", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001005", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-snzb-02d-0x00002300.json b/tests/data/devices/sonoff-snzb-02d-0x00002300.json index dea5afa71..d5b4a219a 100644 --- a/tests/data/devices/sonoff-snzb-02d-0x00002300.json +++ b/tests/data/devices/sonoff-snzb-02d-0x00002300.json @@ -211,369 +211,437 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": "Comfort humidity max", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_humidity_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_humidity_max", - "translation_placeholders": null, - "device_class": "humidity", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 95, - "native_min_value": 5, - "native_step": 0.1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Comfort humidity max", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_humidity_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_humidity_max", + "translation_placeholders": null, + "device_class": "humidity", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 95, + "native_min_value": 5, + "native_step": 0.1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Comfort humidity min", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_humidity_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_humidity_min", - "translation_placeholders": null, - "device_class": "humidity", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 95, - "native_min_value": 5, - "native_step": 0.1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Comfort humidity min", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_humidity_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_humidity_min", + "translation_placeholders": null, + "device_class": "humidity", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 95, + "native_min_value": 5, + "native_step": 0.1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Comfort temperature max", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_temperature_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature_max", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -10, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Comfort temperature max", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_temperature_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature_max", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -10, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Comfort temperature min", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_temperature_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature_min", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -10, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Comfort temperature min", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-comfort_temperature_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature_min", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -10, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Humidity offset", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-humidity_offset", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_offset", - "translation_placeholders": null, - "device_class": "humidity", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 50, - "native_min_value": -50, - "native_step": 0.1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Humidity offset", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-humidity_offset", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_offset", + "translation_placeholders": null, + "device_class": "humidity", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": -50, + "native_step": 0.1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature offset", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-temperature_offset", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_offset", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 50, - "native_min_value": -50, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature offset", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-temperature_offset", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_offset", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": -50, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-temperature_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Fahrenheit", - "enum": "TemperatureUnit", - "options": [ - "Celsius", - "Fahrenheit" - ] + "info_object": { + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-temperature_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TemperatureUnit", + "options": [ + "Celsius", + "Fahrenheit" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Fahrenheit" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 204, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 204 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 63.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 63.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 53.3, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 53.3 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:70:52:f5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00002300", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:70:52:f5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:70:52:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00002300", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-snzb-04pr2-0x00001001.json b/tests/data/devices/sonoff-snzb-04pr2-0x00001001.json index ce33844ff..6a287bb06 100644 --- a/tests/data/devices/sonoff-snzb-04pr2-0x00001001.json +++ b/tests/data/devices/sonoff-snzb-04pr2-0x00001001.json @@ -188,161 +188,189 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 42, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 42 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:3c:1f:0d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:3c:1f:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-snzb-05p-0x00001002.json b/tests/data/devices/sonoff-snzb-05p-0x00001002.json index e090d845e..25d23ced3 100644 --- a/tests/data/devices/sonoff-snzb-05p-0x00001002.json +++ b/tests/data/devices/sonoff-snzb-05p-0x00001002.json @@ -212,161 +212,190 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:50:f5:8b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:94:50:f5:8b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:50:f5:8b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:50:f5:8b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:50:f5:8b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 212, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:50:f5:8b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 212 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:50:f5:8b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -58, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:50:f5:8b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -58 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:50:f5:8b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:94:50:f5:8b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.1 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:50:f5:8b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:50:f5:8b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:50:f5:8b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-snzb-06p-0x00001006.json b/tests/data/devices/sonoff-snzb-06p-0x00001006.json index 473b39351..e676d5c5d 100644 --- a/tests/data/devices/sonoff-snzb-06p-0x00001006.json +++ b/tests/data/devices/sonoff-snzb-06p-0x00001006.json @@ -167,211 +167,251 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-1030-presence_detection_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "SonoffPresenceSenorTimeout", - "translation_key": "presence_detection_timeout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 15, - "mode": "box", - "native_max_value": 60, - "native_min_value": 15, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-1030-presence_detection_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "SonoffPresenceSenorTimeout", + "translation_key": "presence_detection_timeout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 60, + "native_min_value": 15, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "SonoffPresenceSenorTimeout", + "available": true, + "state": 15 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-1030-detection_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "SonoffPresenceDetectionSensitivity", - "translation_key": "detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Low", - "enum": "SonoffPresenceDetectionSensitivityEnum", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-1030-detection_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "SonoffPresenceDetectionSensitivity", + "translation_key": "detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SonoffPresenceDetectionSensitivityEnum", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "SonoffPresenceDetectionSensitivity", + "available": true, + "state": "Low" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 240, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 240 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -51, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -51 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-64529-last_illumination", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SonoffPresenceSenorIlluminationStatus", - "translation_key": "last_illumination_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Light", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-64529-last_illumination", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SonoffPresenceSenorIlluminationStatus", + "translation_key": "last_illumination_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SonoffPresenceSenorIlluminationStatus", + "available": true, + "state": "Light" + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dd:23:ca:15", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001006", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dd:23:ca:15-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dd:23:ca:15", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001006", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-swv-0x00001002.json b/tests/data/devices/sonoff-swv-0x00001002.json index a625f265a..511e1b945 100644 --- a/tests/data/devices/sonoff-swv-0x00001002.json +++ b/tests/data/devices/sonoff-swv-0x00001002.json @@ -426,256 +426,305 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Water leak", - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_leak_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "water_leak", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "water_valve_state" + "info_object": { + "fallback_name": "Water leak", + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_leak_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "water_leak", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "water_valve_state" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": "Water supply", - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_supply_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "water_supply", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "water_valve_state" + "info_object": { + "fallback_name": "Water supply", + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_supply_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "water_supply", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "water_valve_state" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 6.3 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 6.3 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1028", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Flow", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volume_flow_rate", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "m\u00b3/h" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1028", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Flow", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volume_flow_rate", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m\u00b3/h" + }, + "state": { + "class_name": "Flow", + "available": true, + "state": 0.0 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": "Water shortage auto-close", - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-auto_close_water_shortage", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "water_shortage_auto_close", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "auto_close_water_shortage", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 30 + "info_object": { + "fallback_name": "Water shortage auto-close", + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-auto_close_water_shortage", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "water_shortage_auto_close", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "auto_close_water_shortage", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 30 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001002", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001002", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-swv-0x00001003.json b/tests/data/devices/sonoff-swv-0x00001003.json index 925cfd334..624ff8f8d 100644 --- a/tests/data/devices/sonoff-swv-0x00001003.json +++ b/tests/data/devices/sonoff-swv-0x00001003.json @@ -191,256 +191,305 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Water leak", - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_leak_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "water_leak", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "water_valve_state" + "info_object": { + "fallback_name": "Water leak", + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_leak_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "water_leak", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "water_valve_state" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": "Water supply", - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_supply_status", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "water_supply", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "water_valve_state" + "info_object": { + "fallback_name": "Water supply", + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-water_supply_status", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "water_supply", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "water_valve_state" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 144, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 144 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 6.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 6.2 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1028", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Flow", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volume_flow_rate", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m\u00b3/h" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-1028", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Flow", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volume_flow_rate", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m\u00b3/h" + }, + "state": { + "class_name": "Flow", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": "Water shortage auto-close", - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-auto_close_water_shortage", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "water_shortage_auto_close", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "auto_close_water_shortage", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 30 + "info_object": { + "fallback_name": "Water shortage auto-close", + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-auto_close_water_shortage", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "water_shortage_auto_close", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "auto_close_water_shortage", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 30 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001003", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:25:a4:7c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:25:a4:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001003", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-trvzb-0x00001201.json b/tests/data/devices/sonoff-trvzb-0x00001201.json index d0597f813..d008d507e 100644 --- a/tests/data/devices/sonoff-trvzb-0x00001201.json +++ b/tests/data/devices/sonoff-trvzb-0x00001201.json @@ -373,668 +373,801 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } }, { - "fallback_name": "Boost mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-boost_mode", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "boost_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "temporary_mode", - "attribute_value": 0 + "info_object": { + "fallback_name": "Boost mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-boost_mode", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "boost_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "temporary_mode", + "attribute_value": 0 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } }, { - "fallback_name": "Timer mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "timer_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "temporary_mode", - "attribute_value": 1 + "info_object": { + "fallback_name": "Timer mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "timer_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "temporary_mode", + "attribute_value": 1 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 18.6, - "outdoor_temperature": null, - "target_temperature": 19.5, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 35.0, - "min_temp": 4.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1950, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 35.0, + "min_temp": 4.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 18.6, + "outdoor_temperature": null, + "target_temperature": 19.5, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1950, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "SonoffThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.0, - "mode": "box", - "native_max_value": 12.7, - "native_min_value": -12.8, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "SonoffThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 12.7, + "native_min_value": -12.8, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "SonoffThermostatLocalTempCalibration", + "available": true, + "state": 1.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.0, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 35.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4.0, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 4.0 + } }, { - "fallback_name": "External temperature sensor value", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_value", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "external_temperature_sensor_value", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 99.9, - "native_min_value": 0.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "External temperature sensor value", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_value", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "external_temperature_sensor_value", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 99.9, + "native_min_value": 0.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Frost protection temperature", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-frost_protection_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "frost_protection_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10.0, - "mode": "auto", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Frost protection temperature", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-frost_protection_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "frost_protection_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 10.0 + } }, { - "fallback_name": "Temperature control accuracy", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temperature_control_accuracy", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_control_accuracy", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": -0.2, - "native_min_value": -1.0, - "native_step": 0.2, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature control accuracy", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temperature_control_accuracy", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_control_accuracy", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": -0.2, + "native_min_value": -1.0, + "native_step": 0.2, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Temporary mode duration", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temporary_mode_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temporary_mode_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1440, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Temporary mode duration", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temporary_mode_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temporary_mode_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1440, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Timer mode target temperature", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode_target_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "timer_mode_target_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Timer mode target temperature", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode_target_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "timer_mode_target_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Valve closing degree", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_closing_degree", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_closing_degree", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Valve closing degree", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_closing_degree", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_closing_degree", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Valve opening degree", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_opening_degree", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_opening_degree", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Valve opening degree", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_opening_degree", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_opening_degree", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "heating", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "heating" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "External temperature sensor", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "external_temperature_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "external_temperature_sensor_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "External temperature sensor", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "external_temperature_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "external_temperature_sensor_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Open window", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-open_window", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "open_window", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "open_window", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Open window", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-open_window", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "open_window", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "open_window", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Adaptive mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-smart_temperature_control", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "adaptive_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "smart_temperature_control", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 2 + "info_object": { + "fallback_name": "Adaptive mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-smart_temperature_control", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "adaptive_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "smart_temperature_control", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 2 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001201", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001201", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-trvzb-0x00001400.json b/tests/data/devices/sonoff-trvzb-0x00001400.json index cd67b43b2..3192c3aa7 100644 --- a/tests/data/devices/sonoff-trvzb-0x00001400.json +++ b/tests/data/devices/sonoff-trvzb-0x00001400.json @@ -421,668 +421,801 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } }, { - "fallback_name": "Boost mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-boost_mode", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "boost_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "temporary_mode", - "attribute_value": 0 + "info_object": { + "fallback_name": "Boost mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-boost_mode", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "boost_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "temporary_mode", + "attribute_value": 0 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } }, { - "fallback_name": "Timer mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "timer_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "temporary_mode", - "attribute_value": 1 + "info_object": { + "fallback_name": "Timer mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "timer_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "temporary_mode", + "attribute_value": 1 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 18.0, - "outdoor_temperature": null, - "target_temperature": 23.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 35.0, - "min_temp": 4.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2300, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 35.0, + "min_temp": 4.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 18.0, + "outdoor_temperature": null, + "target_temperature": 23.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2300, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "SonoffThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "box", - "native_max_value": 12.7, - "native_min_value": -12.8, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "SonoffThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 12.7, + "native_min_value": -12.8, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "SonoffThermostatLocalTempCalibration", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.0, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 35.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4.0, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 4.0 + } }, { - "fallback_name": "External temperature sensor value", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_value", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "external_temperature_sensor_value", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 19.900000000000002, - "mode": "auto", - "native_max_value": 99.9, - "native_min_value": 0.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "External temperature sensor value", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_value", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "external_temperature_sensor_value", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 99.9, + "native_min_value": 0.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 19.900000000000002 + } }, { - "fallback_name": "Frost protection temperature", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-frost_protection_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "frost_protection_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 7.0, - "mode": "auto", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Frost protection temperature", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-frost_protection_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "frost_protection_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 7.0 + } }, { - "fallback_name": "Temperature control accuracy", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temperature_control_accuracy", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_control_accuracy", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -1.0, - "mode": "auto", - "native_max_value": -0.2, - "native_min_value": -1.0, - "native_step": 0.2, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature control accuracy", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temperature_control_accuracy", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_control_accuracy", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": -0.2, + "native_min_value": -1.0, + "native_step": 0.2, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": -1.0 + } }, { - "fallback_name": "Temporary mode duration", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temporary_mode_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temporary_mode_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1440, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Temporary mode duration", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temporary_mode_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temporary_mode_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1440, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Timer mode target temperature", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode_target_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "timer_mode_target_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Timer mode target temperature", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode_target_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "timer_mode_target_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Valve closing degree", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_closing_degree", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_closing_degree", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Valve closing degree", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_closing_degree", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_closing_degree", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 100 + } }, { - "fallback_name": "Valve opening degree", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_opening_degree", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_opening_degree", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Valve opening degree", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_opening_degree", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_opening_degree", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 100 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 60, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 60 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 87.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 87.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "External temperature sensor", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "external_temperature_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "external_temperature_sensor_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "External temperature sensor", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "external_temperature_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "external_temperature_sensor_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Open window", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-open_window", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "open_window", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "open_window", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Open window", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-open_window", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "open_window", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "open_window", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Adaptive mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-smart_temperature_control", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "adaptive_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "smart_temperature_control", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 2 + "info_object": { + "fallback_name": "Adaptive mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-smart_temperature_control", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "adaptive_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "smart_temperature_control", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 2 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001400", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001400", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-trvzb-0x00001401.json b/tests/data/devices/sonoff-trvzb-0x00001401.json index 27c4130cf..ad8e1f688 100644 --- a/tests/data/devices/sonoff-trvzb-0x00001401.json +++ b/tests/data/devices/sonoff-trvzb-0x00001401.json @@ -415,668 +415,801 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } }, { - "fallback_name": "Boost mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-boost_mode", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "boost_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "temporary_mode", - "attribute_value": 0 + "info_object": { + "fallback_name": "Boost mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-boost_mode", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "boost_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "temporary_mode", + "attribute_value": 0 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } }, { - "fallback_name": "Timer mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "timer_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "temporary_mode", - "attribute_value": 1 + "info_object": { + "fallback_name": "Timer mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "timer_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "temporary_mode", + "attribute_value": 1 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 32.4, - "outdoor_temperature": null, - "target_temperature": 15.5, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 35.0, - "min_temp": 4.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": 2600, - "occupied_heating_setpoint": 1550, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 35.0, + "min_temp": 4.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 32.4, + "outdoor_temperature": null, + "target_temperature": 15.5, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": 2600, + "occupied_heating_setpoint": 1550, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "SonoffThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 12.600000000000001, - "mode": "box", - "native_max_value": 12.7, - "native_min_value": -12.8, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "SonoffThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 12.7, + "native_min_value": -12.8, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "SonoffThermostatLocalTempCalibration", + "available": true, + "state": 12.600000000000001 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.0, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 35.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4.0, - "mode": "box", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 4.0 + } }, { - "fallback_name": "External temperature sensor value", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_value", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "external_temperature_sensor_value", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 34.7, - "mode": "auto", - "native_max_value": 99.9, - "native_min_value": 0.0, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "External temperature sensor value", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_value", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "external_temperature_sensor_value", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 99.9, + "native_min_value": 0.0, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 34.7 + } }, { - "fallback_name": "Frost protection temperature", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-frost_protection_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "frost_protection_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 7.0, - "mode": "auto", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Frost protection temperature", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-frost_protection_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "frost_protection_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 7.0 + } }, { - "fallback_name": "Temperature control accuracy", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temperature_control_accuracy", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_control_accuracy", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -1.0, - "mode": "auto", - "native_max_value": -0.2, - "native_min_value": -1.0, - "native_step": 0.2, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature control accuracy", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temperature_control_accuracy", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_control_accuracy", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": -0.2, + "native_min_value": -1.0, + "native_step": 0.2, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": -1.0 + } }, { - "fallback_name": "Temporary mode duration", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temporary_mode_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temporary_mode_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1440, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Temporary mode duration", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-temporary_mode_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temporary_mode_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1440, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Timer mode target temperature", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode_target_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "timer_mode_target_temperature", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 35.0, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Timer mode target temperature", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-timer_mode_target_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "timer_mode_target_temperature", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35.0, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Valve closing degree", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_closing_degree", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_closing_degree", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Valve closing degree", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_closing_degree", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_closing_degree", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 100 + } }, { - "fallback_name": "Valve opening degree", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_opening_degree", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_opening_degree", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 100.0, - "native_min_value": 0.0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Valve opening degree", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-valve_opening_degree", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_opening_degree", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100.0, + "native_min_value": 0.0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 108, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 108 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -73, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -73 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "External temperature sensor", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "external_temperature_sensor", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "external_temperature_sensor_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "External temperature sensor", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-external_temperature_sensor_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "external_temperature_sensor", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "external_temperature_sensor_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Open window", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-open_window", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "open_window", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "open_window", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Open window", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-open_window", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "open_window", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "open_window", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Adaptive mode", - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-smart_temperature_control", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "adaptive_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "smart_temperature_control", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 2 + "info_object": { + "fallback_name": "Adaptive mode", + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-smart_temperature_control", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "adaptive_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "smart_temperature_control", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 2 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001401", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4d:04:9a:8f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4d:04:9a:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001401", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-zbmicro-0x00001005.json b/tests/data/devices/sonoff-zbmicro-0x00001005.json index 6e2dff590..024eca25c 100644 --- a/tests/data/devices/sonoff-zbmicro-0x00001005.json +++ b/tests/data/devices/sonoff-zbmicro-0x00001005.json @@ -176,160 +176,190 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:65:a3:ff:fe:54:87:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "8c:65:a3:ff:fe:54:87:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:65:a3:ff:fe:54:87:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "8c:65:a3:ff:fe:54:87:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:65:a3:ff:fe:54:87:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "8c:65:a3:ff:fe:54:87:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:65:a3:ff:fe:54:87:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "8c:65:a3:ff:fe:54:87:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "8c:65:a3:ff:fe:54:87:a0-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "8c:65:a3:ff:fe:54:87:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "8c:65:a3:ff:fe:54:87:a0-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "8c:65:a3:ff:fe:54:87:a0", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "8c:65:a3:ff:fe:54:87:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001005", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "8c:65:a3:ff:fe:54:87:a0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "8c:65:a3:ff:fe:54:87:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001005", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-zbminil2-0x0000100e.json b/tests/data/devices/sonoff-zbminil2-0x0000100e.json index 6848bc64f..db32f87ca 100644 --- a/tests/data/devices/sonoff-zbminil2-0x0000100e.json +++ b/tests/data/devices/sonoff-zbminil2-0x0000100e.json @@ -184,190 +184,223 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Toggle", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Toggle" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 168, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 168 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -58, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -58 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:86:60:40-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:86:60:40", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000100e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:86:60:40-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:86:60:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000100e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sonoff-zbminir2-0x00001004.json b/tests/data/devices/sonoff-zbminir2-0x00001004.json index 2a0ba00ff..b5c4b9dc9 100644 --- a/tests/data/devices/sonoff-zbminir2-0x00001004.json +++ b/tests/data/devices/sonoff-zbminir2-0x00001004.json @@ -286,293 +286,348 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } }, { - "fallback_name": "External trigger mode", - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-external_trigger_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "external_trigger_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Edge trigger", - "enum": "SonoffExternalSwitchTriggerType", - "options": [ - "Edge trigger", - "Pulse trigger", - "Normally off follow trigger", - "Normally on follow trigger" - ] + "info_object": { + "fallback_name": "External trigger mode", + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-external_trigger_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "external_trigger_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SonoffExternalSwitchTriggerType", + "options": [ + "Edge trigger", + "Pulse trigger", + "Normally off follow trigger", + "Normally on follow trigger" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Edge trigger" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 43, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 43 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": "Detach relay", - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-detach_relay", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "detach_relay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "detach_relay", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Detach relay", + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-detach_relay", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "detach_relay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "detach_relay", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Network LED", - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-network_led", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "network_led", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "network_led", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Network LED", + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-network_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "network_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "network_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Turbo mode", - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-turbo_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "turbo_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "turbo_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 9, - "on_value": 20 + "info_object": { + "fallback_name": "Turbo mode", + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-turbo_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "turbo_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "turbo_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 9, + "on_value": 20 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00001004", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00001004", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sunricher-hk-dim-0x00000036.json b/tests/data/devices/sunricher-hk-dim-0x00000036.json index 252ac1cdb..62ceb22fb 100644 --- a/tests/data/devices/sunricher-hk-dim-0x00000036.json +++ b/tests/data/devices/sunricher-hk-dim-0x00000036.json @@ -662,378 +662,456 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 70, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 70, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 70, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 70 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 115, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 115 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-2-1030-pir_o_to_u_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", - "translation_key": "pir_o_to_u_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 150, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-2-1030-pir_o_to_u_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", + "translation_key": "pir_o_to_u_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "PIROccupiedToUnoccupiedDelayConfigurationEntity", + "available": true, + "state": 150 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-2-1030-pir_u_to_o_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "PIRUnoccupiedToOccupiedDelayConfigurationEntity", - "translation_key": "pir_u_to_o_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 150, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-2-1030-pir_u_to_o_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "PIRUnoccupiedToOccupiedDelayConfigurationEntity", + "translation_key": "pir_u_to_o_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "PIRUnoccupiedToOccupiedDelayConfigurationEntity", + "available": true, + "state": 150 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 232, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 232 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -53, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -53 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-3-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 393, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-3-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 393 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000036", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000036", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sunricher-hk-ln-dim-a-0x00000039.json b/tests/data/devices/sunricher-hk-ln-dim-a-0x00000039.json index 1cb45767d..fb6c6a70c 100644 --- a/tests/data/devices/sunricher-hk-ln-dim-a-0x00000039.json +++ b/tests/data/devices/sunricher-hk-ln-dim-a-0x00000039.json @@ -257,257 +257,310 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 184, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 184, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 1 + } }, { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000039", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "b4:35:22:ff:fe:6a:5e:6a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:35:22:ff:fe:6a:5e:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000039", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/sunricher-on-off-2ch-0x00000004.json b/tests/data/devices/sunricher-on-off-2ch-0x00000004.json index c88845449..14d33934f 100644 --- a/tests/data/devices/sunricher-on-off-2ch-0x00000004.json +++ b/tests/data/devices/sunricher-on-off-2ch-0x00000004.json @@ -641,387 +641,465 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-2-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-2-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 164, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 164 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -59, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -59 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 3.665395833333333, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 3.665395833333333, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 229.2, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 229.2, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:6b:31:c6", - "endpoint_id": 11, - "available": true, - "group_id": null, - "installed_version": "0x00000004", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:6b:31:c6-11-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:6b:31:c6", + "endpoint_id": 11, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000004", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/texasinstruments-ti-router.json b/tests/data/devices/texasinstruments-ti-router.json index a9ab56bd1..0990672c7 100644 --- a/tests/data/devices/texasinstruments-ti-router.json +++ b/tests/data/devices/texasinstruments-ti-router.json @@ -138,105 +138,125 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:21:b4:96:29-8-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:21:b4:96:29", - "endpoint_id": 8, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:21:b4:96:29-8-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:21:b4:96:29", + "endpoint_id": 8, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:21:b4:96:29-8-0-transmit_power", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "TiRouterTransmitPower", - "translation_key": "transmit_power", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:21:b4:96:29", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": 9, - "mode": "auto", - "native_max_value": 20, - "native_min_value": -20, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:21:b4:96:29-8-0-transmit_power", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "TiRouterTransmitPower", + "translation_key": "transmit_power", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:21:b4:96:29", + "endpoint_id": 8, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 20, + "native_min_value": -20, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "TiRouterTransmitPower", + "available": true, + "state": 9 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:21:b4:96:29-8-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:21:b4:96:29", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:21:b4:96:29-8-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:21:b4:96:29", + "endpoint_id": 8, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:21:b4:96:29-8-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:21:b4:96:29", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:21:b4:96:29-8-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:21:b4:96:29", + "endpoint_id": 8, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/the-home-depot-ecosmart-zbt-a19-cct-bulb-0x21036500.json b/tests/data/devices/the-home-depot-ecosmart-zbt-a19-cct-bulb-0x21036500.json index 44ba9d397..e0eb5e47b 100644 --- a/tests/data/devices/the-home-depot-ecosmart-zbt-a19-cct-bulb-0x21036500.json +++ b/tests/data/devices/the-home-depot-ecosmart-zbt-a19-cct-bulb-0x21036500.json @@ -352,284 +352,342 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": 370, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 370 + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 370 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": 370, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 370, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 370, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:32:46:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x21036500", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:32:46:39-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:32:46:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x21036500", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rap0149bz-0x0000000e.json b/tests/data/devices/third-reality-inc-3rap0149bz-0x0000000e.json index cad273c77..de064bd93 100644 --- a/tests/data/devices/third-reality-inc-3rap0149bz-0x0000000e.json +++ b/tests/data/devices/third-reality-inc-3rap0149bz-0x0000000e.json @@ -221,183 +221,217 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.8 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-1027", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Pressure", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pressure", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1005, - "suggested_display_precision": 0, - "unit": "hPa" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-1027", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Pressure", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pressure", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "hPa" + }, + "state": { + "class_name": "Pressure", + "available": true, + "state": 1005 + } }, { - "fallback_name": "", - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-12-analog_input", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AnalogInputSensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 27.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": "", + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-12-analog_input", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AnalogInputSensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "AnalogInputSensor", + "available": true, + "state": 27.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:2f:02:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000000e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:2f:02:92-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:2f:02:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000000e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rds17bz.json b/tests/data/devices/third-reality-inc-3rds17bz.json index b37fea717..df5ddb733 100644 --- a/tests/data/devices/third-reality-inc-3rds17bz.json +++ b/tests/data/devices/third-reality-inc-3rds17bz.json @@ -180,162 +180,191 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Open delay time", - "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-open_delay_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "open_delay_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 3600, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Open delay time", + "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-open_delay_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "open_delay_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 3600, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 75.0, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 75.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.9 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:b2:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rms16bz-0x0000004f.json b/tests/data/devices/third-reality-inc-3rms16bz-0x0000004f.json index 7a464f7be..145902625 100644 --- a/tests/data/devices/third-reality-inc-3rms16bz-0x0000004f.json +++ b/tests/data/devices/third-reality-inc-3rms16bz-0x0000004f.json @@ -206,162 +206,191 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Detection interval", - "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-detection_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30, - "mode": "auto", - "native_max_value": 3600, - "native_min_value": 5, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Detection interval", + "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-detection_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 3600, + "native_min_value": 5, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 30 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 50.5, + "battery_voltage": 2.6 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 50.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.6 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:ba:8c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:ba:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json b/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json index 6f2394bd4..37f1b88fc 100644 --- a/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json +++ b/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json @@ -312,259 +312,309 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": "Allow remote binding", - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-allow_bind", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "allow_remote_binding", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "allow_bind", - "attribute_value": 1 + "info_object": { + "fallback_name": "Allow remote binding", + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-allow_bind", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "allow_remote_binding", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "allow_bind", + "attribute_value": 1 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 33, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 33, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 58.0, + "battery_voltage": 5.3 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 58.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 5.3 + ] }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": "Enable PIR remote", - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-enable_disable_pir_remote", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "enable_pir_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": true, - "attribute_name": "enable_disable_pir_remote", - "invert_attribute_name": null, - "force_inverted": true, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Enable PIR remote", + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-enable_disable_pir_remote", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "enable_pir_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "enable_disable_pir_remote", + "invert_attribute_name": null, + "force_inverted": true, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ea:05:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ea:05:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsb22bz.json b/tests/data/devices/third-reality-inc-3rsb22bz.json index c3efa4f84..736c34489 100644 --- a/tests/data/devices/third-reality-inc-3rsb22bz.json +++ b/tests/data/devices/third-reality-inc-3rsb22bz.json @@ -158,139 +158,163 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e3:74:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e3:74:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e3:74:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e3:74:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e3:74:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 67.5, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "28:2c:02:bf:ff:e3:74:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 67.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.9 + ] } ], "switch": [ { - "fallback_name": "Disable double click", - "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-disable_double_click", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "disable_double_click", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e3:74:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "disable_double_click", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Disable double click", + "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-disable_double_click", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "disable_double_click", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e3:74:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "disable_double_click", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e3:74:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e3:74:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsm0147z-0x0000001f.json b/tests/data/devices/third-reality-inc-3rsm0147z-0x0000001f.json index bb3c7c2e1..d19bddc09 100644 --- a/tests/data/devices/third-reality-inc-3rsm0147z-0x0000001f.json +++ b/tests/data/devices/third-reality-inc-3rsm0147z-0x0000001f.json @@ -179,210 +179,249 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Humidity offset", - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-humidity_offset", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_offset", - "translation_placeholders": null, - "device_class": "humidity", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10000, - "native_min_value": -10000, - "native_step": 0.1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Humidity offset", + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-humidity_offset", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_offset", + "translation_placeholders": null, + "device_class": "humidity", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10000, + "native_min_value": -10000, + "native_step": 0.1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature offset", - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-temperature_offset_celsius", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_offset", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10000, - "native_min_value": -10000, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature offset", + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-temperature_offset_celsius", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_offset", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10000, + "native_min_value": -10000, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 1.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 1.5 + ] }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.3, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.3 + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 31.21, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 31.21 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:ef:2b:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ef:2b:82-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:ef:2b:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsnl02043z-0x0000003c.json b/tests/data/devices/third-reality-inc-3rsnl02043z-0x0000003c.json index b2ad1025a..5ad098a02 100644 --- a/tests/data/devices/third-reality-inc-3rsnl02043z-0x0000003c.json +++ b/tests/data/devices/third-reality-inc-3rsnl02043z-0x0000003c.json @@ -342,336 +342,405 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.30699626153963533, - 0.6139925230792707 - ], - "color_temp": 65535, - "effect_list": [ - "off", - "colorloop" - ], - "effect": "off", - "supported_features": 44, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 65279 + "info_object": { + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off", + "colorloop" + ], + "supported_features": 44, + "min_mireds": 153, + "max_mireds": 65279 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.30699626153963533, + 0.6139925230792707 + ], + "color_temp": 65535, + "effect_list": [ + "off", + "colorloop" + ], + "effect": "off", + "supported_features": 44, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 65279, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65279, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 10 + } }, { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 472, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 472 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000003c", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "b4:0e:cf:d3:a1:6b:00:00-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "b4:0e:cf:d3:a1:6b:00:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000003c", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsp019bz-0x1001301e.json b/tests/data/devices/third-reality-inc-3rsp019bz-0x1001301e.json index e595d00ff..784e6eea6 100644 --- a/tests/data/devices/third-reality-inc-3rsp019bz-0x1001301e.json +++ b/tests/data/devices/third-reality-inc-3rsp019bz-0x1001301e.json @@ -315,160 +315,190 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:09:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:09:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:09:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:09:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:09:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:09:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:09:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:09:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:09:0d-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:09:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:09:0d-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "28:2c:02:bf:ff:eb:09:0d", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:09:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x1001301e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:09:0d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:09:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x1001301e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json b/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json index b925f9fbe..781d9bce5 100644 --- a/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json +++ b/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json @@ -399,380 +399,440 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } }, { - "fallback_name": "Reset summation delivered", - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-reset_summation_delivered", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "reset_summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "reset_summation_delivered", - "attribute_value": 1 + "info_object": { + "fallback_name": "Reset summation delivered", + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-reset_summation_delivered", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "reset_summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "reset_summation_delivered", + "attribute_value": 1 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } } ], "number": [ { - "fallback_name": "Turn on delay", - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-off_to_on_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "turn_on_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Turn on delay", + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-off_to_on_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "turn_on_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Turn off delay", - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-on_to_off_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "turn_off_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Turn off delay", + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-on_to_off_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "turn_off_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.0 + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 60.0, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 0 + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 124.5 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 124.5, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x10013058", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x10013058", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json b/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json index 4befb09cb..53d751658 100644 --- a/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json +++ b/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json @@ -570,434 +570,509 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } }, { - "fallback_name": "Reset summation delivered", - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-reset_summation_delivered", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "reset_summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "reset_summation_delivered", - "attribute_value": 1 + "info_object": { + "fallback_name": "Reset summation delivered", + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-reset_summation_delivered", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "reset_summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "reset_summation_delivered", + "attribute_value": 1 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } } ], "number": [ { - "fallback_name": "Turn on delay", - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-off_to_on_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "turn_on_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Turn on delay", + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-off_to_on_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "turn_on_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Turn off delay", - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-on_to_off_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "turn_off_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Turn off delay", + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-on_to_off_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "turn_off_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 188, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 188 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -53, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -53 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.968, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.968, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 60.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 60.0, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 126.1, + "measurement_type": "ACTIVE_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 126.1, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:32:67:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000002f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000002f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rss007z.json b/tests/data/devices/third-reality-inc-3rss007z.json index 990ddaede..f6156da73 100644 --- a/tests/data/devices/third-reality-inc-3rss007z.json +++ b/tests/data/devices/third-reality-inc-3rss007z.json @@ -138,130 +138,155 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e0:16:01-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e0:16:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e0:16:01-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e0:16:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e0:16:01-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e0:16:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e0:16:01-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e0:16:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e0:16:01-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e0:16:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e0:16:01-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e0:16:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e0:16:01-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e0:16:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e0:16:01-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "28:2c:02:bf:ff:e0:16:01", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e0:16:01-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateServerEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e0:16:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e0:16:01-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateServerEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e0:16:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateServerEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rss009z-0x0000001d.json b/tests/data/devices/third-reality-inc-3rss009z-0x0000001d.json index 2a8fcc64f..2bc721050 100644 --- a/tests/data/devices/third-reality-inc-3rss009z-0x0000001d.json +++ b/tests/data/devices/third-reality-inc-3rss009z-0x0000001d.json @@ -184,187 +184,221 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Turn on delay", - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-off_to_on_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "turn_on_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Turn on delay", + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-off_to_on_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "turn_on_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Turn off delay", - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-on_to_off_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "turn_off_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Turn off delay", + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-on_to_off_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "turn_off_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 56.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 56.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e9:77:95-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e9:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rths24bz-0x00000015.json b/tests/data/devices/third-reality-inc-3rths24bz-0x00000015.json index 3a100a226..9763fddb5 100644 --- a/tests/data/devices/third-reality-inc-3rths24bz-0x00000015.json +++ b/tests/data/devices/third-reality-inc-3rths24bz-0x00000015.json @@ -179,210 +179,249 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Humidity offset", - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-humidity_offset", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_offset", - "translation_placeholders": null, - "device_class": "humidity", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10000, - "native_min_value": -10000, - "native_step": 0.1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Humidity offset", + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-humidity_offset", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_offset", + "translation_placeholders": null, + "device_class": "humidity", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10000, + "native_min_value": -10000, + "native_step": 0.1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature offset", - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-temperature_offset_celsius", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_offset", - "translation_placeholders": null, - "device_class": "temperature_delta", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10000, - "native_min_value": -10000, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature offset", + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-temperature_offset_celsius", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_offset", + "translation_placeholders": null, + "device_class": "temperature_delta", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10000, + "native_min_value": -10000, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 42.0, + "battery_voltage": 2.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 42.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.5 + ] }, { - "fallback_name": null, - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 26.4, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 26.4 + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 56.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 56.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:cb:f6:22:83:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000015", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:cb:f6:22:83:f0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:cb:f6:22:83:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000015", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rvs01031z-0x00000028.json b/tests/data/devices/third-reality-inc-3rvs01031z-0x00000028.json index 8852e50a5..16297c8ca 100644 --- a/tests/data/devices/third-reality-inc-3rvs01031z-0x00000028.json +++ b/tests/data/devices/third-reality-inc-3rvs01031z-0x00000028.json @@ -212,134 +212,158 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 83.5, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 83.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.1 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000028", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:eb:ae:fe-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:eb:ae:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000028", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rws18bz-0x00000038.json b/tests/data/devices/third-reality-inc-3rws18bz-0x00000038.json index a683584c6..aece4a5ac 100644 --- a/tests/data/devices/third-reality-inc-3rws18bz-0x00000038.json +++ b/tests/data/devices/third-reality-inc-3rws18bz-0x00000038.json @@ -230,213 +230,252 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Siren time", - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-siren_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "siren_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Siren time", + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-siren_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "siren_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 52.0, + "battery_voltage": 2.6 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 52.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.6 + ] } ], "switch": [ { - "fallback_name": "Enable siren", - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-enable_siren", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "enable_siren", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "enable_siren", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Enable siren", + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-enable_siren", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "enable_siren", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "enable_siren", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "28:2c:02:bf:ff:e7:c9:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000038", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000038", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/third-reality-inc-3rws18bz-0x00000049.json b/tests/data/devices/third-reality-inc-3rws18bz-0x00000049.json index 85baee232..bfec202f7 100644 --- a/tests/data/devices/third-reality-inc-3rws18bz-0x00000049.json +++ b/tests/data/devices/third-reality-inc-3rws18bz-0x00000049.json @@ -243,213 +243,252 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Siren time", - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-siren_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "siren_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Siren time", + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-siren_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "siren_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 60, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 60 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 78.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 78.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] } ], "switch": [ { - "fallback_name": "Enable siren", - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-enable_siren", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "enable_siren", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "enable_siren", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Enable siren", + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-enable_siren", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "enable_siren", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "enable_siren", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:84:87:99-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:84:87:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/trust-international-b-v-zll-colortempera.json b/tests/data/devices/trust-international-b-v-zll-colortempera.json index d48ba0b25..246ba7090 100644 --- a/tests/data/devices/trust-international-b-v-zll-colortempera.json +++ b/tests/data/devices/trust-international-b-v-zll-colortempera.json @@ -373,200 +373,243 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 3, - "xy_color": null, - "color_temp": 370, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 454 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 454 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 3, + "xy_color": null, + "color_temp": 370, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 10 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 164, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 164 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -59, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -59 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:27:74:4f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:12:27:74:4f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tubeszb-tubeszb-router.json b/tests/data/devices/tubeszb-tubeszb-router.json index 88cf81258..37058ba8f 100644 --- a/tests/data/devices/tubeszb-tubeszb-router.json +++ b/tests/data/devices/tubeszb-tubeszb-router.json @@ -168,77 +168,92 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:22:98:38:6d-8-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:22:98:38:6d", - "endpoint_id": 8, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:22:98:38:6d-8-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:22:98:38:6d", + "endpoint_id": 8, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:12:4b:00:22:98:38:6d-8-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:22:98:38:6d", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:22:98:38:6d-8-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:22:98:38:6d", + "endpoint_id": 8, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:12:4b:00:22:98:38:6d-8-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:12:4b:00:22:98:38:6d", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:12:4b:00:22:98:38:6d-8-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:12:4b:00:22:98:38:6d", + "endpoint_id": 8, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/tuyatec-gqhxixyk-rh3052.json b/tests/data/devices/tuyatec-gqhxixyk-rh3052.json index 687d9addb..c53c1bc53 100644 --- a/tests/data/devices/tuyatec-gqhxixyk-rh3052.json +++ b/tests/data/devices/tuyatec-gqhxixyk-rh3052.json @@ -184,153 +184,182 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "60:a4:23:ff:fe:37:11:33-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "60:a4:23:ff:fe:37:11:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "60:a4:23:ff:fe:37:11:33-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "60:a4:23:ff:fe:37:11:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "60:a4:23:ff:fe:37:11:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "60:a4:23:ff:fe:37:11:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "60:a4:23:ff:fe:37:11:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "60:a4:23:ff:fe:37:11:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "60:a4:23:ff:fe:37:11:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "60:a4:23:ff:fe:37:11:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "60:a4:23:ff:fe:37:11:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "60:a4:23:ff:fe:37:11:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "60:a4:23:ff:fe:37:11:33-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "60:a4:23:ff:fe:37:11:33-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "60:a4:23:ff:fe:37:11:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "60:a4:23:ff:fe:37:11:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "60:a4:23:ff:fe:37:11:33-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "60:a4:23:ff:fe:37:11:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25.89, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "60:a4:23:ff:fe:37:11:33-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "60:a4:23:ff:fe:37:11:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 25.89 + } }, { - "fallback_name": null, - "unique_id": "60:a4:23:ff:fe:37:11:33-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "60:a4:23:ff:fe:37:11:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 43.04, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "60:a4:23:ff:fe:37:11:33-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "60:a4:23:ff:fe:37:11:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 43.04 + } } ] }, diff --git a/tests/data/devices/tuyatec-r9hgssol-rh3001.json b/tests/data/devices/tuyatec-r9hgssol-rh3001.json index 7466af9ea..fff5b87e7 100644 --- a/tests/data/devices/tuyatec-r9hgssol-rh3001.json +++ b/tests/data/devices/tuyatec-r9hgssol-rh3001.json @@ -192,131 +192,155 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:f1:b5:18-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "68:0a:e2:ff:fe:f1:b5:18", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ] }, diff --git a/tests/data/devices/tuyatec-rkqiqvcs-rh3001.json b/tests/data/devices/tuyatec-rkqiqvcs-rh3001.json index ce1b49200..a156b728b 100644 --- a/tests/data/devices/tuyatec-rkqiqvcs-rh3001.json +++ b/tests/data/devices/tuyatec-rkqiqvcs-rh3001.json @@ -198,131 +198,155 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:c9:02:65-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 49.0, + "battery_voltage": 2.6 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ec:1b:bd:ff:fe:c9:02:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 49.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.6 + ] } ] }, diff --git a/tests/data/devices/tuyatec-yg5dcbfu-rh3052.json b/tests/data/devices/tuyatec-yg5dcbfu-rh3052.json index 68d1095fb..afead449d 100644 --- a/tests/data/devices/tuyatec-yg5dcbfu-rh3052.json +++ b/tests/data/devices/tuyatec-yg5dcbfu-rh3052.json @@ -196,153 +196,182 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:3b:04:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:3b:04:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:3b:04:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:3b:04:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:3b:04:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:3b:04:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:3b:04:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 76.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "14:b4:57:ff:fe:3b:04:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 76.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:3b:04:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20.3, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:3b:04:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.3 + } }, { - "fallback_name": null, - "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "14:b4:57:ff:fe:3b:04:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 62.85, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:3b:04:ec-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "14:b4:57:ff:fe:3b:04:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 62.85 + } } ] }, diff --git a/tests/data/devices/tyst11-czk78ptr-zk78ptr.json b/tests/data/devices/tyst11-czk78ptr-zk78ptr.json index 7db04a3cb..a98833a2e 100644 --- a/tests/data/devices/tyst11-czk78ptr-zk78ptr.json +++ b/tests/data/devices/tyst11-czk78ptr-zk78ptr.json @@ -226,308 +226,373 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 17.6, - "outdoor_temperature": null, - "target_temperature": 13.5, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1350, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": 1650 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 17.6, + "outdoor_temperature": null, + "target_temperature": 13.5, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1350, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": 1650 + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "heating", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "heating" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:fd:87:35", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:fd:87:35-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:fd:87:35", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tyst11-i5j6ifxj-5j6ifxj-0x00000049.json b/tests/data/devices/tyst11-i5j6ifxj-5j6ifxj-0x00000049.json index a5be96bb7..efc3bb185 100644 --- a/tests/data/devices/tyst11-i5j6ifxj-5j6ifxj-0x00000049.json +++ b/tests/data/devices/tyst11-i5j6ifxj-5j6ifxj-0x00000049.json @@ -171,131 +171,156 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:30:2e:51-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:30:2e:51", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tyzb01-1xktopx6-ts0041a.json b/tests/data/devices/tyzb01-1xktopx6-ts0041a.json index 46cd1b741..7089efd40 100644 --- a/tests/data/devices/tyzb01-1xktopx6-ts0041a.json +++ b/tests/data/devices/tyzb01-1xktopx6-ts0041a.json @@ -159,133 +159,157 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:76:87:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 204, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:76:87:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 204 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:76:87:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:76:87:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:76:87:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:8d:76:87:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:76:87:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8d:76:87:d5", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:76:87:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:76:87:d5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:76:87:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tyzb01-8scntis1-ts0216.json b/tests/data/devices/tyzb01-8scntis1-ts0216.json index 9656de6c9..dffdddeeb 100644 --- a/tests/data/devices/tyzb01-8scntis1-ts0216.json +++ b/tests/data/devices/tyzb01-8scntis1-ts0216.json @@ -233,278 +233,328 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-SirenLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultSirenLevelSelectEntity", - "translation_key": "default_siren_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "SirenLevel", - "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-SirenLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultSirenLevelSelectEntity", + "translation_key": "default_siren_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SirenLevel", + "options": [ + "Low level sound", + "Medium level sound", + "High level sound", + "Very high level sound" + ] + }, + "state": { + "class_name": "DefaultSirenLevelSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-Strobe", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeSelectEntity", - "translation_key": "default_strobe", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "Strobe", - "options": [ - "No Strobe", - "Strobe" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-Strobe", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeSelectEntity", + "translation_key": "default_strobe", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "Strobe", + "options": [ + "No Strobe", + "Strobe" + ] + }, + "state": { + "class_name": "DefaultStrobeSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-StrobeLevel", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultStrobeLevelSelectEntity", - "translation_key": "default_strobe_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "StrobeLevel", - "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-StrobeLevel", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultStrobeLevelSelectEntity", + "translation_key": "default_strobe_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StrobeLevel", + "options": [ + "Low level strobe", + "Medium level strobe", + "High level strobe", + "Very high level strobe" + ] + }, + "state": { + "class_name": "DefaultStrobeLevelSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-WarningMode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "DefaultToneSelectEntity", - "translation_key": "default_siren_tone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "WarningMode", - "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-1282-WarningMode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "DefaultToneSelectEntity", + "translation_key": "default_siren_tone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "WarningMode", + "options": [ + "Stop", + "Burglar", + "Fire", + "Emergency", + "Police Panic", + "Fire Panic", + "Emergency Panic" + ] + }, + "state": { + "class_name": "DefaultToneSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "siren": [ { - "fallback_name": "Siren", - "unique_id": "ab:cd:ef:12:52:26:72:dc-1", - "migrate_unique_ids": [], - "platform": "siren", - "class_name": "AdvancedSiren", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "available_tones": { - "1": "Burglar", - "2": "Fire", - "3": "Emergency", - "4": "Police Panic", - "5": "Fire Panic", - "6": "Emergency Panic" + "info_object": { + "fallback_name": "Siren", + "unique_id": "ab:cd:ef:12:52:26:72:dc-1", + "migrate_unique_ids": [], + "platform": "siren", + "class_name": "AdvancedSiren", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "available_tones": { + "1": "Burglar", + "2": "Fire", + "3": "Emergency", + "4": "Police Panic", + "5": "Fire Panic", + "6": "Emergency Panic" + }, + "supported_features": 31 }, - "supported_features": 31 + "state": { + "class_name": "AdvancedSiren", + "available": true, + "state": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:26:72:dc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:26:72:dc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:26:72:dc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:26:72:dc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tyzb01-mtunwanm-ts011f.json b/tests/data/devices/tyzb01-mtunwanm-ts011f.json index 25559f103..1a8033aaf 100644 --- a/tests/data/devices/tyzb01-mtunwanm-ts011f.json +++ b/tests/data/devices/tyzb01-mtunwanm-ts011f.json @@ -170,103 +170,123 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:72:86:1c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:72:86:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:72:86:1c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:72:86:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:72:86:1c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:72:86:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:72:86:1c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:72:86:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:72:86:1c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:72:86:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:72:86:1c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:34:72:86:1c", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:72:86:1c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:72:86:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:72:86:1c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:72:86:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tyzb01-o63ssaah-ts0207-0x00000043.json b/tests/data/devices/tyzb01-o63ssaah-ts0207-0x00000043.json index 9678a8536..92cca64c8 100644 --- a/tests/data/devices/tyzb01-o63ssaah-ts0207-0x00000043.json +++ b/tests/data/devices/tyzb01-o63ssaah-ts0207-0x00000043.json @@ -217,161 +217,190 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:87:d5:3e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:87:d5:3e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tyzb01-qm6djpta-ts0215-0x00000046.json b/tests/data/devices/tyzb01-qm6djpta-ts0215-0x00000046.json index 96e73c1a4..57b003069 100644 --- a/tests/data/devices/tyzb01-qm6djpta-ts0215-0x00000046.json +++ b/tests/data/devices/tyzb01-qm6djpta-ts0215-0x00000046.json @@ -218,187 +218,221 @@ "zha_lib_entities": { "alarm_control_panel": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-1281", - "migrate_unique_ids": [], - "platform": "alarm_control_panel", - "class_name": "AlarmControlPanel", - "translation_key": "alarm_control_panel", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "alarm_state": "disarmed", - "code_arm_required": false, - "code_format": "number", - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-1281", + "migrate_unique_ids": [], + "platform": "alarm_control_panel", + "class_name": "AlarmControlPanel", + "translation_key": "alarm_control_panel", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "code_arm_required": false, + "code_format": "number", + "supported_features": 15 + }, + "state": { + "class_name": "AlarmControlPanel", + "available": true, + "state": "disarmed" + } } ], "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:4e:ff:d3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:4e:ff:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tyzb01-rifa0wlb-ts0011-0x00000041.json b/tests/data/devices/tyzb01-rifa0wlb-ts0011-0x00000041.json index 3b664e916..521ddd37a 100644 --- a/tests/data/devices/tyzb01-rifa0wlb-ts0011-0x00000041.json +++ b/tests/data/devices/tyzb01-rifa0wlb-ts0011-0x00000041.json @@ -201,119 +201,147 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:d0:ef:d2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:d0:ef:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tyzb01-vkwryfdr-ts0115.json b/tests/data/devices/tyzb01-vkwryfdr-ts0115.json index 95c8a0798..c5e2f207e 100644 --- a/tests/data/devices/tyzb01-vkwryfdr-ts0115.json +++ b/tests/data/devices/tyzb01-vkwryfdr-ts0115.json @@ -345,187 +345,227 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 4, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-7-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 7, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-7-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 7, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ec:1b:bd:ff:fe:2d:af:ac-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ec:1b:bd:ff:fe:2d:af:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tyzb01-zanh6v1o-ts0121.json b/tests/data/devices/tyzb01-zanh6v1o-ts0121.json index 7cd1c5c87..af8e2fdc7 100644 --- a/tests/data/devices/tyzb01-zanh6v1o-ts0121.json +++ b/tests/data/devices/tyzb01-zanh6v1o-ts0121.json @@ -401,247 +401,287 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 22.568, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.568, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 1.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 8.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 8.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 123.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 123.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "cc:cc:cc:ff:fe:da:b1:e0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "cc:cc:cc:ff:fe:da:b1:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz2000-k4yr34vv-sm0301.json b/tests/data/devices/tz2000-k4yr34vv-sm0301.json index 0f1aee2c8..0fc1ba6ff 100644 --- a/tests/data/devices/tz2000-k4yr34vv-sm0301.json +++ b/tests/data/devices/tz2000-k4yr34vv-sm0301.json @@ -297,219 +297,256 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Shade", - "translation_key": "shade", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Shade", + "translation_key": "shade", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Shade", + "available": true, + "current_position": 100, + "is_closed": false, + "state": "open" + } } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 254 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 0 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:27:35:c8:17-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:27:35:c8:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:27:35:c8:17-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:27:35:c8:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-09gto2zn-ts0013-0x00000050.json b/tests/data/devices/tz3000-09gto2zn-ts0013-0x00000050.json index bb52c8ef0..369fa9d0c 100644 --- a/tests/data/devices/tz3000-09gto2zn-ts0013-0x00000050.json +++ b/tests/data/devices/tz3000-09gto2zn-ts0013-0x00000050.json @@ -488,220 +488,279 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 188, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 188 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -53, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -53 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-09gto2zn-ts0013.json b/tests/data/devices/tz3000-09gto2zn-ts0013.json index 2a4ca46df..a61b050ca 100644 --- a/tests/data/devices/tz3000-09gto2zn-ts0013.json +++ b/tests/data/devices/tz3000-09gto2zn-ts0013.json @@ -278,220 +278,279 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:aa:29:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:aa:29:f4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:aa:29:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-1dd0d5yi-ts130f-0x00000047.json b/tests/data/devices/tz3000-1dd0d5yi-ts130f-0x00000047.json index 6d06c9c75..76ebb6aff 100644 --- a/tests/data/devices/tz3000-1dd0d5yi-ts130f-0x00000047.json +++ b/tests/data/devices/tz3000-1dd0d5yi-ts130f-0x00000047.json @@ -390,131 +390,157 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -73, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -73 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000047", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000047", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-1dd0d5yi-ts130f.json b/tests/data/devices/tz3000-1dd0d5yi-ts130f.json index edaae3331..e0cb54539 100644 --- a/tests/data/devices/tz3000-1dd0d5yi-ts130f.json +++ b/tests/data/devices/tz3000-1dd0d5yi-ts130f.json @@ -390,108 +390,129 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -73, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -73 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:80:89:33-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:80:89:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:80:89:33-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:80:89:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-1o6x1bl0-ts0201-0x00000041.json b/tests/data/devices/tz3000-1o6x1bl0-ts0201-0x00000041.json index 03231ba8e..428a42d3c 100644 --- a/tests/data/devices/tz3000-1o6x1bl0-ts0201-0x00000041.json +++ b/tests/data/devices/tz3000-1o6x1bl0-ts0201-0x00000041.json @@ -184,160 +184,189 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d0:74:74:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d0:74:74:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d0:74:74:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 185, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d0:74:74:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 185 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d0:74:74:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d0:74:74:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d0:74:74:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:d0:74:74:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.1 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d0:74:74:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.28, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d0:74:74:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.28 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d0:74:74:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d0:74:74:bf-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d0:74:74:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-2putqrmw-ts011f.json b/tests/data/devices/tz3000-2putqrmw-ts011f.json index 27218ce5f..064e9d539 100644 --- a/tests/data/devices/tz3000-2putqrmw-ts011f.json +++ b/tests/data/devices/tz3000-2putqrmw-ts011f.json @@ -418,275 +418,318 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 5.16, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.16, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 233.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 233.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:c6:61:bc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:c6:61:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-2xlvlnez-ts011f.json b/tests/data/devices/tz3000-2xlvlnez-ts011f.json index 9f67d67b1..8366fcae2 100644 --- a/tests/data/devices/tz3000-2xlvlnez-ts011f.json +++ b/tests/data/devices/tz3000-2xlvlnez-ts011f.json @@ -536,238 +536,276 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 184, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 184 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -54, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -54 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": null + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "zcl_unit_of_measurement": null + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": null, - "device_type": null, - "status": null, - "zcl_unit_of_measurement": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:03:ef:df-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:03:ef:df", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:03:ef:df-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:03:ef:df", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ] }, diff --git a/tests/data/devices/tz3000-303avxxt-ts011f.json b/tests/data/devices/tz3000-303avxxt-ts011f.json index c9e482168..21b784ec1 100644 --- a/tests/data/devices/tz3000-303avxxt-ts011f.json +++ b/tests/data/devices/tz3000-303avxxt-ts011f.json @@ -472,330 +472,385 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LightWhenOn", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "LightWhenOn" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LastState", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "LastState" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 247.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 247.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "TuyaChildLockSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:76:78:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:76:78:ad-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:76:78:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-3ias4w4o-ts011f-0x0000004e.json b/tests/data/devices/tz3000-3ias4w4o-ts011f-0x0000004e.json index ea533ced4..849ad9925 100644 --- a/tests/data/devices/tz3000-3ias4w4o-ts011f-0x0000004e.json +++ b/tests/data/devices/tz3000-3ias4w4o-ts011f-0x0000004e.json @@ -521,247 +521,287 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 295.79, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 295.79, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 2231.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2231.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 9.587 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 9.587, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 233.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 233.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:45:af:eb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:17:45:af:eb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:45:af:eb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:45:af:eb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-5e235jpa-ts0042.json b/tests/data/devices/tz3000-5e235jpa-ts0042.json index 964d3c6ad..f52637ef7 100644 --- a/tests/data/devices/tz3000-5e235jpa-ts0042.json +++ b/tests/data/devices/tz3000-5e235jpa-ts0042.json @@ -175,184 +175,216 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:e0:ec:6e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:e0:ec:6e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-5fkufhn1-ts0502a.json b/tests/data/devices/tz3000-5fkufhn1-ts0502a.json index 215e2a436..64d3610d5 100644 --- a/tests/data/devices/tz3000-5fkufhn1-ts0502a.json +++ b/tests/data/devices/tz3000-5fkufhn1-ts0502a.json @@ -309,152 +309,185 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:4b:44:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:4b:44:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:4b:44:fd-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:4b:44:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.6999923704890516, - 0.29999237048905164 - ], - "color_temp": 193, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:4b:44:fd-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:97:4b:44:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.6999923704890516, + 0.29999237048905164 + ], + "color_temp": 193, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:4b:44:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:4b:44:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:4b:44:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:4b:44:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:4b:44:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:4b:44:fd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:4b:44:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-5ity3zyu-ts0121.json b/tests/data/devices/tz3000-5ity3zyu-ts0121.json index c62787985..6e82f328d 100644 --- a/tests/data/devices/tz3000-5ity3zyu-ts0121.json +++ b/tests/data/devices/tz3000-5ity3zyu-ts0121.json @@ -395,247 +395,287 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 233.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 233.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:82:95:69-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:82:95:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:82:95:69-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:82:95:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-6l1pjfqe-ts011f.json b/tests/data/devices/tz3000-6l1pjfqe-ts011f.json index b688236a2..5341131c2 100644 --- a/tests/data/devices/tz3000-6l1pjfqe-ts011f.json +++ b/tests/data/devices/tz3000-6l1pjfqe-ts011f.json @@ -468,247 +468,287 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.23, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.23, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 450.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 450.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 3.831 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3.831, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 117.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 117.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8e:a1:83:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8e:a1:83:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8e:a1:83:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-8nkb7mof-ts0121-0x00000042.json b/tests/data/devices/tz3000-8nkb7mof-ts0121-0x00000042.json index bad066b73..0baa0c214 100644 --- a/tests/data/devices/tz3000-8nkb7mof-ts0121-0x00000042.json +++ b/tests/data/devices/tz3000-8nkb7mof-ts0121-0x00000042.json @@ -444,330 +444,385 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LightWhenOn", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "LightWhenOn" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 1196.95, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1196.95, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 152.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 152.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.709 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.709, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 249.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 249.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "TuyaChildLockSwitch", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:82:f3:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000042", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:82:f3:92-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:82:f3:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000042", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-8nyaanzb-ts011f.json b/tests/data/devices/tz3000-8nyaanzb-ts011f.json index cbd5f28e4..3097ec245 100644 --- a/tests/data/devices/tz3000-8nyaanzb-ts011f.json +++ b/tests/data/devices/tz3000-8nyaanzb-ts011f.json @@ -261,151 +261,181 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7a:44:0d-2", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7a:44:0d-2", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0e:7a:44:0d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0e:7a:44:0d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-8yhypbo7-ts0203.json b/tests/data/devices/tz3000-8yhypbo7-ts0203.json index ead587b2e..13bedb8b1 100644 --- a/tests/data/devices/tz3000-8yhypbo7-ts0203.json +++ b/tests/data/devices/tz3000-8yhypbo7-ts0203.json @@ -222,183 +222,217 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 67.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 67.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:01:fb:fa:59:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-a37eix1s-ts0004.json b/tests/data/devices/tz3000-a37eix1s-ts0004.json index 0fd9f9fe0..a594ec16a 100644 --- a/tests/data/devices/tz3000-a37eix1s-ts0004.json +++ b/tests/data/devices/tz3000-a37eix1s-ts0004.json @@ -357,257 +357,329 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 4, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 4, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:aa:51:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:aa:51:5f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:aa:51:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-a9buwvb7-ts0726.json b/tests/data/devices/tz3000-a9buwvb7-ts0726.json index bba369d34..f529abda3 100644 --- a/tests/data/devices/tz3000-a9buwvb7-ts0726.json +++ b/tests/data/devices/tz3000-a9buwvb7-ts0726.json @@ -560,235 +560,285 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 4, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-5-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 5, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-5-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 5, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-6-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 6, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-6-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 6, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:a3:66:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:a3:66:bf-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:a3:66:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-adkvzooy-ts0042.json b/tests/data/devices/tz3000-adkvzooy-ts0042.json index b21ebaa7d..7b28ca869 100644 --- a/tests/data/devices/tz3000-adkvzooy-ts0042.json +++ b/tests/data/devices/tz3000-adkvzooy-ts0042.json @@ -150,184 +150,215 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:0a:cb:cb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:0a:cb:cb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-aghwaexm-ts0001.json b/tests/data/devices/tz3000-aghwaexm-ts0001.json index e805228ea..e8af227c6 100644 --- a/tests/data/devices/tz3000-aghwaexm-ts0001.json +++ b/tests/data/devices/tz3000-aghwaexm-ts0001.json @@ -152,116 +152,144 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:d3:9f:ef-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:d3:9f:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/tz3000-bgsigers-ts0201-0x00000040.json b/tests/data/devices/tz3000-bgsigers-ts0201-0x00000040.json index 7f16fd3e0..cd38d0787 100644 --- a/tests/data/devices/tz3000-bgsigers-ts0201-0x00000040.json +++ b/tests/data/devices/tz3000-bgsigers-ts0201-0x00000040.json @@ -185,183 +185,217 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -33, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -33 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.1 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 28.2, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 28.2 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 31.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 31.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:ee:e3:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:ee:e3:19-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:ee:e3:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-bguser20-ts0201-0x00000045.json b/tests/data/devices/tz3000-bguser20-ts0201-0x00000045.json index 5778c27f0..8998241b8 100644 --- a/tests/data/devices/tz3000-bguser20-ts0201-0x00000045.json +++ b/tests/data/devices/tz3000-bguser20-ts0201-0x00000045.json @@ -185,183 +185,217 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 1.0, + "battery_voltage": 2.6 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.6 + ] }, { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -18.24, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": -18.24 + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 49.87, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 49.87 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:55:4f:a5:d8:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:55:4f:a5:d8:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-bjawzodf-ty0201.json b/tests/data/devices/tz3000-bjawzodf-ty0201.json index d3cbf0b7a..2a0db38a8 100644 --- a/tests/data/devices/tz3000-bjawzodf-ty0201.json +++ b/tests/data/devices/tz3000-bjawzodf-ty0201.json @@ -166,160 +166,190 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:57:26:74-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2b:57:26:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:57:26:74-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:57:26:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:57:26:74-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2b:57:26:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:57:26:74-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:57:26:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:57:26:74-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2b:57:26:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:57:26:74-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:57:26:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:57:26:74-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:57:26:74-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:57:26:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:2b:57:26:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:57:26:74-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2b:57:26:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 23.6, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:57:26:74-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:2b:57:26:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 23.6 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2b:57:26:74-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2b:57:26:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2b:57:26:74-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2b:57:26:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-cehuw1lw-ts011f-0x0000004d.json b/tests/data/devices/tz3000-cehuw1lw-ts011f-0x0000004d.json index 304c3c3fa..3f7a3f53e 100644 --- a/tests/data/devices/tz3000-cehuw1lw-ts011f-0x0000004d.json +++ b/tests/data/devices/tz3000-cehuw1lw-ts011f-0x0000004d.json @@ -437,247 +437,287 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 1.98, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.98, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 231.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 231.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:f8:5e:65-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:f8:5e:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-cfnprab5-ts011f.json b/tests/data/devices/tz3000-cfnprab5-ts011f.json index c93725780..abfad584c 100644 --- a/tests/data/devices/tz3000-cfnprab5-ts011f.json +++ b/tests/data/devices/tz3000-cfnprab5-ts011f.json @@ -414,264 +414,344 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 4, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 4, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-5", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 5, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-5", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 5, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:cf:95:48-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:cf:95:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:cf:95:48-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:cf:95:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/tz3000-cicwjqth-ts011f-0x74013001.json b/tests/data/devices/tz3000-cicwjqth-ts011f-0x74013001.json index f07eb9ce1..aa87ad495 100644 --- a/tests/data/devices/tz3000-cicwjqth-ts011f-0x74013001.json +++ b/tests/data/devices/tz3000-cicwjqth-ts011f-0x74013001.json @@ -431,217 +431,251 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.102 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.102, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 233.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 233.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:0c:54:33", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x74013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:0c:54:33-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:0c:54:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x74013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-dbou1ap4-ts0505a.json b/tests/data/devices/tz3000-dbou1ap4-ts0505a.json index b2ae7ded5..3ae742e95 100644 --- a/tests/data/devices/tz3000-dbou1ap4-ts0505a.json +++ b/tests/data/devices/tz3000-dbou1ap4-ts0505a.json @@ -302,152 +302,185 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 140, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 291, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 140, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 291, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:7f:c5:7a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:7f:c5:7a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-dowj6gyi-ts0201.json b/tests/data/devices/tz3000-dowj6gyi-ts0201.json index bbd91acdc..d016b87d9 100644 --- a/tests/data/devices/tz3000-dowj6gyi-ts0201.json +++ b/tests/data/devices/tz3000-dowj6gyi-ts0201.json @@ -178,183 +178,217 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 21.3, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 21.3 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 58.31, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 58.31 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:b2:ae:04", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:b2:ae:04-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:b2:ae:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-drc9tuqb-ts0001-0x00000047.json b/tests/data/devices/tz3000-drc9tuqb-ts0001-0x00000047.json index 7720d4958..e4bc8e797 100644 --- a/tests/data/devices/tz3000-drc9tuqb-ts0001-0x00000047.json +++ b/tests/data/devices/tz3000-drc9tuqb-ts0001-0x00000047.json @@ -229,202 +229,245 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "Off" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LastState", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "LastState" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 204, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 204 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -49, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -49 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:36:0a:01-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:36:0a:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000047", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:36:0a:01-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:36:0a:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000047", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-e2uieqop-ts0001.json b/tests/data/devices/tz3000-e2uieqop-ts0001.json index d4599dc29..ff40a7ad5 100644 --- a/tests/data/devices/tz3000-e2uieqop-ts0001.json +++ b/tests/data/devices/tz3000-e2uieqop-ts0001.json @@ -207,146 +207,179 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:db:a7:b4:b5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:db:a7:b4:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-eamtuojw-ts0201-0x00000041.json b/tests/data/devices/tz3000-eamtuojw-ts0201-0x00000041.json index d33e78237..b1d6a8c07 100644 --- a/tests/data/devices/tz3000-eamtuojw-ts0201-0x00000041.json +++ b/tests/data/devices/tz3000-eamtuojw-ts0201-0x00000041.json @@ -173,156 +173,185 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:fc:51:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:fc:51:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:fc:51:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:fc:51:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:fc:51:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 0.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:ab:fc:51:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:fc:51:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:fc:51:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:fc:51:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:fc:51:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 0.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:fc:51:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:fc:51:44-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:fc:51:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-empogkya-ts0003.json b/tests/data/devices/tz3000-empogkya-ts0003.json index ec80c72de..15804d5be 100644 --- a/tests/data/devices/tz3000-empogkya-ts0003.json +++ b/tests/data/devices/tz3000-empogkya-ts0003.json @@ -297,220 +297,279 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:f0:2a:e8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:f0:2a:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-f2bw0b6k-ts0201-0x00000046.json b/tests/data/devices/tz3000-f2bw0b6k-ts0201-0x00000046.json index 56f95030d..ac9d7df1a 100644 --- a/tests/data/devices/tz3000-f2bw0b6k-ts0201-0x00000046.json +++ b/tests/data/devices/tz3000-f2bw0b6k-ts0201-0x00000046.json @@ -185,183 +185,217 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 57.0, + "battery_voltage": 2.7 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 57.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.7 + ] }, { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.03, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.03 + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 78.92, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 78.92 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:56:3c:3e:d9:f0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:56:3c:3e:d9:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-famkxci2-ts0043-0x00000044.json b/tests/data/devices/tz3000-famkxci2-ts0043-0x00000044.json index 2b165c012..832be0c99 100644 --- a/tests/data/devices/tz3000-famkxci2-ts0043-0x00000044.json +++ b/tests/data/devices/tz3000-famkxci2-ts0043-0x00000044.json @@ -263,170 +263,197 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 208, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 208 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -48, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -48 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:cb:44:9b-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:cb:44:9b-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 0.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:cb:44:9b-3-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:cb:44:9b-3-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 0.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:cb:44:9b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:cb:44:9b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-fdxihpp7-ts0001.json b/tests/data/devices/tz3000-fdxihpp7-ts0001.json index 60a4e47e5..badc35f33 100644 --- a/tests/data/devices/tz3000-fdxihpp7-ts0001.json +++ b/tests/data/devices/tz3000-fdxihpp7-ts0001.json @@ -470,233 +470,274 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 98, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 98 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": null + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "zcl_unit_of_measurement": null + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": null, - "device_type": null, - "status": null, - "zcl_unit_of_measurement": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:a7:1c:c8-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:22:a7:1c:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ] }, diff --git a/tests/data/devices/tz3000-gbm10jnj-ts0043-0x00000042.json b/tests/data/devices/tz3000-gbm10jnj-ts0043-0x00000042.json index d8572e937..7d0217072 100644 --- a/tests/data/devices/tz3000-gbm10jnj-ts0043-0x00000042.json +++ b/tests/data/devices/tz3000-gbm10jnj-ts0043-0x00000042.json @@ -267,235 +267,277 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 78.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 78.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 78.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 78.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-3-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-3-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 78.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 78.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000042", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:51:0b:5a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:51:0b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000042", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-gjpgagal-ts0049-0x00000049.json b/tests/data/devices/tz3000-gjpgagal-ts0049-0x00000049.json index f1cb56783..b0ea1a76f 100644 --- a/tests/data/devices/tz3000-gjpgagal-ts0049-0x00000049.json +++ b/tests/data/devices/tz3000-gjpgagal-ts0049-0x00000049.json @@ -202,160 +202,189 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:a9:5b:37-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:a9:5b:37", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-gjrubzje-ts0001.json b/tests/data/devices/tz3000-gjrubzje-ts0001.json index 8c770378e..6a3a6984b 100644 --- a/tests/data/devices/tz3000-gjrubzje-ts0001.json +++ b/tests/data/devices/tz3000-gjrubzje-ts0001.json @@ -418,291 +418,342 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:b2:ef:b7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:b2:ef:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-gwkzibhs-ts004f.json b/tests/data/devices/tz3000-gwkzibhs-ts004f.json index b120b76ce..7462b396b 100644 --- a/tests/data/devices/tz3000-gwkzibhs-ts004f.json +++ b/tests/data/devices/tz3000-gwkzibhs-ts004f.json @@ -238,137 +238,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:79:a6:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:79:a6:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:79:a6:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 182, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:79:a6:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 182 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:79:a6:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:79:a6:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:79:a6:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:e5:79:a6:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:79:a6:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:79:a6:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-hafsqare-ts0011-0x00000050.json b/tests/data/devices/tz3000-hafsqare-ts0011-0x00000050.json index f128bfffe..01791ea72 100644 --- a/tests/data/devices/tz3000-hafsqare-ts0011-0x00000050.json +++ b/tests/data/devices/tz3000-hafsqare-ts0011-0x00000050.json @@ -183,130 +183,155 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bd:23:09:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bd:23:09:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bd:23:09:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bd:23:09:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bd:23:09:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bd:23:09:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bd:23:09:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:bd:23:09:5e", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bd:23:09:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:23:09:5e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bd:23:09:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-idhkkbqj-ts0012-0x00000041.json b/tests/data/devices/tz3000-idhkkbqj-ts0012-0x00000041.json index 371ceb311..2abfd62f4 100644 --- a/tests/data/devices/tz3000-idhkkbqj-ts0012-0x00000041.json +++ b/tests/data/devices/tz3000-idhkkbqj-ts0012-0x00000041.json @@ -250,156 +250,197 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 109, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 109 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:1b:a9:d3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:1b:a9:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-isw9u95y-ts0201-0x00000040.json b/tests/data/devices/tz3000-isw9u95y-ts0201-0x00000040.json index 6e13fe43f..1ceee8177 100644 --- a/tests/data/devices/tz3000-isw9u95y-ts0201-0x00000040.json +++ b/tests/data/devices/tz3000-isw9u95y-ts0201-0x00000040.json @@ -238,230 +238,274 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 0.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ca:ae:e5:84-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ca:ae:e5:84", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-itnrsufe-ts0201-0x00000042.json b/tests/data/devices/tz3000-itnrsufe-ts0201-0x00000042.json index 1356f0929..ebc6b285c 100644 --- a/tests/data/devices/tz3000-itnrsufe-ts0201-0x00000042.json +++ b/tests/data/devices/tz3000-itnrsufe-ts0201-0x00000042.json @@ -191,183 +191,217 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 78.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 78.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] }, { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 27.94, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 27.94 + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 34.3, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 34.3 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:fe:e0:5d:44:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000042", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:fe:e0:5d:44:91-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:fe:e0:5d:44:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000042", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-j1xl73iw-ts130f-0x00000046.json b/tests/data/devices/tz3000-j1xl73iw-ts130f-0x00000046.json index 112eb256d..49d3603fc 100644 --- a/tests/data/devices/tz3000-j1xl73iw-ts130f-0x00000046.json +++ b/tests/data/devices/tz3000-j1xl73iw-ts130f-0x00000046.json @@ -419,134 +419,161 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e2:fe:70:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e2:fe:70:54", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:fe:70:54-2-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e2:fe:70:54", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:fe:70:54-2-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e2:fe:70:54", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e2:fe:70:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e2:fe:70:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e2:fe:70:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e2:fe:70:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e2:fe:70:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:fe:70:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e2:fe:70:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-ja5osu5g-ts004f-0x00000041.json b/tests/data/devices/tz3000-ja5osu5g-ts004f-0x00000041.json index 677cbd631..24a3be566 100644 --- a/tests/data/devices/tz3000-ja5osu5g-ts004f-0x00000041.json +++ b/tests/data/devices/tz3000-ja5osu5g-ts004f-0x00000041.json @@ -238,137 +238,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:50:bd:12", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:50:bd:12", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:50:bd:12", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 188, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:50:bd:12", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 188 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:50:bd:12", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -64, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:50:bd:12", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -64 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:50:bd:12", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 88.0, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:a9:50:bd:12", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 88.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.9 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:50:bd:12", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:50:bd:12", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-kjfzuycl-ts004f.json b/tests/data/devices/tz3000-kjfzuycl-ts004f.json index ec03fc080..b782ce4a8 100644 --- a/tests/data/devices/tz3000-kjfzuycl-ts004f.json +++ b/tests/data/devices/tz3000-kjfzuycl-ts004f.json @@ -207,137 +207,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:36:af:0f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "38:5b:44:ff:fe:36:af:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:36:af:0f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "38:5b:44:ff:fe:36:af:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:36:af:0f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "38:5b:44:ff:fe:36:af:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:36:af:0f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "38:5b:44:ff:fe:36:af:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:36:af:0f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "38:5b:44:ff:fe:36:af:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:36:af:0f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "38:5b:44:ff:fe:36:af:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:36:af:0f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:36:af:0f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "38:5b:44:ff:fe:36:af:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "38:5b:44:ff:fe:36:af:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "38:5b:44:ff:fe:36:af:0f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "38:5b:44:ff:fe:36:af:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:36:af:0f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "38:5b:44:ff:fe:36:af:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-kmsbwdol-ts130f.json b/tests/data/devices/tz3000-kmsbwdol-ts130f.json index 11a694065..4790aca93 100644 --- a/tests/data/devices/tz3000-kmsbwdol-ts130f.json +++ b/tests/data/devices/tz3000-kmsbwdol-ts130f.json @@ -341,157 +341,189 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:b7:7a:50-2-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:b7:7a:50-2-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:b7:7a:50-2-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:b7:7a:50-2-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:b7:7a:50-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:b7:7a:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-kqvb5akv-ts0001-0x0000004a.json b/tests/data/devices/tz3000-kqvb5akv-ts0001-0x0000004a.json index 2e261a33a..7c4393b2c 100644 --- a/tests/data/devices/tz3000-kqvb5akv-ts0001-0x0000004a.json +++ b/tests/data/devices/tz3000-kqvb5akv-ts0001-0x0000004a.json @@ -539,263 +539,311 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 200, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 200 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 1.54, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.54, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 30.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.245 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.245, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 231.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 231.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:82:cb:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:82:cb:22-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:82:cb:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-lepzuhto-ts011f.json b/tests/data/devices/tz3000-lepzuhto-ts011f.json index b7d530579..ed5d9f9db 100644 --- a/tests/data/devices/tz3000-lepzuhto-ts011f.json +++ b/tests/data/devices/tz3000-lepzuhto-ts011f.json @@ -420,275 +420,318 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 59.54, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 59.54, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 198.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 198.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 1.049 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.049, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 238.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 238.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:e8:29:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:e8:29:50-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:e8:29:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-lf56vpxj-ts0202.json b/tests/data/devices/tz3000-lf56vpxj-ts0202.json index 9e90297cb..738d9d1bb 100644 --- a/tests/data/devices/tz3000-lf56vpxj-ts0202.json +++ b/tests/data/devices/tz3000-lf56vpxj-ts0202.json @@ -161,183 +161,216 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-llfaquvp-ts0012.json b/tests/data/devices/tz3000-llfaquvp-ts0012.json index 8b613d36c..9c13b96ae 100644 --- a/tests/data/devices/tz3000-llfaquvp-ts0012.json +++ b/tests/data/devices/tz3000-llfaquvp-ts0012.json @@ -286,183 +286,229 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:98:ca:b8-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:98:ca:b8-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:98:ca:b8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:98:ca:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-lotmgthb-ts011f.json b/tests/data/devices/tz3000-lotmgthb-ts011f.json index d25c8e1d5..6d1f0f510 100644 --- a/tests/data/devices/tz3000-lotmgthb-ts011f.json +++ b/tests/data/devices/tz3000-lotmgthb-ts011f.json @@ -418,275 +418,318 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.71, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.71, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 125.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 125.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:b1:51:a5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:b1:51:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-lrgccsxm-ts0013.json b/tests/data/devices/tz3000-lrgccsxm-ts0013.json index 88a245a08..659ce8676 100644 --- a/tests/data/devices/tz3000-lrgccsxm-ts0013.json +++ b/tests/data/devices/tz3000-lrgccsxm-ts0013.json @@ -254,220 +254,279 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:c9:96:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:c9:96:f3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:c9:96:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-ltiqubue-ts130f.json b/tests/data/devices/tz3000-ltiqubue-ts130f.json index 1a11d1c3b..d29f2de5b 100644 --- a/tests/data/devices/tz3000-ltiqubue-ts130f.json +++ b/tests/data/devices/tz3000-ltiqubue-ts130f.json @@ -153,128 +153,154 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:3b:68:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:3b:68:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:3b:68:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:43:3b:68:f1", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:3b:68:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:3b:68:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:3b:68:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:3b:68:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:43:3b:68:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:3b:68:f1-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:43:3b:68:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/tz3000-mg4dy6z6-ts0202.json b/tests/data/devices/tz3000-mg4dy6z6-ts0202.json index 729769bcb..60b57dda2 100644 --- a/tests/data/devices/tz3000-mg4dy6z6-ts0202.json +++ b/tests/data/devices/tz3000-mg4dy6z6-ts0202.json @@ -211,183 +211,217 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:66:75:56-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:66:75:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-mgusv51k-ts0052-0x00000044.json b/tests/data/devices/tz3000-mgusv51k-ts0052-0x00000044.json index a9842f870..47acd4ba6 100644 --- a/tests/data/devices/tz3000-mgusv51k-ts0052-0x00000044.json +++ b/tests/data/devices/tz3000-mgusv51k-ts0052-0x00000044.json @@ -261,175 +261,213 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:77:a4:24:d4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:77:a4:24:d4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:77:a4:24:d4-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:77:a4:24:d4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 127, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:77:a4:24:d4-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:77:a4:24:d4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 127, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-8-on_off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnOffTransitionTimeConfigurationEntity", - "translation_key": "on_off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:77:a4:24:d4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5000, - "mode": "auto", - "native_max_value": 65535, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-8-on_off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnOffTransitionTimeConfigurationEntity", + "translation_key": "on_off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:77:a4:24:d4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65535, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnOffTransitionTimeConfigurationEntity", + "available": true, + "state": 5000 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:77:a4:24:d4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 36, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:77:a4:24:d4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 36 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:77:a4:24:d4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:77:a4:24:d4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:77:a4:24:d4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:77:a4:24:d4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:77:a4:24:d4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-mkhkxx1p-ts0001-0x00000048.json b/tests/data/devices/tz3000-mkhkxx1p-ts0001-0x00000048.json index 138d257ea..a00b2da33 100644 --- a/tests/data/devices/tz3000-mkhkxx1p-ts0001-0x00000048.json +++ b/tests/data/devices/tz3000-mkhkxx1p-ts0001-0x00000048.json @@ -462,263 +462,311 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 237.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 237.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:44:eb:16-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:44:eb:16", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:44:eb:16-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:44:eb:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-mugyhz0q-ts0207-0x00000041.json b/tests/data/devices/tz3000-mugyhz0q-ts0207-0x00000041.json index 2e0483a6e..c591b9e32 100644 --- a/tests/data/devices/tz3000-mugyhz0q-ts0207-0x00000041.json +++ b/tests/data/devices/tz3000-mugyhz0q-ts0207-0x00000041.json @@ -193,161 +193,190 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:d4:c0:9f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:d4:c0:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-mw1pqqqt-ts0003-0x0000004a.json b/tests/data/devices/tz3000-mw1pqqqt-ts0003-0x0000004a.json index 1c00589e1..459212e84 100644 --- a/tests/data/devices/tz3000-mw1pqqqt-ts0003-0x0000004a.json +++ b/tests/data/devices/tz3000-mw1pqqqt-ts0003-0x0000004a.json @@ -684,393 +684,477 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LightWhenOn", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "LightWhenOn" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LastState", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "LastState" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 87, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 87 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2c:e2:6d:88-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2c:e2:6d:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-npzfdcof-ts0001.json b/tests/data/devices/tz3000-npzfdcof-ts0001.json index 3456e6aae..93fd3cfb2 100644 --- a/tests/data/devices/tz3000-npzfdcof-ts0001.json +++ b/tests/data/devices/tz3000-npzfdcof-ts0001.json @@ -455,263 +455,311 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:97:29:ff-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:37:97:29:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:97:29:ff-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:97:29:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-o1jzcxou-ts011f-0x00000043.json b/tests/data/devices/tz3000-o1jzcxou-ts011f-0x00000043.json index d85e6b410..c7df3088d 100644 --- a/tests/data/devices/tz3000-o1jzcxou-ts011f-0x00000043.json +++ b/tests/data/devices/tz3000-o1jzcxou-ts011f-0x00000043.json @@ -211,130 +211,155 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:94:54:69-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:94:54:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:94:54:69-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8f:94:54:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:94:54:69-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:94:54:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 204, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:94:54:69-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8f:94:54:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 204 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:94:54:69-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:94:54:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -49, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:94:54:69-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8f:94:54:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -49 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:94:54:69-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:94:54:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:94:54:69-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8f:94:54:69", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8f:94:54:69-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8f:94:54:69", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:94:54:69-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8f:94:54:69", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-o4mkahkc-ts0202-0x00000046.json b/tests/data/devices/tz3000-o4mkahkc-ts0202-0x00000046.json index 6f7be5396..8fc6d63ec 100644 --- a/tests/data/devices/tz3000-o4mkahkc-ts0202-0x00000046.json +++ b/tests/data/devices/tz3000-o4mkahkc-ts0202-0x00000046.json @@ -211,183 +211,217 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.9 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.9 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:39:10:3f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:39:10:3f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-okaz9tjs-ts011f.json b/tests/data/devices/tz3000-okaz9tjs-ts011f.json index ad895fdb4..3f2e5cb49 100644 --- a/tests/data/devices/tz3000-okaz9tjs-ts011f.json +++ b/tests/data/devices/tz3000-okaz9tjs-ts011f.json @@ -400,247 +400,287 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 239.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 239.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:63:a9:95-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:63:a9:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:63:a9:95-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:44:63:a9:95", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ] }, diff --git a/tests/data/devices/tz3000-p26flek3-ts0001-0x00000053.json b/tests/data/devices/tz3000-p26flek3-ts0001-0x00000053.json index 5cbe9d31d..1a7a49988 100644 --- a/tests/data/devices/tz3000-p26flek3-ts0001-0x00000053.json +++ b/tests/data/devices/tz3000-p26flek3-ts0001-0x00000053.json @@ -236,202 +236,245 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "Off" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LastState", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "LastState" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 212, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 212 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -58, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -58 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:37:1f:21:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:37:1f:21:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000053", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:37:1f:21:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:37:1f:21:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000053", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-pl5v1yyy-ts011f-0x00000050.json b/tests/data/devices/tz3000-pl5v1yyy-ts011f-0x00000050.json index f5fce0c26..29ca37d22 100644 --- a/tests/data/devices/tz3000-pl5v1yyy-ts011f-0x00000050.json +++ b/tests/data/devices/tz3000-pl5v1yyy-ts011f-0x00000050.json @@ -784,331 +784,391 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 236, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 236 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -41, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -41 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-2", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-2", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-3", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-3", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-4", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-4", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 4, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-5", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 5, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-5", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 5, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:89:87:b0:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:89:87:b0:a2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:89:87:b0:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-qa8s8vca-ts130f.json b/tests/data/devices/tz3000-qa8s8vca-ts130f.json index 18ae45fbf..eb316e19a 100644 --- a/tests/data/devices/tz3000-qa8s8vca-ts130f.json +++ b/tests/data/devices/tz3000-qa8s8vca-ts130f.json @@ -194,131 +194,157 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:49:87:24-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:49:87:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:49:87:24-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:fb:49:87:24", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:49:87:24-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:49:87:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:49:87:24-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:49:87:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:49:87:24-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:49:87:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:49:87:24-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:49:87:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:49:87:24-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:49:87:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:49:87:24-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:49:87:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:49:87:24-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:49:87:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:49:87:24-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:49:87:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-qdnrzbd3-ts0202-0x00000046.json b/tests/data/devices/tz3000-qdnrzbd3-ts0202-0x00000046.json index 797e1588d..ede7a2056 100644 --- a/tests/data/devices/tz3000-qdnrzbd3-ts0202-0x00000046.json +++ b/tests/data/devices/tz3000-qdnrzbd3-ts0202-0x00000046.json @@ -211,183 +211,217 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 244, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 244 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -50, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -50 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-qqdbccb3-ts130f.json b/tests/data/devices/tz3000-qqdbccb3-ts130f.json index 99ce49d76..32b3289aa 100644 --- a/tests/data/devices/tz3000-qqdbccb3-ts130f.json +++ b/tests/data/devices/tz3000-qqdbccb3-ts130f.json @@ -140,158 +140,189 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:e5:28:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:e5:28:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:e5:28:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:5a:e5:28:64", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:e5:28:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:e5:28:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:e5:28:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:e5:28:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:e5:28:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:e5:28:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:e5:28:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:e5:28:64-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:e5:28:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-r6buo8ba-ts011f.json b/tests/data/devices/tz3000-r6buo8ba-ts011f.json index b3cfc5555..eb0243bee 100644 --- a/tests/data/devices/tz3000-r6buo8ba-ts011f.json +++ b/tests/data/devices/tz3000-r6buo8ba-ts011f.json @@ -397,247 +397,285 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 95.36, + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 95.36, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 1.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.045 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.045, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 245.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 245.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d7:9b:67:b6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d7:9b:67:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-rbl8c85w-ts0012.json b/tests/data/devices/tz3000-rbl8c85w-ts0012.json index e5260c5f0..c0488968a 100644 --- a/tests/data/devices/tz3000-rbl8c85w-ts0012.json +++ b/tests/data/devices/tz3000-rbl8c85w-ts0012.json @@ -207,183 +207,229 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:31:66:45-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:31:66:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:31:66:45-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:31:66:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:31:66:45-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:31:66:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:31:66:45-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:31:66:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:31:66:45-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:31:66:45", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:31:66:45-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:31:66:45", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:31:66:45-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:31:66:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 47, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:31:66:45-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:31:66:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 47 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:31:66:45-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:31:66:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:31:66:45-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:31:66:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:31:66:45-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:31:66:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:31:66:45-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:31:66:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-sgb0xhwn-ts011f-0x00000050.json b/tests/data/devices/tz3000-sgb0xhwn-ts011f-0x00000050.json index 8bb2e55ed..b2e86d711 100644 --- a/tests/data/devices/tz3000-sgb0xhwn-ts011f-0x00000050.json +++ b/tests/data/devices/tz3000-sgb0xhwn-ts011f-0x00000050.json @@ -630,351 +630,411 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LightWhenOn", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "LightWhenOn" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LastState", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "LastState" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 208, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 208 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -48, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -48 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "TuyaChildLockSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-2", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-2", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:a5:92:4b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:a5:92:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-snq47izk-ts0013.json b/tests/data/devices/tz3000-snq47izk-ts0013.json index cdbf2bbd8..27a0a77a8 100644 --- a/tests/data/devices/tz3000-snq47izk-ts0013.json +++ b/tests/data/devices/tz3000-snq47izk-ts0013.json @@ -254,220 +254,279 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ce:9d:2a:9c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ce:9d:2a:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-tgddllx4-ts0001.json b/tests/data/devices/tz3000-tgddllx4-ts0001.json index 983b301c1..f8ec4d389 100644 --- a/tests/data/devices/tz3000-tgddllx4-ts0001.json +++ b/tests/data/devices/tz3000-tgddllx4-ts0001.json @@ -374,233 +374,275 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:1f:a7:43-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:1f:a7:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 237.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:02:1f:a7:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 237.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ] }, diff --git a/tests/data/devices/tz3000-tqlv4ug4-ts0001-0x00000048.json b/tests/data/devices/tz3000-tqlv4ug4-ts0001-0x00000048.json index 71b06cf72..b6dafd8c2 100644 --- a/tests/data/devices/tz3000-tqlv4ug4-ts0001-0x00000048.json +++ b/tests/data/devices/tz3000-tqlv4ug4-ts0001-0x00000048.json @@ -562,319 +562,377 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LightWhenOn", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "LightWhenOn" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 208, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 208 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -59, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -59 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:aa:f0:9a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:aa:f0:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-typdpbpg-ts011f-0x10013607.json b/tests/data/devices/tz3000-typdpbpg-ts011f-0x10013607.json index a3a2b4412..903059c65 100644 --- a/tests/data/devices/tz3000-typdpbpg-ts011f-0x10013607.json +++ b/tests/data/devices/tz3000-typdpbpg-ts011f-0x10013607.json @@ -576,358 +576,418 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LightWhenOn", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "LightWhenOn" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 132, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 132 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -67, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -67 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 3.87, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3.87, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 1.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.022 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.022, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 235.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 235.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "TuyaChildLockSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x10013607", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fe:eb:bf:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fe:eb:bf:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x10013607", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-u3oupgdy-ts0004-0x00000050.json b/tests/data/devices/tz3000-u3oupgdy-ts0004-0x00000050.json index 8c2ae84e1..57e7a3771 100644 --- a/tests/data/devices/tz3000-u3oupgdy-ts0004-0x00000050.json +++ b/tests/data/devices/tz3000-u3oupgdy-ts0004-0x00000050.json @@ -503,313 +503,395 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 4, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 4, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LightWhenOn", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "LightWhenOn" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:23:80:ed-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:23:80:ed", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:23:80:ed-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:23:80:ed", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-u4kojtqz-ts0002-0x10013607.json b/tests/data/devices/tz3000-u4kojtqz-ts0002-0x10013607.json index 8571a7302..280df5f70 100644 --- a/tests/data/devices/tz3000-u4kojtqz-ts0002-0x10013607.json +++ b/tests/data/devices/tz3000-u4kojtqz-ts0002-0x10013607.json @@ -288,269 +288,330 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-2-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-2-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x10013607", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x10013607", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:26:0c:99:7b-2-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:26:0c:99:7b", - "endpoint_id": 2, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:26:0c:99:7b-2-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:26:0c:99:7b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-uwkja6z1-ts011f-0x00000045.json b/tests/data/devices/tz3000-uwkja6z1-ts011f-0x00000045.json index b53c47746..129234ffe 100644 --- a/tests/data/devices/tz3000-uwkja6z1-ts011f-0x00000045.json +++ b/tests/data/devices/tz3000-uwkja6z1-ts011f-0x00000045.json @@ -726,385 +726,445 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 318.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 318.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 241.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 241.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 318.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 318.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-2-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 241.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 241.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-2", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-2", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:ef:78:8d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:ef:78:8d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:ef:78:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-vw8pawxa-ts130f-0x00000048.json b/tests/data/devices/tz3000-vw8pawxa-ts130f-0x00000048.json index cffc27b01..bafdbc4c2 100644 --- a/tests/data/devices/tz3000-vw8pawxa-ts130f-0x00000048.json +++ b/tests/data/devices/tz3000-vw8pawxa-ts130f-0x00000048.json @@ -280,108 +280,129 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:c9:40:68-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:c9:40:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:c9:40:68-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:47:c9:40:68", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:c9:40:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:c9:40:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:c9:40:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:c9:40:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:c9:40:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:c9:40:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:c9:40:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:c9:40:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:c9:40:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:c9:40:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:c9:40:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:c9:40:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-w0qqde0g-ts011f.json b/tests/data/devices/tz3000-w0qqde0g-ts011f.json index 9cee5d0d8..b79edbd4a 100644 --- a/tests/data/devices/tz3000-w0qqde0g-ts011f.json +++ b/tests/data/devices/tz3000-w0qqde0g-ts011f.json @@ -418,300 +418,348 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LightWhenOn", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "LightWhenOn" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LastState", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "LastState" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 208.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 208.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:0e:f6:2e-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:0e:f6:2e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "TuyaChildLockSwitch", + "available": true, + "state": false, + "inverted": false + } } ] }, diff --git a/tests/data/devices/tz3000-wcgyhnp3-ts0222-0x00000045.json b/tests/data/devices/tz3000-wcgyhnp3-ts0222-0x00000045.json index 576365f06..5fb95229c 100644 --- a/tests/data/devices/tz3000-wcgyhnp3-ts0222-0x00000045.json +++ b/tests/data/devices/tz3000-wcgyhnp3-ts0222-0x00000045.json @@ -238,230 +238,274 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 200, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 200 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 0.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:d0:9a:b8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:d0:9a:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-wkai4ga5-ts0044.json b/tests/data/devices/tz3000-wkai4ga5-ts0044.json index 6c1af73cc..1fae422ad 100644 --- a/tests/data/devices/tz3000-wkai4ga5-ts0044.json +++ b/tests/data/devices/tz3000-wkai4ga5-ts0044.json @@ -233,286 +233,334 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-3-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-3-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-4-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-4-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 4, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 4, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:34:3e:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:34:3e:f1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:34:3e:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-wkr3jqmr-ts0004.json b/tests/data/devices/tz3000-wkr3jqmr-ts0004.json index 638f21354..36d6d6b8a 100644 --- a/tests/data/devices/tz3000-wkr3jqmr-ts0004.json +++ b/tests/data/devices/tz3000-wkr3jqmr-ts0004.json @@ -526,342 +526,429 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 4, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 4, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LightWhenOn", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "LightWhenOn" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LastState", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "LastState" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-6-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-6-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "TuyaChildLockSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:6d:17:08", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:6d:17:08-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:6d:17:08", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json b/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json index d3688a77c..d481422e0 100644 --- a/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json +++ b/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json @@ -229,202 +229,245 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LightWhenOn", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "LightWhenOn" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 120, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 120 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -81, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -81 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000051", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000051", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-xa9g7rxs-ts1002.json b/tests/data/devices/tz3000-xa9g7rxs-ts1002.json index 93b7851c7..cd851e866 100644 --- a/tests/data/devices/tz3000-xa9g7rxs-ts1002.json +++ b/tests/data/devices/tz3000-xa9g7rxs-ts1002.json @@ -213,137 +213,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-xabckq1v-ts004f.json b/tests/data/devices/tz3000-xabckq1v-ts004f.json index 8b17a919d..692cb203c 100644 --- a/tests/data/devices/tz3000-xabckq1v-ts004f.json +++ b/tests/data/devices/tz3000-xabckq1v-ts004f.json @@ -300,202 +300,241 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 4, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:1d:21:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:1d:21:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-xkap8wtb-ts000f.json b/tests/data/devices/tz3000-xkap8wtb-ts000f.json index 5b2dfd50e..f8ddb4688 100644 --- a/tests/data/devices/tz3000-xkap8wtb-ts000f.json +++ b/tests/data/devices/tz3000-xkap8wtb-ts000f.json @@ -423,321 +423,377 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "On" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.066 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.066, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 231.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 231.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f0:0f:c0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:07:f0:0f:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-xr3htd96-ts0201.json b/tests/data/devices/tz3000-xr3htd96-ts0201.json index cb92aac08..b277b5d86 100644 --- a/tests/data/devices/tz3000-xr3htd96-ts0201.json +++ b/tests/data/devices/tz3000-xr3htd96-ts0201.json @@ -178,183 +178,217 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 21.21, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 21.21 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 55.47, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 55.47 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:20:2c:b5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:20:2c:b5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:20:2c:b5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-xxacnuab-ts0004.json b/tests/data/devices/tz3000-xxacnuab-ts0004.json index 362efd0d0..9c4f13f53 100644 --- a/tests/data/devices/tz3000-xxacnuab-ts0004.json +++ b/tests/data/devices/tz3000-xxacnuab-ts0004.json @@ -490,286 +490,363 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 4, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 4, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Off", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "Off" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0b:b6:c8:60-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0b:b6:c8:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-yj6k7vfo-ts0041-0x00000044.json b/tests/data/devices/tz3000-yj6k7vfo-ts0041-0x00000044.json index 9c73f5d93..afbfeee87 100644 --- a/tests/data/devices/tz3000-yj6k7vfo-ts0041-0x00000044.json +++ b/tests/data/devices/tz3000-yj6k7vfo-ts0041-0x00000044.json @@ -186,110 +186,129 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 18, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 18 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:5d:da:9e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:5d:da:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-ynmowqk2-ts011f.json b/tests/data/devices/tz3000-ynmowqk2-ts011f.json index 01b9cab06..2f0ac05c6 100644 --- a/tests/data/devices/tz3000-ynmowqk2-ts011f.json +++ b/tests/data/devices/tz3000-ynmowqk2-ts011f.json @@ -424,247 +424,287 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 235.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 235.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:91:a9:a4:a5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:91:a9:a4:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-zl1kmjqx-0x10013001.json b/tests/data/devices/tz3000-zl1kmjqx-0x10013001.json index 2c9020cc2..77cd60eac 100644 --- a/tests/data/devices/tz3000-zl1kmjqx-0x10013001.json +++ b/tests/data/devices/tz3000-zl1kmjqx-0x10013001.json @@ -179,183 +179,219 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 72.0, + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 72.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20.62, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 20.62 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 46.62, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 46.62 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x10013001", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bd:22:a3:f8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bd:22:a3:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x10013001", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-zl1kmjqx-ty0201.json b/tests/data/devices/tz3000-zl1kmjqx-ty0201.json index d4caa6b0b..f7e566ca7 100644 --- a/tests/data/devices/tz3000-zl1kmjqx-ty0201.json +++ b/tests/data/devices/tz3000-zl1kmjqx-ty0201.json @@ -172,160 +172,191 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 3.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 3.2 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 17.43, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 17.43 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:4c:8b:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:4c:8b:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-zv6x8bt2-ts011f.json b/tests/data/devices/tz3000-zv6x8bt2-ts011f.json index de0016bb6..be115d3b8 100644 --- a/tests/data/devices/tz3000-zv6x8bt2-ts011f.json +++ b/tests/data/devices/tz3000-zv6x8bt2-ts011f.json @@ -578,330 +578,385 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LightWhenOn", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-6-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaBacklightModeSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBacklightMode", + "options": [ + "Off", + "LightWhenOn", + "LightWhenOff" + ] + }, + "state": { + "class_name": "TuyaBacklightModeSelectEntity", + "available": true, + "state": "LightWhenOn" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LastState", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-6-power_on_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "TuyaPowerOnStateSelectEntity", + "translation_key": "power_on_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPowerOnState", + "options": [ + "Off", + "On", + "LastState" + ] + }, + "state": { + "class_name": "TuyaPowerOnStateSelectEntity", + "available": true, + "state": "LastState" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 51, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 51 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 1.67, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.67, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 1415.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1415.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 6.076 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 6.076, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 242.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 242.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "TuyaChildLockSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "TuyaChildLockSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "TuyaChildLockSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:03:69:d5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:03:69:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:03:69:d5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:03:69:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3000-zw7yf6yk-ts0001-0x00000048.json b/tests/data/devices/tz3000-zw7yf6yk-ts0001-0x00000048.json index deb8a993f..d835fcbcd 100644 --- a/tests/data/devices/tz3000-zw7yf6yk-ts0001-0x00000048.json +++ b/tests/data/devices/tz3000-zw7yf6yk-ts0001-0x00000048.json @@ -425,263 +425,311 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 0.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:75:01:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:75:01:c9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:75:01:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3002-vaq2bfcu-ts0726-0x00000051.json b/tests/data/devices/tz3002-vaq2bfcu-ts0726-0x00000051.json index ef9d29a91..fd5824660 100644 --- a/tests/data/devices/tz3002-vaq2bfcu-ts0726-0x00000051.json +++ b/tests/data/devices/tz3002-vaq2bfcu-ts0726-0x00000051.json @@ -470,235 +470,285 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-4-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 4, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-4-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 4, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-5-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 5, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-5-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 5, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-6-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 6, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-6-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 6, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000051", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:bb:38:d7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:bb:38:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000051", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3002-zjuvw9zf-ts0726-0x00000055.json b/tests/data/devices/tz3002-zjuvw9zf-ts0726-0x00000055.json index 8dcfff2c0..b6ae252f1 100644 --- a/tests/data/devices/tz3002-zjuvw9zf-ts0726-0x00000055.json +++ b/tests/data/devices/tz3002-zjuvw9zf-ts0726-0x00000055.json @@ -266,151 +266,181 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 184, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 184 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -54, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -54 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:fa:6e:0f-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:fa:6e:0f-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000055", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:fa:6e:0f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:50:fa:6e:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000055", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3040-bb6xaihh-ts0202-0x00000048.json b/tests/data/devices/tz3040-bb6xaihh-ts0202-0x00000048.json index 37de92fcf..ba489dd10 100644 --- a/tests/data/devices/tz3040-bb6xaihh-ts0202-0x00000048.json +++ b/tests/data/devices/tz3040-bb6xaihh-ts0202-0x00000048.json @@ -236,183 +236,219 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 136, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 136 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -66, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -66 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AAA", + "battery_quantity": 2, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": 3.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-09hzmirw-ts0502b-0x0000005b.json b/tests/data/devices/tz3210-09hzmirw-ts0502b-0x0000005b.json index 5d4470c81..2f1311585 100644 --- a/tests/data/devices/tz3210-09hzmirw-ts0502b-0x0000005b.json +++ b/tests/data/devices/tz3210-09hzmirw-ts0502b-0x0000005b.json @@ -304,176 +304,214 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:d3:8d:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:d3:8d:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:d3:8d:53-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:d3:8d:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 56, - "xy_color": null, - "color_temp": 500, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:d3:8d:53-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:93:d3:8d:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 56, + "xy_color": null, + "color_temp": 500, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:d3:8d:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 153, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:d3:8d:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 153 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:d3:8d:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:d3:8d:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:d3:8d:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:d3:8d:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:d3:8d:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000005b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:d3:8d:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:d3:8d:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000005b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-0jxeoadc-ts0049.json b/tests/data/devices/tz3210-0jxeoadc-ts0049.json index e839f2ed7..fb869efb8 100644 --- a/tests/data/devices/tz3210-0jxeoadc-ts0049.json +++ b/tests/data/devices/tz3210-0jxeoadc-ts0049.json @@ -190,184 +190,219 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Irrigation duration", - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-valve_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Irrigation duration", + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-valve_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 1 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 0.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": "Error status", - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-error_status", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "error_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Error status", + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-error_status", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "error_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f1:08:7a:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:08:7a:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f1:08:7a:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-3mpwqzuu-ts110e-0x00000040.json b/tests/data/devices/tz3210-3mpwqzuu-ts110e-0x00000040.json index 416ce5074..c460327ec 100644 --- a/tests/data/devices/tz3210-3mpwqzuu-ts110e-0x00000040.json +++ b/tests/data/devices/tz3210-3mpwqzuu-ts110e-0x00000040.json @@ -382,185 +382,231 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:01:e4:a9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:01:e4:a9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:a9:87-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:01:e4:a9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:a9:87-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:01:e4:a9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:a9:87-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:01:e4:a9:87", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:a9:87-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:01:e4:a9:87", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:01:e4:a9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 176, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:01:e4:a9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 176 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:01:e4:a9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -67, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:01:e4:a9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -67 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:01:e4:a9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:a9:87-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:01:e4:a9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-3ulg9kpo-ts0021-0x00000042.json b/tests/data/devices/tz3210-3ulg9kpo-ts0021-0x00000042.json index 87e531302..8aaf4f31b 100644 --- a/tests/data/devices/tz3210-3ulg9kpo-ts0021-0x00000042.json +++ b/tests/data/devices/tz3210-3ulg9kpo-ts0021-0x00000042.json @@ -180,134 +180,158 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 116, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 116 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -71, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -71 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 0.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000042", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000042", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-3ulg9kpo-ts0021.json b/tests/data/devices/tz3210-3ulg9kpo-ts0021.json index 1863e028c..d64436164 100644 --- a/tests/data/devices/tz3210-3ulg9kpo-ts0021.json +++ b/tests/data/devices/tz3210-3ulg9kpo-ts0021.json @@ -186,134 +186,158 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 0.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:dd:c8:ba-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:97:dd:c8:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-5rta89nj-ts0601.json b/tests/data/devices/tz3210-5rta89nj-ts0601.json index 1164b3ed4..d8f115203 100644 --- a/tests/data/devices/tz3210-5rta89nj-ts0601.json +++ b/tests/data/devices/tz3210-5rta89nj-ts0601.json @@ -223,161 +223,190 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:aa:be:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:be:aa:be:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:aa:be:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:aa:be:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:aa:be:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:aa:be:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:aa:be:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:aa:be:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:aa:be:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:be:aa:be:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:aa:be:f4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:aa:be:f4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:aa:be:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-7vgttna6-ts0001-0x00000073.json b/tests/data/devices/tz3210-7vgttna6-ts0001-0x00000073.json index 26b1fa030..702610b1d 100644 --- a/tests/data/devices/tz3210-7vgttna6-ts0001-0x00000073.json +++ b/tests/data/devices/tz3210-7vgttna6-ts0001-0x00000073.json @@ -141,103 +141,123 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 21, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 21 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -90, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -90 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000073", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000073", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-a04acm9s-ts0001-0x00000077.json b/tests/data/devices/tz3210-a04acm9s-ts0001-0x00000077.json index 9389b8750..de6727191 100644 --- a/tests/data/devices/tz3210-a04acm9s-ts0001-0x00000077.json +++ b/tests/data/devices/tz3210-a04acm9s-ts0001-0x00000077.json @@ -147,103 +147,123 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6e:06:95:22-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6e:06:95:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 156, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 156 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6e:06:95:22-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6e:06:95:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -61, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -61 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6e:06:95:22-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6e:06:95:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6e:06:95:22-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6e:06:95:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000077", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000077", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json b/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json index d9cd9420a..1eb662659 100644 --- a/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json +++ b/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json @@ -304,236 +304,284 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 270, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 1000 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 1000 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 270, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1000, - "mode": "auto", - "native_max_value": 1000, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1000, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 1000 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 255 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 160, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 160 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:c5:5e:60", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:c5:5e:60-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:c5:5e:60", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-comkuwws-ts0502b-0x00000065.json b/tests/data/devices/tz3210-comkuwws-ts0502b-0x00000065.json index ed80452e2..f2388b487 100644 --- a/tests/data/devices/tz3210-comkuwws-ts0502b-0x00000065.json +++ b/tests/data/devices/tz3210-comkuwws-ts0502b-0x00000065.json @@ -304,148 +304,181 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 64, - "xy_color": null, - "color_temp": 500, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 64, + "xy_color": null, + "color_temp": 500, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000065", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:2c:f4:f0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:03:2c:f4:f0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000065", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-dwytrmda-ts130f-0x00000042.json b/tests/data/devices/tz3210-dwytrmda-ts130f-0x00000042.json index 68375a110..14ccef364 100644 --- a/tests/data/devices/tz3210-dwytrmda-ts130f-0x00000042.json +++ b/tests/data/devices/tz3210-dwytrmda-ts130f-0x00000042.json @@ -326,108 +326,129 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:ad:85:85-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:ad:85:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:ad:85:85-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:98:ad:85:85", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:ad:85:85-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:ad:85:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:ad:85:85-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:ad:85:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:ad:85:85-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:ad:85:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:ad:85:85-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:ad:85:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:ad:85:85-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:ad:85:85", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000042", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:ad:85:85-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:ad:85:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000042", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-ehcanwyc-ts0502b-0x00000065.json b/tests/data/devices/tz3210-ehcanwyc-ts0502b-0x00000065.json index 8c705ee79..1a342476f 100644 --- a/tests/data/devices/tz3210-ehcanwyc-ts0502b-0x00000065.json +++ b/tests/data/devices/tz3210-ehcanwyc-ts0502b-0x00000065.json @@ -328,148 +328,181 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 160, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 160 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000065", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:e8:f3:62-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:e8:f3:62", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000065", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-ekjc2rzh-ts0225.json b/tests/data/devices/tz3210-ekjc2rzh-ts0225.json index cb72dc683..1a27ef388 100644 --- a/tests/data/devices/tz3210-ekjc2rzh-ts0225.json +++ b/tests/data/devices/tz3210-ekjc2rzh-ts0225.json @@ -168,104 +168,124 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:44:52:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:b6:44:52:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:44:52:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:44:52:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:44:52:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:44:52:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b6:44:52:d2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:44:52:d2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b6:44:52:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-hxtfthp5-ts0505b.json b/tests/data/devices/tz3210-hxtfthp5-ts0505b.json index 8978faa3a..98b450521 100644 --- a/tests/data/devices/tz3210-hxtfthp5-ts0505b.json +++ b/tests/data/devices/tz3210-hxtfthp5-ts0505b.json @@ -315,180 +315,218 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:d6:8f:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:d6:8f:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:d6:8f:73-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:d6:8f:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:d6:8f:73-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:99:d6:8f:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:d6:8f:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 498, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:d6:8f:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 498 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:d6:8f:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:d6:8f:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:d6:8f:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:d6:8f:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:99:d6:8f:73", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:d6:8f:73-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:99:d6:8f:73", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-j4pdtz9v-ts0001-0x00000062.json b/tests/data/devices/tz3210-j4pdtz9v-ts0001-0x00000062.json index 402407498..e52168dba 100644 --- a/tests/data/devices/tz3210-j4pdtz9v-ts0001-0x00000062.json +++ b/tests/data/devices/tz3210-j4pdtz9v-ts0001-0x00000062.json @@ -203,295 +203,350 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Down movement", - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-down_movement", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "down_movement", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 50, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Down movement", + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-down_movement", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "down_movement", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 50, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Sustain time", - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-sustain_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "sustain_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Sustain time", + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-sustain_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "sustain_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Up movement", - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-up_movement", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "up_movement", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 50, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Up movement", + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-up_movement", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "up_movement", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Mode", - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "SWITCH", - "enum": "FingerBotMode", - "options": [ - "CLICK", - "SWITCH", - "PROGRAM" - ] + "info_object": { + "fallback_name": "Mode", + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "FingerBotMode", + "options": [ + "CLICK", + "SWITCH", + "PROGRAM" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "SWITCH" + } }, { - "fallback_name": "Reverse", - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-reverse", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "reverse", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "FingerBotReverse", - "options": [ - "UP ON", - "UP OFF" - ] + "info_object": { + "fallback_name": "Reverse", + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-reverse", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "reverse", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "FingerBotReverse", + "options": [ + "UP ON", + "UP OFF" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "CR2", + "battery_quantity": 1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2", - "battery_quantity": 1, - "battery_voltage": null + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": "Touch control", - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-touch_control", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "touch_control", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "touch_control", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Touch control", + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-touch_control", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "touch_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "touch_control", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000062", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c8:12:1d:0b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c8:12:1d:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000062", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-jaap6jeb-ts0505b-0x00000065.json b/tests/data/devices/tz3210-jaap6jeb-ts0505b-0x00000065.json index a67fad904..2af972aa3 100644 --- a/tests/data/devices/tz3210-jaap6jeb-ts0505b-0x00000065.json +++ b/tests/data/devices/tz3210-jaap6jeb-ts0505b-0x00000065.json @@ -358,152 +358,185 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:42:5d:80:e8:43-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:42:5d:80:e8:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:42:5d:80:e8:43-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:42:5d:80:e8:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:42:5d:80:e8:43-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:42:5d:80:e8:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 229, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:42:5d:80:e8:43-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "a4:c1:38:42:5d:80:e8:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 229, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:42:5d:80:e8:43-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:42:5d:80:e8:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:42:5d:80:e8:43-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:42:5d:80:e8:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:42:5d:80:e8:43-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:42:5d:80:e8:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:42:5d:80:e8:43-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:42:5d:80:e8:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:42:5d:80:e8:43-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:42:5d:80:e8:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000065", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:42:5d:80:e8:43-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:42:5d:80:e8:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000065", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-jtifm80b-ts0502b-0x00000065.json b/tests/data/devices/tz3210-jtifm80b-ts0502b-0x00000065.json index 4ccd3907b..58997bc0b 100644 --- a/tests/data/devices/tz3210-jtifm80b-ts0502b-0x00000065.json +++ b/tests/data/devices/tz3210-jtifm80b-ts0502b-0x00000065.json @@ -304,148 +304,181 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 120, - "xy_color": null, - "color_temp": 482, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 120, + "xy_color": null, + "color_temp": 482, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 128, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 128 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -68, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -68 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000065", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ca:ce:71-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f6:ca:ce:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000065", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-k1msuvg6-ts110e-0x00000040.json b/tests/data/devices/tz3210-k1msuvg6-ts110e-0x00000040.json index 045a77e53..84c009369 100644 --- a/tests/data/devices/tz3210-k1msuvg6-ts110e-0x00000040.json +++ b/tests/data/devices/tz3210-k1msuvg6-ts110e-0x00000040.json @@ -333,147 +333,180 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:31:4b:13:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:31:4b:13:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:4b:13:3c-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:31:4b:13:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:4b:13:3c-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:31:4b:13:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:31:4b:13:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 176, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:31:4b:13:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 176 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:31:4b:13:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -67, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:31:4b:13:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -67 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:31:4b:13:3c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:4b:13:3c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:31:4b:13:3c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-kjafhwd2-ts0210-0x00000044.json b/tests/data/devices/tz3210-kjafhwd2-ts0210-0x00000044.json index 60f1272fb..ae73986a9 100644 --- a/tests/data/devices/tz3210-kjafhwd2-ts0210-0x00000044.json +++ b/tests/data/devices/tz3210-kjafhwd2-ts0210-0x00000044.json @@ -242,156 +242,185 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3b:15:29:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3b:15:29:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3b:15:29:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 224, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 224 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3b:15:29:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -44, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -44 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 16.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:3b:15:29:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 16.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3b:15:29:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-klv2wul0-ts0505b-0x00000065.json b/tests/data/devices/tz3210-klv2wul0-ts0505b-0x00000065.json index f7c397de4..51a215ac3 100644 --- a/tests/data/devices/tz3210-klv2wul0-ts0505b-0x00000065.json +++ b/tests/data/devices/tz3210-klv2wul0-ts0505b-0x00000065.json @@ -304,152 +304,185 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:27:e7:71-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:27:e7:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:27:e7:71-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:27:e7:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:27:e7:71-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:27:e7:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 500, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:27:e7:71-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:22:27:e7:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 500, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:27:e7:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:27:e7:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 225, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:27:e7:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:27:e7:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 225 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:27:e7:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:27:e7:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:27:e7:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:27:e7:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:27:e7:71-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:27:e7:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000065", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:27:e7:71-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:27:e7:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000065", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-ncw88jfq-ts0201-0x00000083.json b/tests/data/devices/tz3210-ncw88jfq-ts0201-0x00000083.json index cf072d62b..88490e798 100644 --- a/tests/data/devices/tz3210-ncw88jfq-ts0201-0x00000083.json +++ b/tests/data/devices/tz3210-ncw88jfq-ts0201-0x00000083.json @@ -179,156 +179,185 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:03:d8:01-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:03:d8:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:03:d8:01-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:03:d8:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:03:d8:01-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:03:d8:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:03:d8:01-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:03:d8:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:03:d8:01-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:03:d8:01-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:03:d8:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:94:03:d8:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:03:d8:01-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:03:d8:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 21.4, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:03:d8:01-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:03:d8:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 21.4 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:03:d8:01-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:03:d8:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 37.1, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:03:d8:01-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:03:d8:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 37.1 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:03:d8:01-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:03:d8:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000083", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:03:d8:01-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:03:d8:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000083", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-qkj7rujp-ts0201-0x00000043.json b/tests/data/devices/tz3210-qkj7rujp-ts0201-0x00000043.json index 91d89aa69..af48283cf 100644 --- a/tests/data/devices/tz3210-qkj7rujp-ts0201-0x00000043.json +++ b/tests/data/devices/tz3210-qkj7rujp-ts0201-0x00000043.json @@ -191,156 +191,185 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 0.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:9b:48:fa-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:9b:48:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-r5afgmkl-ts0505b-0x10013607.json b/tests/data/devices/tz3210-r5afgmkl-ts0505b-0x10013607.json index e32b79dd8..01eaa6d5e 100644 --- a/tests/data/devices/tz3210-r5afgmkl-ts0505b-0x10013607.json +++ b/tests/data/devices/tz3210-r5afgmkl-ts0505b-0x10013607.json @@ -287,314 +287,377 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.5470054169527734, - 0.4 - ], - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.5470054169527734, + 0.4 + ], + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65535, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 65535 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 10 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 10 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 126, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 126 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x10013607", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:1c:e4:bc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:1c:e4:bc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x10013607", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-ru41azca-ts0049-0x00000040.json b/tests/data/devices/tz3210-ru41azca-ts0049-0x00000040.json index e017d8022..8feb33859 100644 --- a/tests/data/devices/tz3210-ru41azca-ts0049-0x00000040.json +++ b/tests/data/devices/tz3210-ru41azca-ts0049-0x00000040.json @@ -196,133 +196,158 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ff:97:55:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ff:97:55:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ff:97:55:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ff:97:55:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ff:97:55:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 50.0, + "battery_size": "AAA", + "battery_quantity": 4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:ff:97:55:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 50.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 4, - "battery_voltage": null + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ff:97:55:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ff:97:55:6f", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": true, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ff:97:55:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:97:55:6f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ff:97:55:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-sb8x2xci-ts0001-0x00000047.json b/tests/data/devices/tz3210-sb8x2xci-ts0001-0x00000047.json index 21b0cc339..8db0ae8b3 100644 --- a/tests/data/devices/tz3210-sb8x2xci-ts0001-0x00000047.json +++ b/tests/data/devices/tz3210-sb8x2xci-ts0001-0x00000047.json @@ -188,130 +188,155 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000047", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:fd:33:7c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:fd:33:7c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000047", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-sixywxvy-ts0505b.json b/tests/data/devices/tz3210-sixywxvy-ts0505b.json index ab1ddc53d..f4920a7f8 100644 --- a/tests/data/devices/tz3210-sixywxvy-ts0505b.json +++ b/tests/data/devices/tz3210-sixywxvy-ts0505b.json @@ -339,152 +339,185 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.3469901579308766, - 0.1369954985885405 - ], - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.3469901579308766, + 0.1369954985885405 + ], + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:e8:08:9c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:e8:08:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-tgvtvdoc-ts0207-0x00000043.json b/tests/data/devices/tz3210-tgvtvdoc-ts0207-0x00000043.json index db51ffc81..df8c0a25d 100644 --- a/tests/data/devices/tz3210-tgvtvdoc-ts0207-0x00000043.json +++ b/tests/data/devices/tz3210-tgvtvdoc-ts0207-0x00000043.json @@ -211,248 +211,299 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "moisture", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "moisture", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": "Cleaning reminder", - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-cleaning_reminder", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "cleaning_reminder" + "info_object": { + "fallback_name": "Cleaning reminder", + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-cleaning_reminder", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "cleaning_reminder" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 79.0, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 79.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 0.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": null + } }, { - "fallback_name": "Average light intensity last 20 min", - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-average_light_intensity_20mins", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "average_light_intensity_20mins", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": "Average light intensity last 20 min", + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-average_light_intensity_20mins", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "average_light_intensity_20mins", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Rain intensity", - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-rain_intensity", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "mV" + "info_object": { + "fallback_name": "Rain intensity", + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-rain_intensity", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "mV" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Today's max light intensity", - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-todays_max_light_intensity", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "todays_max_light_intensity", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": "Today's max light intensity", + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-todays_max_light_intensity", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "todays_max_light_intensity", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9b:93:04:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9b:93:04:6b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9b:93:04:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-u1dreag7-ts0502b-0x00000065.json b/tests/data/devices/tz3210-u1dreag7-ts0502b-0x00000065.json index fe9dc8b6a..70e098f55 100644 --- a/tests/data/devices/tz3210-u1dreag7-ts0502b-0x00000065.json +++ b/tests/data/devices/tz3210-u1dreag7-ts0502b-0x00000065.json @@ -322,148 +322,181 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 254, - "xy_color": null, - "color_temp": 284, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 254, + "xy_color": null, + "color_temp": 284, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 160, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 160 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000065", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:f3:8b:8a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:f3:8b:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000065", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-ue9kyjnj-ts0502b-0x00000059.json b/tests/data/devices/tz3210-ue9kyjnj-ts0502b-0x00000059.json index 85b646567..6de63ec05 100644 --- a/tests/data/devices/tz3210-ue9kyjnj-ts0502b-0x00000059.json +++ b/tests/data/devices/tz3210-ue9kyjnj-ts0502b-0x00000059.json @@ -304,176 +304,214 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1e:71:5f:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1e:71:5f:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:71:5f:57-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1e:71:5f:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": null, - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:71:5f:57-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:1e:71:5f:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": null, + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1e:71:5f:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 54196, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1e:71:5f:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 54196 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1e:71:5f:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 124, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1e:71:5f:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 124 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1e:71:5f:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -80, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1e:71:5f:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -80 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1e:71:5f:57", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000059", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:71:5f:57-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1e:71:5f:57", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000059", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-umi6vbsz-ts0505b.json b/tests/data/devices/tz3210-umi6vbsz-ts0505b.json index ddcaa587e..8e90c5257 100644 --- a/tests/data/devices/tz3210-umi6vbsz-ts0505b.json +++ b/tests/data/devices/tz3210-umi6vbsz-ts0505b.json @@ -322,180 +322,218 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 1, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 469, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 1, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 469, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 450, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 450 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:34:ff:9a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:34:ff:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-up3pngle-ts0205.json b/tests/data/devices/tz3210-up3pngle-ts0205.json index 11dde0235..e2c4e2c4d 100644 --- a/tests/data/devices/tz3210-up3pngle-ts0205.json +++ b/tests/data/devices/tz3210-up3pngle-ts0205.json @@ -210,156 +210,185 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-wuhzzfqg-ts0202-0x000000a1.json b/tests/data/devices/tz3210-wuhzzfqg-ts0202-0x000000a1.json index 156f84003..b78322245 100644 --- a/tests/data/devices/tz3210-wuhzzfqg-ts0202-0x000000a1.json +++ b/tests/data/devices/tz3210-wuhzzfqg-ts0202-0x000000a1.json @@ -328,263 +328,310 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-2-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-2-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-2-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 22.17, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-2-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.17 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-2-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 55.08, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-2-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 55.08 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-3-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-3-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-3-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 10, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-3-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 10 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:70:e7:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x000000a1", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:70:e7:59-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:70:e7:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x000000a1", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3210-zdrhqmo0-ts0502b-0x00000064.json b/tests/data/devices/tz3210-zdrhqmo0-ts0502b-0x00000064.json index 406b894e6..2b6271978 100644 --- a/tests/data/devices/tz3210-zdrhqmo0-ts0502b-0x00000064.json +++ b/tests/data/devices/tz3210-zdrhqmo0-ts0502b-0x00000064.json @@ -322,148 +322,181 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:d2:67:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:d2:67:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:d2:67:9e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:d2:67:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 3, - "xy_color": null, - "color_temp": 384, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:d2:67:9e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:71:d2:67:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 3, + "xy_color": null, + "color_temp": 384, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:d2:67:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 105, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:d2:67:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 105 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:d2:67:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:d2:67:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:d2:67:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000064", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:d2:67:9e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:d2:67:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000064", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3218-7fiyo3kv-ts000f-0x00000051.json b/tests/data/devices/tz3218-7fiyo3kv-ts000f-0x00000051.json index 97cf69045..25dd048f6 100644 --- a/tests/data/devices/tz3218-7fiyo3kv-ts000f-0x00000051.json +++ b/tests/data/devices/tz3218-7fiyo3kv-ts000f-0x00000051.json @@ -194,146 +194,179 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000051", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:c3:60:d3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6d:c3:60:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000051", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3218-awarhusb-ts0225.json b/tests/data/devices/tz3218-awarhusb-ts0225.json index 14641f266..cd69d9639 100644 --- a/tests/data/devices/tz3218-awarhusb-ts0225.json +++ b/tests/data/devices/tz3218-awarhusb-ts0225.json @@ -185,131 +185,156 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:73:0b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:b1:73:0b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:73:0b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:73:0b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:73:0b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:73:0b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:73:0b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:73:0b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:73:0b:43", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:73:0b:43-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:73:0b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3218-t9ynfz4x-ts0225-0x00000045.json b/tests/data/devices/tz3218-t9ynfz4x-ts0225-0x00000045.json index e1eef827b..3b4bce8c0 100644 --- a/tests/data/devices/tz3218-t9ynfz4x-ts0225-0x00000045.json +++ b/tests/data/devices/tz3218-t9ynfz4x-ts0225-0x00000045.json @@ -192,131 +192,156 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:ee:a6:8a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:ee:a6:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3218-ya5d6wth-ts000f-0x00000064.json b/tests/data/devices/tz3218-ya5d6wth-ts000f-0x00000064.json index e6dc9ff17..d5b50f556 100644 --- a/tests/data/devices/tz3218-ya5d6wth-ts000f-0x00000064.json +++ b/tests/data/devices/tz3218-ya5d6wth-ts000f-0x00000064.json @@ -374,257 +374,329 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 4, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 4, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000064", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:ea:fe:6c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:ea:fe:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000064", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201-0x00000043.json b/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201-0x00000043.json index c355b3b09..2b9c868b9 100644 --- a/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201-0x00000043.json +++ b/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201-0x00000043.json @@ -188,130 +188,155 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 232, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 232 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -42, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -42 + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201.json b/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201.json index 1588e932e..092a74b86 100644 --- a/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201.json +++ b/tests/data/devices/tz3290-7v1k4vufotpowp9z-ts1201.json @@ -188,130 +188,155 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3e:18:f5:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3e:18:f5:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3e:18:f5:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz3290-ot6ewjvmejq5ekhl-ts1201-0x00000043.json b/tests/data/devices/tz3290-ot6ewjvmejq5ekhl-ts1201-0x00000043.json index 723ebf79a..250611bb3 100644 --- a/tests/data/devices/tz3290-ot6ewjvmejq5ekhl-ts1201-0x00000043.json +++ b/tests/data/devices/tz3290-ot6ewjvmejq5ekhl-ts1201-0x00000043.json @@ -202,160 +202,189 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:61:a8:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:61:a8:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:61:a8:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 120, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:61:a8:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 120 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:61:a8:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:61:a8:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:61:a8:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 61.0, + "battery_voltage": 1.3 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:15:61:a8:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 61.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 1.3 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:61:a8:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:15:61:a8:f8", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:61:a8:f8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:61:a8:f8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:61:a8:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tz6210-duv6fhwt-ts0601-0x00000042.json b/tests/data/devices/tz6210-duv6fhwt-ts0601-0x00000042.json index b2fb623ef..57cd88c2d 100644 --- a/tests/data/devices/tz6210-duv6fhwt-ts0601-0x00000042.json +++ b/tests/data/devices/tz6210-duv6fhwt-ts0601-0x00000042.json @@ -159,259 +159,309 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } }, { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "tamper" + "info_object": { + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "tamper" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motionless detection", - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-motionless_detection", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "motionless_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motionless detection", + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-motionless_detection", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "motionless_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:81:c4:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000042", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:81:c4:0f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:81:c4:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000042", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tzb210-417ikxay-ts0505b-0x00000040.json b/tests/data/devices/tzb210-417ikxay-ts0505b-0x00000040.json index 7822301fe..84b8e8d2d 100644 --- a/tests/data/devices/tzb210-417ikxay-ts0505b-0x00000040.json +++ b/tests/data/devices/tzb210-417ikxay-ts0505b-0x00000040.json @@ -322,180 +322,218 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:e7:c4:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:e7:c4:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:e7:c4:28-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:e7:c4:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 254, - "xy_color": [ - 0.0, - 0.0 - ], - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "xy", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:e7:c4:28-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:81:e7:c4:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 254, + "xy_color": [ + 0.0, + 0.0 + ], + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "xy", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:e7:c4:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 153, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:e7:c4:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 153 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:e7:c4:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:e7:c4:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:e7:c4:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:e7:c4:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:81:e7:c4:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:81:e7:c4:28-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:81:e7:c4:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tzb210-lmqquxus-ts0502b-0x00000040.json b/tests/data/devices/tzb210-lmqquxus-ts0502b-0x00000040.json index 1d969127f..b5b834637 100644 --- a/tests/data/devices/tzb210-lmqquxus-ts0502b-0x00000040.json +++ b/tests/data/devices/tzb210-lmqquxus-ts0502b-0x00000040.json @@ -322,176 +322,214 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:78:f7:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:78:f7:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:78:f7:ef-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:78:f7:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 232, - "xy_color": null, - "color_temp": 0, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:78:f7:ef-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:02:78:f7:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 232, + "xy_color": null, + "color_temp": 0, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:78:f7:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 153, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:78:f7:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 153 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:78:f7:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 132, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:78:f7:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 132 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:78:f7:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -67, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:78:f7:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -67 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:78:f7:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:78:f7:ef-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:78:f7:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tzb210-rawkvnnm-ts0502b-0x00000040.json b/tests/data/devices/tzb210-rawkvnnm-ts0502b-0x00000040.json index 6a4c8fd27..c478b6247 100644 --- a/tests/data/devices/tzb210-rawkvnnm-ts0502b-0x00000040.json +++ b/tests/data/devices/tzb210-rawkvnnm-ts0502b-0x00000040.json @@ -340,176 +340,214 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 84, - "xy_color": null, - "color_temp": 0, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 84, + "xy_color": null, + "color_temp": 0, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 153, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 153 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 138, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 138 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:aa:9f:39-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:aa:9f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-1n2zev06-ts0601.json b/tests/data/devices/tze200-1n2zev06-ts0601.json index 7948e5220..69195e7d9 100644 --- a/tests/data/devices/tze200-1n2zev06-ts0601.json +++ b/tests/data/devices/tze200-1n2zev06-ts0601.json @@ -208,232 +208,277 @@ "zha_lib_entities": { "select": [ { - "fallback_name": "Weather delay", - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-weather_delay", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "weather_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaValveWeatherDelay", - "options": [ - "Disabled", - "Delayed 24h", - "Delayed 48h", - "Delayed 72h" - ] + "info_object": { + "fallback_name": "Weather delay", + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-weather_delay", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "weather_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaValveWeatherDelay", + "options": [ + "Disabled", + "Delayed 24h", + "Delayed 48h", + "Delayed 72h" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "L" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": null, + "device_type": "Water Metering", + "zcl_unit_of_measurement": 7 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 3, - "unit": "L", - "device_type": "Water Metering", - "status": null, - "zcl_unit_of_measurement": 7 + ] }, { - "fallback_name": "Last valve open duration", - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-last_valve_open_duration", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "last_valve_open_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "min" + "info_object": { + "fallback_name": "Last valve open duration", + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-last_valve_open_duration", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "last_valve_open_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "min" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Time left", - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-time_left", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "time_left", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "s" + "info_object": { + "fallback_name": "Time left", + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-time_left", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "time_left", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "s" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Timer state", - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-timer_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "timer_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Timer state", + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-timer_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "timer_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:76:9d:e2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:76:9d:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-2aaelwxk-ts0225.json b/tests/data/devices/tze200-2aaelwxk-ts0225.json index 87f2e7c51..c19814853 100644 --- a/tests/data/devices/tze200-2aaelwxk-ts0225.json +++ b/tests/data/devices/tze200-2aaelwxk-ts0225.json @@ -594,551 +594,656 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": "Motion detection distance", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-large_motion_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "large_motion_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Motion detection distance", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-large_motion_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "large_motion_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motion detection sensitivity", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-large_motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "large_motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion detection sensitivity", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-large_motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "large_motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Medium motion detection distance", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-medium_motion_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "medium_motion_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": 0, - "native_step": 0.01, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Medium motion detection distance", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-medium_motion_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "medium_motion_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": 0, + "native_step": 0.01, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Medium motion detection sensitivity", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-medium_motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "medium_motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Medium motion detection sensitivity", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-medium_motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "medium_motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 28800, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 28800, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Small motion detection distance", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-small_motion_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "small_motion_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": 0, - "native_step": 0.01, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Small motion detection distance", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-small_motion_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "small_motion_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": 0, + "native_step": 0.01, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Small motion detection sensitivity", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-small_motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "small_motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Small motion detection sensitivity", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-small_motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "small_motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "fading_time", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-2-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "fading_time", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-2-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "large_sensitivity", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-3-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "large_sensitivity", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-3-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "large_distance", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-4-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1000, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "large_distance", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-4-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 4, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1000, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "small_sensitivity", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-5-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "small_sensitivity", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-5-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 5, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "small_distance", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-6-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 6, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "small_distance", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-6-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 6, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "static_sensitivity", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-7-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 7, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "static_sensitivity", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-7-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 7, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "static_distance", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-8-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "static_distance", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-8-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 8, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Motion state", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-motion_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motion_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaPresenceStateV02", - "options": [ - "Unoccupied", - "Large", - "Medium", - "Small", - "Huge", - "Gigantic" - ] + "info_object": { + "fallback_name": "Motion state", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-motion_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motion_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPresenceStateV02", + "options": [ + "Unoccupied", + "Large", + "Medium", + "Small", + "Huge", + "Gigantic" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 1 + } } ], "switch": [ { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:94:85:f7:5f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:94:85:f7:5f-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:94:85:f7:5f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ] }, diff --git a/tests/data/devices/tze200-2ekuz3dz-ts0601.json b/tests/data/devices/tze200-2ekuz3dz-ts0601.json index 1d11cd5d9..342a7ebcc 100644 --- a/tests/data/devices/tze200-2ekuz3dz-ts0601.json +++ b/tests/data/devices/tze200-2ekuz3dz-ts0601.json @@ -150,80 +150,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b0:68:9a:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b0:68:9a:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b0:68:9a:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b0:68:9a:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b0:68:9a:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b0:68:9a:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b0:68:9a:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b0:68:9a:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b0:68:9a:0a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b0:68:9a:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b0:68:9a:0a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b0:68:9a:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-2gtsuokt-ts0601.json b/tests/data/devices/tze200-2gtsuokt-ts0601.json index f0c566c20..488392aa1 100644 --- a/tests/data/devices/tze200-2gtsuokt-ts0601.json +++ b/tests/data/devices/tze200-2gtsuokt-ts0601.json @@ -226,80 +226,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:f3:f3:1d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:f3:f3:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:f3:f3:1d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:f3:f3:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:f3:f3:1d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:f3:f3:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:f3:f3:1d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:f3:f3:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:f3:f3:1d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:f3:f3:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:f3:f3:1d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:f3:f3:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-2se8efxh-ts0601-0x00000048.json b/tests/data/devices/tze200-2se8efxh-ts0601-0x00000048.json index e8a42920e..9070a17d1 100644 --- a/tests/data/devices/tze200-2se8efxh-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-2se8efxh-ts0601-0x00000048.json @@ -177,156 +177,186 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "SoilMoisture", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:bb:ba:02-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:bb:ba:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-3t91nb6k-ts0601-0x00000046.json b/tests/data/devices/tze200-3t91nb6k-ts0601-0x00000046.json index a7a5a5ff6..394f88e8f 100644 --- a/tests/data/devices/tze200-3t91nb6k-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-3t91nb6k-ts0601-0x00000046.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ee:04:18:fc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ee:04:18:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ee:04:18:fc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ee:04:18:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ee:04:18:fc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ee:04:18:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ee:04:18:fc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ee:04:18:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ee:04:18:fc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ee:04:18:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ee:04:18:fc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ee:04:18:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-3towulqd-ts0601-0x00000046.json b/tests/data/devices/tze200-3towulqd-ts0601-0x00000046.json index d902bf736..f0514577f 100644 --- a/tests/data/devices/tze200-3towulqd-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-3towulqd-ts0601-0x00000046.json @@ -210,264 +210,314 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Illuminance interval", - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-illuminance_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "illuminance_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 720, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Illuminance interval", + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-illuminance_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "illuminance_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 720, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-fading_time", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": " 10 seconds", - "enum": "TuyaMotionFadeTime", - "options": [ - " 10 seconds", - " 30 seconds", - " 60 seconds", - " 120 seconds" - ] + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-fading_time", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaMotionFadeTime", + "options": [ + " 10 seconds", + " 30 seconds", + " 60 seconds", + " 120 seconds" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": " 10 seconds" + } }, { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Medium", - "enum": "TuyaMotionPresenceSensitivity", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaMotionPresenceSensitivity", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Medium" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 10.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 340, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 340 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:02:44:6a:44-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:02:44:6a:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:02:44:6a:44-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:02:44:6a:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-3ylew7b4-ts0601.json b/tests/data/devices/tze200-3ylew7b4-ts0601.json index a72c19d18..dec134d54 100644 --- a/tests/data/devices/tze200-3ylew7b4-ts0601.json +++ b/tests/data/devices/tze200-3ylew7b4-ts0601.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:40:50:25-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:40:50:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 128, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:40:50:25-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:40:50:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 128 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:40:50:25-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:40:50:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -79, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:40:50:25-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:40:50:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -79 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:40:50:25-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:40:50:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:40:50:25-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:40:50:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-4utwozi2-ts0601-0x00000043.json b/tests/data/devices/tze200-4utwozi2-ts0601-0x00000043.json index ec86ee701..8d3287739 100644 --- a/tests/data/devices/tze200-4utwozi2-ts0601-0x00000043.json +++ b/tests/data/devices/tze200-4utwozi2-ts0601-0x00000043.json @@ -195,286 +195,346 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "error_or_battery_low" + "info_object": { + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "error_or_battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 220, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 220 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -45, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -45 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ed:f9:81:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ed:f9:81:44-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ed:f9:81:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-4vobcgd3-ts0601-0x00000053.json b/tests/data/devices/tze200-4vobcgd3-ts0601-0x00000053.json index 1c4b76830..253c5d46c 100644 --- a/tests/data/devices/tze200-4vobcgd3-ts0601-0x00000053.json +++ b/tests/data/devices/tze200-4vobcgd3-ts0601-0x00000053.json @@ -134,80 +134,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:51:f6:e4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:51:f6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 132, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:51:f6:e4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:51:f6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 132 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:51:f6:e4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:51:f6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -67, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:51:f6:e4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:51:f6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -67 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ae:51:f6:e4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ae:51:f6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000053", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ae:51:f6:e4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ae:51:f6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000053", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-4wxtg5y9-ts0601.json b/tests/data/devices/tze200-4wxtg5y9-ts0601.json index 513d9562a..2385b6f7b 100644 --- a/tests/data/devices/tze200-4wxtg5y9-ts0601.json +++ b/tests/data/devices/tze200-4wxtg5y9-ts0601.json @@ -192,80 +192,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:f7:e2:fc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8b:f7:e2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:f7:e2:fc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8b:f7:e2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:f7:e2:fc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8b:f7:e2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:f7:e2:fc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8b:f7:e2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:f7:e2:fc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8b:f7:e2:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:f7:e2:fc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8b:f7:e2:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-579lguh2-ts0601-0x00000044.json b/tests/data/devices/tze200-579lguh2-ts0601-0x00000044.json index 37b6f73f9..d9e5e5a3e 100644 --- a/tests/data/devices/tze200-579lguh2-ts0601-0x00000044.json +++ b/tests/data/devices/tze200-579lguh2-ts0601-0x00000044.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7e:7b:6f:42-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7e:7b:6f:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 76, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7e:7b:6f:42-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7e:7b:6f:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 76 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7e:7b:6f:42-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7e:7b:6f:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -92, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7e:7b:6f:42-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7e:7b:6f:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -92 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7e:7b:6f:42-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7e:7b:6f:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7e:7b:6f:42-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7e:7b:6f:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-68nvbio9-ts0601.json b/tests/data/devices/tze200-68nvbio9-ts0601.json index 8ba0928af..dcb80a04f 100644 --- a/tests/data/devices/tze200-68nvbio9-ts0601.json +++ b/tests/data/devices/tze200-68nvbio9-ts0601.json @@ -291,108 +291,129 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:21:db:80-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:21:db:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:21:db:80-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:2e:21:db:80", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 0, + "current_tilt_position": null, + "state": "closed", + "is_opening": false, + "is_closing": false, + "is_closed": true, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:21:db:80-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:21:db:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:21:db:80-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:21:db:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:21:db:80-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:21:db:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:21:db:80-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:21:db:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:21:db:80-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:21:db:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:21:db:80-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:21:db:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-6rdj8dzm-ts0601.json b/tests/data/devices/tze200-6rdj8dzm-ts0601.json index 3c637d314..9b1132f1b 100644 --- a/tests/data/devices/tze200-6rdj8dzm-ts0601.json +++ b/tests/data/devices/tze200-6rdj8dzm-ts0601.json @@ -188,286 +188,346 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "error_or_battery_low" + "info_object": { + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "error_or_battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:a8:b8:ca-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:00:a8:b8:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-7bztmfm1-ts0601-0x00000046.json b/tests/data/devices/tze200-7bztmfm1-ts0601-0x00000046.json index 526ddaa59..3d746ae11 100644 --- a/tests/data/devices/tze200-7bztmfm1-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-7bztmfm1-ts0601-0x00000046.json @@ -199,218 +199,263 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "CarbonDioxideConcentration", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "PM25", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1067", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "FormaldehydeConcentration", - "translation_key": "formaldehyde", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1067", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "FormaldehydeConcentration", + "translation_key": "formaldehyde", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "FormaldehydeConcentration", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "VOCLevel", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:d5:da:b7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:d5:da:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-7iqgciln-ts0601-0x00000041.json b/tests/data/devices/tze200-7iqgciln-ts0601-0x00000041.json index e480479fd..4c495e033 100644 --- a/tests/data/devices/tze200-7iqgciln-ts0601-0x00000041.json +++ b/tests/data/devices/tze200-7iqgciln-ts0601-0x00000041.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2a:c0:6c:7e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2a:c0:6c:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 164, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2a:c0:6c:7e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2a:c0:6c:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 164 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2a:c0:6c:7e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2a:c0:6c:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -59, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2a:c0:6c:7e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2a:c0:6c:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -59 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2a:c0:6c:7e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2a:c0:6c:7e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2a:c0:6c:7e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2a:c0:6c:7e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-7ytb3h8u-ts0601-0x00000048.json b/tests/data/devices/tze200-7ytb3h8u-ts0601-0x00000048.json index 643bdaae3..6bfe21592 100644 --- a/tests/data/devices/tze200-7ytb3h8u-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-7ytb3h8u-ts0601-0x00000048.json @@ -264,368 +264,438 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Irrigation cycles", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_cycles", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_cycles", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Irrigation cycles", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_cycles", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_cycles", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": "Irrigation interval", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Irrigation interval", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": "Irrigation target", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_target", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_target", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Irrigation target", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_target", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_target", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } } ], "select": [ { - "fallback_name": "Irrigation mode", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "irrigation_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Duration", - "enum": "GiexIrrigationMode", - "options": [ - "Duration", - "Capacity" - ] + "info_object": { + "fallback_name": "Irrigation mode", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "irrigation_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "GiexIrrigationMode", + "options": [ + "Duration", + "Capacity" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Duration" + } }, { - "fallback_name": "Weather delay", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-weather_delay", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "weather_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "GiexIrrigationWeatherDelay", - "options": [ - "NoDelay", - "TwentyFourHourDelay", - "FortyEightHourDelay", - "SeventyTwoHourDelay" - ] + "info_object": { + "fallback_name": "Weather delay", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-weather_delay", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "weather_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "GiexIrrigationWeatherDelay", + "options": [ + "NoDelay", + "TwentyFourHourDelay", + "FortyEightHourDelay", + "SeventyTwoHourDelay" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 200.0, + "battery_size": "AA", + "battery_quantity": 4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 200.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "L" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Water Metering", + "zcl_unit_of_measurement": 7 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "L", - "device_type": "Water Metering", - "status": null, - "zcl_unit_of_measurement": 7 + ] }, { - "fallback_name": "Irrigation duration", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_duration", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "00:00:00,0", - "suggested_display_precision": null, - "unit": "s" + "info_object": { + "fallback_name": "Irrigation duration", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_duration", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "s" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": "00:00:00,0" + } }, { - "fallback_name": "Irrigation end time", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_end_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_end_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "05:36:38", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Irrigation end time", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_end_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_end_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": "05:36:38" + } }, { - "fallback_name": "Irrigation start time", - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_start_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_start_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "05:36:38", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Irrigation start time", + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-irrigation_start_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_start_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": "05:36:38" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a1:d9:6c:74-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a1:d9:6c:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-81isopgh-ts0601-0x00000048.json b/tests/data/devices/tze200-81isopgh-ts0601-0x00000048.json index 928b52d5f..8d9275bdc 100644 --- a/tests/data/devices/tze200-81isopgh-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-81isopgh-ts0601-0x00000048.json @@ -294,262 +294,312 @@ "zha_lib_entities": { "select": [ { - "fallback_name": "Weather delay", - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-weather_delay", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "weather_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaValveWeatherDelay", - "options": [ - "Disabled", - "Delayed 24h", - "Delayed 48h", - "Delayed 72h" - ] + "info_object": { + "fallback_name": "Weather delay", + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-weather_delay", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "weather_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaValveWeatherDelay", + "options": [ + "Disabled", + "Delayed 24h", + "Delayed 48h", + "Delayed 72h" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "L" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Water Metering", + "zcl_unit_of_measurement": 7 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "L", - "device_type": "Water Metering", - "status": null, - "zcl_unit_of_measurement": 7 + ] }, { - "fallback_name": "Last valve open duration", - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-last_valve_open_duration", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "last_valve_open_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "min" + "info_object": { + "fallback_name": "Last valve open duration", + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-last_valve_open_duration", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "last_valve_open_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "min" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Time left", - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-time_left", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "time_left", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "s" + "info_object": { + "fallback_name": "Time left", + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-time_left", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "time_left", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "s" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Timer state", - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-timer_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "timer_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Timer state", + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-timer_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "timer_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:df:e1:f9:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:e1:f9:56-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:df:e1:f9:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-86nbew0j-ts0601.json b/tests/data/devices/tze200-86nbew0j-ts0601.json index 8416dc16c..8d9d1eb23 100644 --- a/tests/data/devices/tze200-86nbew0j-ts0601.json +++ b/tests/data/devices/tze200-86nbew0j-ts0601.json @@ -133,80 +133,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:c5:16:fc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:c5:16:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:c5:16:fc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:c5:16:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:c5:16:fc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:c5:16:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:c5:16:fc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:c5:16:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0d:c5:16:fc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0d:c5:16:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:c5:16:fc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0d:c5:16:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-8whfphjv-ts0601-0x00000048.json b/tests/data/devices/tze200-8whfphjv-ts0601-0x00000048.json index 1a27cf35a..578669da2 100644 --- a/tests/data/devices/tze200-8whfphjv-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-8whfphjv-ts0601-0x00000048.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:05:90:9e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:05:90:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:05:90:9e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:05:90:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:05:90:9e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:05:90:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:05:90:9e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:05:90:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f9:05:90:9e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f9:05:90:9e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f9:05:90:9e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f9:05:90:9e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-9caxna4s-ts0301-0x00000049.json b/tests/data/devices/tze200-9caxna4s-ts0301-0x00000049.json index c2016c691..84fb46c82 100644 --- a/tests/data/devices/tze200-9caxna4s-ts0301-0x00000049.json +++ b/tests/data/devices/tze200-9caxna4s-ts0301-0x00000049.json @@ -232,188 +232,223 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 35.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] }, { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } } ], "update": [ { - "fallback_name": null, - "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "e8:e0:7e:ff:fe:4a:9c:f1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "e8:e0:7e:ff:fe:4a:9c:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-9xfjixap-ts0601-0x00000043.json b/tests/data/devices/tze200-9xfjixap-ts0601-0x00000043.json index 266700d25..3aeeedfd6 100644 --- a/tests/data/devices/tze200-9xfjixap-ts0601-0x00000043.json +++ b/tests/data/devices/tze200-9xfjixap-ts0601-0x00000043.json @@ -195,286 +195,346 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "error_or_battery_low" + "info_object": { + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "error_or_battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:e3:cc:ac-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:e3:cc:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-a0syesf5-ts0601.json b/tests/data/devices/tze200-a0syesf5-ts0601.json index 318b0644e..6ba69fd37 100644 --- a/tests/data/devices/tze200-a0syesf5-ts0601.json +++ b/tests/data/devices/tze200-a0syesf5-ts0601.json @@ -153,120 +153,148 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 2, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 2, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:68:ad:a9:bd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:68:ad:a9:bd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-a1dia7ml-ts0601.json b/tests/data/devices/tze200-a1dia7ml-ts0601.json index e3752343d..44668f91f 100644 --- a/tests/data/devices/tze200-a1dia7ml-ts0601.json +++ b/tests/data/devices/tze200-a1dia7ml-ts0601.json @@ -133,80 +133,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b7:bf:3b:5a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b7:bf:3b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b7:bf:3b:5a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b7:bf:3b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b7:bf:3b:5a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b7:bf:3b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b7:bf:3b:5a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b7:bf:3b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b7:bf:3b:5a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b7:bf:3b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b7:bf:3b:5a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b7:bf:3b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-a7sghmms-ts0601-0x00000048.json b/tests/data/devices/tze200-a7sghmms-ts0601-0x00000048.json index 66518c740..9333d4def 100644 --- a/tests/data/devices/tze200-a7sghmms-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-a7sghmms-ts0601-0x00000048.json @@ -270,368 +270,438 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Irrigation cycles", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_cycles", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_cycles", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Irrigation cycles", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_cycles", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_cycles", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": "Irrigation interval", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Irrigation interval", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": "Irrigation target", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_target", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_target", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Irrigation target", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_target", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_target", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } } ], "select": [ { - "fallback_name": "Irrigation mode", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "irrigation_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Duration", - "enum": "GiexIrrigationMode", - "options": [ - "Duration", - "Capacity" - ] + "info_object": { + "fallback_name": "Irrigation mode", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "irrigation_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "GiexIrrigationMode", + "options": [ + "Duration", + "Capacity" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Duration" + } }, { - "fallback_name": "Weather delay", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-weather_delay", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "weather_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "NoDelay", - "enum": "GiexIrrigationWeatherDelay", - "options": [ - "NoDelay", - "TwentyFourHourDelay", - "FortyEightHourDelay", - "SeventyTwoHourDelay" - ] + "info_object": { + "fallback_name": "Weather delay", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-weather_delay", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "weather_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "GiexIrrigationWeatherDelay", + "options": [ + "NoDelay", + "TwentyFourHourDelay", + "FortyEightHourDelay", + "SeventyTwoHourDelay" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "NoDelay" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 90.0, + "battery_size": "AA", + "battery_quantity": 4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 90.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "L" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Water Metering", + "zcl_unit_of_measurement": 7 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "L", - "device_type": "Water Metering", - "status": null, - "zcl_unit_of_measurement": 7 + ] }, { - "fallback_name": "Irrigation duration", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_duration", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 6, - "suggested_display_precision": null, - "unit": "s" + "info_object": { + "fallback_name": "Irrigation duration", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_duration", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "s" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 6 + } }, { - "fallback_name": "Irrigation end time", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_end_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_end_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "2025-07-05 09:33:23.709383+04:00", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Irrigation end time", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_end_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_end_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": "2025-07-05 09:33:23.709383+04:00" + } }, { - "fallback_name": "Irrigation start time", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_start_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_start_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "2025-07-05 09:33:17.905219+04:00", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Irrigation start time", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_start_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_start_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": "2025-07-05 09:33:17.905219+04:00" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-a7sghmms-ts0601.json b/tests/data/devices/tze200-a7sghmms-ts0601.json index 70e21d3bd..b500b5e6e 100644 --- a/tests/data/devices/tze200-a7sghmms-ts0601.json +++ b/tests/data/devices/tze200-a7sghmms-ts0601.json @@ -190,368 +190,438 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Irrigation cycles", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_cycles", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_cycles", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Irrigation cycles", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_cycles", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_cycles", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Irrigation interval", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Irrigation interval", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Irrigation target", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_target", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_target", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Irrigation target", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_target", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_target", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Irrigation mode", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "irrigation_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "GiexIrrigationMode", - "options": [ - "Duration", - "Capacity" - ] + "info_object": { + "fallback_name": "Irrigation mode", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "irrigation_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "GiexIrrigationMode", + "options": [ + "Duration", + "Capacity" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Weather delay", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-weather_delay", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "weather_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "GiexIrrigationWeatherDelay", - "options": [ - "NoDelay", - "TwentyFourHourDelay", - "FortyEightHourDelay", - "SeventyTwoHourDelay" - ] + "info_object": { + "fallback_name": "Weather delay", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-weather_delay", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "weather_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "GiexIrrigationWeatherDelay", + "options": [ + "NoDelay", + "TwentyFourHourDelay", + "FortyEightHourDelay", + "SeventyTwoHourDelay" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 183, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 183 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "L" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": null, + "device_type": "Water Metering", + "zcl_unit_of_measurement": 7 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 3, - "unit": "L", - "device_type": "Water Metering", - "status": null, - "zcl_unit_of_measurement": 7 + ] }, { - "fallback_name": "Irrigation duration", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_duration", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "s" + "info_object": { + "fallback_name": "Irrigation duration", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_duration", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "s" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Irrigation end time", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_end_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_end_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Irrigation end time", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_end_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_end_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Irrigation start time", - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_start_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_start_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Irrigation start time", + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-irrigation_start_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_start_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b5:0f:0b:2f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b5:0f:0b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-abatw3kj-ts0601-0x00000046.json b/tests/data/devices/tze200-abatw3kj-ts0601-0x00000046.json index 40677144e..b44e634b3 100644 --- a/tests/data/devices/tze200-abatw3kj-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-abatw3kj-ts0601-0x00000046.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:15:fd:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:15:fd:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:15:fd:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:15:fd:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:15:fd:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:15:fd:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:15:fd:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:15:fd:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:15:fd:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:15:fd:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:15:fd:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:15:fd:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-agumlajc-ts0601.json b/tests/data/devices/tze200-agumlajc-ts0601.json index 5cd9d8980..13821c513 100644 --- a/tests/data/devices/tze200-agumlajc-ts0601.json +++ b/tests/data/devices/tze200-agumlajc-ts0601.json @@ -188,80 +188,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:2b:64:9f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:2b:64:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:2b:64:9f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:2b:64:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:2b:64:9f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:2b:64:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:2b:64:9f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:2b:64:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fb:2b:64:9f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fb:2b:64:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fb:2b:64:9f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fb:2b:64:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-akjefhj5-ts0601.json b/tests/data/devices/tze200-akjefhj5-ts0601.json index d04a65f20..a193f461e 100644 --- a/tests/data/devices/tze200-akjefhj5-ts0601.json +++ b/tests/data/devices/tze200-akjefhj5-ts0601.json @@ -133,80 +133,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:46:3c:81-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:46:3c:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:46:3c:81-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:46:3c:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:46:3c:81-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:46:3c:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:46:3c:81-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:46:3c:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:46:3c:81-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:46:3c:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:46:3c:81-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:46:3c:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-aoclfnxz-ts0601.json b/tests/data/devices/tze200-aoclfnxz-ts0601.json index d10c84300..8752d91c4 100644 --- a/tests/data/devices/tze200-aoclfnxz-ts0601.json +++ b/tests/data/devices/tze200-aoclfnxz-ts0601.json @@ -279,228 +279,278 @@ "zha_lib_entities": { "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 21.5, - "outdoor_temperature": null, - "target_temperature": 18.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1800, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 21.5, + "outdoor_temperature": null, + "target_temperature": 18.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1800, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:33:78:02:42-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:33:78:02:42", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:78:02:42-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:33:78:02:42", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-b6wax7g0-ts0601-0x00000043.json b/tests/data/devices/tze200-b6wax7g0-ts0601-0x00000043.json index 09beede27..77ac9a676 100644 --- a/tests/data/devices/tze200-b6wax7g0-ts0601-0x00000043.json +++ b/tests/data/devices/tze200-b6wax7g0-ts0601-0x00000043.json @@ -259,307 +259,372 @@ "zha_lib_entities": { "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "BecaThermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 16.0, - "outdoor_temperature": null, - "target_temperature": 14.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 401, - "fan_modes": null, - "preset_modes": [ - "none", - "away", - "Schedule", - "eco", - "boost", - "Temporary manual" - ], - "hvac_modes": [ - "heat" - ], - "sys_mode": "[]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1400, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "BecaThermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 401, + "fan_modes": null, + "preset_modes": [ + "none", + "away", + "Schedule", + "eco", + "boost", + "Temporary manual" + ], + "hvac_modes": [ + "heat" + ] + }, + "state": { + "class_name": "BecaThermostat", + "available": true, + "current_temperature": 16.0, + "outdoor_temperature": null, + "target_temperature": 14.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1400, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "heating", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "heating" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:27:4c:e0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:27:4c:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-bcusnqt8-ts0601.json b/tests/data/devices/tze200-bcusnqt8-ts0601.json index c1d045df6..09385bcda 100644 --- a/tests/data/devices/tze200-bcusnqt8-ts0601.json +++ b/tests/data/devices/tze200-bcusnqt8-ts0601.json @@ -133,80 +133,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:88:c9:0a:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:88:c9:0a:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:88:c9:0a:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:88:c9:0a:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:88:c9:0a:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:88:c9:0a:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:88:c9:0a:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:88:c9:0a:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:88:c9:0a:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:88:c9:0a:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:88:c9:0a:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:88:c9:0a:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-bkkmqmyo-ts0601-0x00000041.json b/tests/data/devices/tze200-bkkmqmyo-ts0601-0x00000041.json index 559f3e9c0..48fa08168 100644 --- a/tests/data/devices/tze200-bkkmqmyo-ts0601-0x00000041.json +++ b/tests/data/devices/tze200-bkkmqmyo-ts0601-0x00000041.json @@ -565,249 +565,286 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 160, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 160 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 1396.8, + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1396.8, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummationReceived", + "available": true, + "state": 1253.2, + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1253.2, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 8.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 8.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 50.0 + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 50.0, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 7 + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 7, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-16", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 16, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-16", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 16, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:88:33:32-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:88:33:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ab:88:33:32-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ab:88:33:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-bvrlmajk-ts0601.json b/tests/data/devices/tze200-bvrlmajk-ts0601.json index 536c1883f..0366c4be3 100644 --- a/tests/data/devices/tze200-bvrlmajk-ts0601.json +++ b/tests/data/devices/tze200-bvrlmajk-ts0601.json @@ -133,80 +133,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:62:e5:8a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:62:e5:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:62:e5:8a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:62:e5:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:62:e5:8a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:62:e5:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:62:e5:8a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:62:e5:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:62:e5:8a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:62:e5:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:62:e5:8a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:62:e5:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-byzdayie-ts0601.json b/tests/data/devices/tze200-byzdayie-ts0601.json index 9b0e94b8e..2b999c2c0 100644 --- a/tests/data/devices/tze200-byzdayie-ts0601.json +++ b/tests/data/devices/tze200-byzdayie-ts0601.json @@ -499,197 +499,225 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 8994.84, + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 8994.84, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 184.8 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 184.8, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 1.499 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.499, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 229.7 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 229.7, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:70:11:36-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:70:11:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:70:11:36-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:70:11:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-c88teujp-ts0601-0x00000055.json b/tests/data/devices/tze200-c88teujp-ts0601-0x00000055.json index 0d341e9d5..4ec67a698 100644 --- a/tests/data/devices/tze200-c88teujp-ts0601-0x00000055.json +++ b/tests/data/devices/tze200-c88teujp-ts0601-0x00000055.json @@ -262,390 +262,470 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Battery low", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "battery_low" + "info_object": { + "fallback_name": "Battery low", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 19.0, - "outdoor_temperature": null, - "target_temperature": 20.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 19.0, + "outdoor_temperature": null, + "target_temperature": 20.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": "Valve position", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-valve_position", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "valve_position", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": "Valve position", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-valve_position", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "valve_position", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Away mode", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-away_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "away_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "away_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Away mode", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-away_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "away_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "away_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": "Schedule enable", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-schedule_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "schedule_enable", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "schedule_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Schedule enable", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-schedule_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "schedule_enable", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "schedule_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:e2:89:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000055", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:e2:89:82-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:e2:89:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000055", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-cirvgep4-ts0601-0x00000048.json b/tests/data/devices/tze200-cirvgep4-ts0601-0x00000048.json index 1ae792a7f..9f733bf42 100644 --- a/tests/data/devices/tze200-cirvgep4-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-cirvgep4-ts0601-0x00000048.json @@ -186,184 +186,219 @@ "zha_lib_entities": { "select": [ { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] + "info_object": { + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AAA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25.8, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 25.8 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 34.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 34.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:fa:1c:a8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3d:fa:1c:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-cpbo62rn-ts0601.json b/tests/data/devices/tze200-cpbo62rn-ts0601.json index 5be471bf4..79c4acb7a 100644 --- a/tests/data/devices/tze200-cpbo62rn-ts0601.json +++ b/tests/data/devices/tze200-cpbo62rn-ts0601.json @@ -146,131 +146,157 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 56, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 56, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:c5:e5:3a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b3:c5:e5:3a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-cpmgn2cf-ts0601.json b/tests/data/devices/tze200-cpmgn2cf-ts0601.json index 30662cbb1..f20170553 100644 --- a/tests/data/devices/tze200-cpmgn2cf-ts0601.json +++ b/tests/data/devices/tze200-cpmgn2cf-ts0601.json @@ -951,524 +951,627 @@ "zha_lib_entities": { "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "MoesThermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 401, - "fan_modes": null, - "preset_modes": [ - "none", - "away", - "Schedule", - "comfort", - "eco", - "boost", - "Complex" - ], - "hvac_modes": [ - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "MoesThermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 401, + "fan_modes": null, + "preset_modes": [ + "none", + "away", + "Schedule", + "comfort", + "eco", + "boost", + "Complex" + ], + "hvac_modes": [ + "heat" + ] + }, + "state": { + "class_name": "MoesThermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.0, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "ThermostatLocalTempCalibration", + "available": true, + "state": 35.0 + } }, { - "fallback_name": "Eco temperature", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-10-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Eco temperature", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-10-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 10, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "Away temperature", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-11-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 11, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Away temperature", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-11-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 11, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "Valve State", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-3-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Valve State", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-3-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature Calibration", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-4-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": -9, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature Calibration", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-4-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 4, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": -9, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "Boost Time", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-5-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9999, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Boost Time", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-5-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 5, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9999, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "Min. temperature", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-7-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 7, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 15, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Min. temperature", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-7-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 7, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 15, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "Max. temperature", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-8-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 8, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 15, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Max. temperature", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-8-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 8, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 15, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "Comfort temperature", - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-9-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 9, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Comfort temperature", + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-9-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 9, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e8:32:c6:e4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e8:32:c6:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-crq3r3la-ck-bl702-mws-01-7016.json b/tests/data/devices/tze200-crq3r3la-ck-bl702-mws-01-7016.json index 72c998463..17f739b35 100644 --- a/tests/data/devices/tze200-crq3r3la-ck-bl702-mws-01-7016.json +++ b/tests/data/devices/tze200-crq3r3la-ck-bl702-mws-01-7016.json @@ -230,421 +230,501 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": "Motion detection distance", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-large_motion_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "large_motion_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Motion detection distance", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-large_motion_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "large_motion_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motion detection sensitivity", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-large_motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "large_motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion detection sensitivity", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-large_motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "large_motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Medium motion detection distance", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-medium_motion_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "medium_motion_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": 0, - "native_step": 0.01, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Medium motion detection distance", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-medium_motion_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "medium_motion_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": 0, + "native_step": 0.01, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Medium motion detection sensitivity", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-medium_motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "medium_motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Medium motion detection sensitivity", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-medium_motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "medium_motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 28800, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 28800, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Small motion detection distance", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-small_motion_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "small_motion_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": 0, - "native_step": 0.01, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Small motion detection distance", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-small_motion_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "small_motion_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": 0, + "native_step": 0.01, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Small motion detection sensitivity", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-small_motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "small_motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Small motion detection sensitivity", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-small_motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "small_motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Motion state", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-motion_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motion_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaPresenceStateV02", - "options": [ - "Unoccupied", - "Large", - "Medium", - "Small", - "Huge", - "Gigantic" - ] + "info_object": { + "fallback_name": "Motion state", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-motion_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motion_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPresenceStateV02", + "options": [ + "Unoccupied", + "Large", + "Medium", + "Small", + "Huge", + "Gigantic" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -39, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -39 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1255, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 1255 + } } ], "switch": [ { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:36:6f:df:00-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:36:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:36:6f:df:00-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:36:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-dwcarsat-ts0601.json b/tests/data/devices/tze200-dwcarsat-ts0601.json index 2c211e0fd..70250c5ff 100644 --- a/tests/data/devices/tze200-dwcarsat-ts0601.json +++ b/tests/data/devices/tze200-dwcarsat-ts0601.json @@ -299,218 +299,263 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 23.4, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 23.4 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 57.5, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 57.5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 7.0, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "CarbonDioxideConcentration", + "available": true, + "state": 7.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "PM25", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1067", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "FormaldehydeConcentration", - "translation_key": "formaldehyde", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 890.0, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1067", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "FormaldehydeConcentration", + "translation_key": "formaldehyde", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "FormaldehydeConcentration", + "available": true, + "state": 890.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 679.9999999999999, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "VOCLevel", + "available": true, + "state": 679.9999999999999 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:fa:9c:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:fa:9c:20-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:fa:9c:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-e5hpkc6d-ts0601.json b/tests/data/devices/tze200-e5hpkc6d-ts0601.json index 8e362c485..199132bba 100644 --- a/tests/data/devices/tze200-e5hpkc6d-ts0601.json +++ b/tests/data/devices/tze200-e5hpkc6d-ts0601.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0f:8f:90:d6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0f:8f:90:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0f:8f:90:d6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0f:8f:90:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0f:8f:90:d6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0f:8f:90:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0f:8f:90:d6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0f:8f:90:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0f:8f:90:d6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0f:8f:90:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0f:8f:90:d6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0f:8f:90:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-eevqq1uv-ts0601.json b/tests/data/devices/tze200-eevqq1uv-ts0601.json index d9661b92a..8f83ce1e8 100644 --- a/tests/data/devices/tze200-eevqq1uv-ts0601.json +++ b/tests/data/devices/tze200-eevqq1uv-ts0601.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:77:2b:fd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:77:2b:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:77:2b:fd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:77:2b:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:77:2b:fd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:77:2b:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:77:2b:fd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:77:2b:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:77:2b:fd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:77:2b:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:77:2b:fd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:77:2b:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-ewxhg6o9-ts0601.json b/tests/data/devices/tze200-ewxhg6o9-ts0601.json index 66d43e04f..85d0d4d10 100644 --- a/tests/data/devices/tze200-ewxhg6o9-ts0601.json +++ b/tests/data/devices/tze200-ewxhg6o9-ts0601.json @@ -437,197 +437,225 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 4.3385, + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4.3385, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 52.8 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 52.8, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.466 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.466, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 23.81 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 23.81, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6a:9a:13-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:6a:9a:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-f1pvdgoh-ts0601.json b/tests/data/devices/tze200-f1pvdgoh-ts0601.json index 7615c5bfe..df9652667 100644 --- a/tests/data/devices/tze200-f1pvdgoh-ts0601.json +++ b/tests/data/devices/tze200-f1pvdgoh-ts0601.json @@ -133,80 +133,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:fa:d5:b9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:fa:d5:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:fa:d5:b9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:fa:d5:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:fa:d5:b9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:fa:d5:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:fa:d5:b9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:fa:d5:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:fa:d5:b9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:fa:d5:b9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:fa:d5:b9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:fa:d5:b9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-fvldku9h-ts0601.json b/tests/data/devices/tze200-fvldku9h-ts0601.json index 6ff90361d..0b94e4456 100644 --- a/tests/data/devices/tze200-fvldku9h-ts0601.json +++ b/tests/data/devices/tze200-fvldku9h-ts0601.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ec:90:fb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f6:ec:90:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ec:90:fb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f6:ec:90:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ec:90:fb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f6:ec:90:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ec:90:fb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f6:ec:90:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f6:ec:90:fb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f6:ec:90:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f6:ec:90:fb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f6:ec:90:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-g9a3awaj-ts0601-0x00000048.json b/tests/data/devices/tze200-g9a3awaj-ts0601-0x00000048.json index 1f7665163..b28a76571 100644 --- a/tests/data/devices/tze200-g9a3awaj-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-g9a3awaj-ts0601-0x00000048.json @@ -310,174 +310,214 @@ "zha_lib_entities": { "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:5d:1b:5a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:5d:1b:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-gaj531w3-ts0601.json b/tests/data/devices/tze200-gaj531w3-ts0601.json index 0d8488090..0201be14f 100644 --- a/tests/data/devices/tze200-gaj531w3-ts0601.json +++ b/tests/data/devices/tze200-gaj531w3-ts0601.json @@ -193,108 +193,129 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": null, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": null, + "current_tilt_position": null, + "state": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:30:0c:e3:f9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:30:0c:e3:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-gjldowol-ts0601-0x00000050.json b/tests/data/devices/tze200-gjldowol-ts0601-0x00000050.json index 8edaa059b..f3bc13125 100644 --- a/tests/data/devices/tze200-gjldowol-ts0601-0x00000050.json +++ b/tests/data/devices/tze200-gjldowol-ts0601-0x00000050.json @@ -166,240 +166,285 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 3600, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 3600, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Illuminance interval", - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-illuminance_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "illuminance_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 720, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Illuminance interval", + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-illuminance_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "illuminance_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 720, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaSensitivityMode", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaSensitivityMode", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:87:c2:4d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:87:c2:4d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-gkfbdvyx-ts0601.json b/tests/data/devices/tze200-gkfbdvyx-ts0601.json index a3e63705e..4c915d174 100644 --- a/tests/data/devices/tze200-gkfbdvyx-ts0601.json +++ b/tests/data/devices/tze200-gkfbdvyx-ts0601.json @@ -132,281 +132,336 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 15000, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 15000, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 172, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 172 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -68, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -68 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": null + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Distance tracking", - "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-distance_tracking", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "distance_tracking", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "distance_tracking", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Distance tracking", + "unique_id": "ab:cd:ef:12:5a:b5:b3:b3-1-distance_tracking", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "distance_tracking", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:b5:b3:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "distance_tracking", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ] }, diff --git a/tests/data/devices/tze200-gubdgai2-ts0601.json b/tests/data/devices/tze200-gubdgai2-ts0601.json index d354f4c41..198670ee0 100644 --- a/tests/data/devices/tze200-gubdgai2-ts0601.json +++ b/tests/data/devices/tze200-gubdgai2-ts0601.json @@ -158,131 +158,157 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:a7:00:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 10, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e5:a7:00:54", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 10, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:a7:00:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:a7:00:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:a7:00:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:a7:00:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:a7:00:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:a7:00:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e5:a7:00:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:a7:00:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e5:a7:00:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-guvc7pdy-ts0601-0x00000046.json b/tests/data/devices/tze200-guvc7pdy-ts0601-0x00000046.json index a60417526..056c2de01 100644 --- a/tests/data/devices/tze200-guvc7pdy-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-guvc7pdy-ts0601-0x00000046.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:c9:f7:0f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:c9:f7:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 104, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:c9:f7:0f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:c9:f7:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 104 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:c9:f7:0f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:c9:f7:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -74, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:c9:f7:0f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:c9:f7:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -74 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:c9:f7:0f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:c9:f7:0f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:c9:f7:0f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:c9:f7:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-h4cgnbzg-ts0601.json b/tests/data/devices/tze200-h4cgnbzg-ts0601.json index fa3c49e57..f816d3854 100644 --- a/tests/data/devices/tze200-h4cgnbzg-ts0601.json +++ b/tests/data/devices/tze200-h4cgnbzg-ts0601.json @@ -222,314 +222,379 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Battery low", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "battery_low" + "info_object": { + "fallback_name": "Battery low", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 26.7, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "off", - "hvac_mode": "off", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[0]/off", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 26.7, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "off", + "hvac_mode": "off", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[0]/off", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -4, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": -4 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "off", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "off" + } }, { - "fallback_name": "Valve position", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-valve_position", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "valve_position", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": "Valve position", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-valve_position", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "valve_position", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Away mode", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-away_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "away_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "away_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Away mode", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-away_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "away_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "away_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": "Schedule enable", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-schedule_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "schedule_enable", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "schedule_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Schedule enable", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-schedule_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "schedule_enable", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "schedule_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:d1:91:b1:8f-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d1:91:b1:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } } ] }, diff --git a/tests/data/devices/tze200-hhrtiq0x-ts0601-0x00000055.json b/tests/data/devices/tze200-hhrtiq0x-ts0601-0x00000055.json index da5a321de..a4659347f 100644 --- a/tests/data/devices/tze200-hhrtiq0x-ts0601-0x00000055.json +++ b/tests/data/devices/tze200-hhrtiq0x-ts0601-0x00000055.json @@ -233,281 +233,341 @@ "zha_lib_entities": { "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 23.7, - "outdoor_temperature": null, - "target_temperature": 7.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 700, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 23.7, + "outdoor_temperature": null, + "target_temperature": 7.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 700, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 5.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "heating", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "heating" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000055", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:53:ef:5b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9a:53:ef:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000055", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-hl0ss9oa-ts0225.json b/tests/data/devices/tze200-hl0ss9oa-ts0225.json index 49c6b51d8..da90ff81d 100644 --- a/tests/data/devices/tze200-hl0ss9oa-ts0225.json +++ b/tests/data/devices/tze200-hl0ss9oa-ts0225.json @@ -219,124 +219,149 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1161, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ea:02:c4:e2-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ea:02:c4:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 1161 + } } ] }, diff --git a/tests/data/devices/tze200-hr0tdd47-ts0601-0x00000048.json b/tests/data/devices/tze200-hr0tdd47-ts0601-0x00000048.json index 6c4c71912..ab7b7ef67 100644 --- a/tests/data/devices/tze200-hr0tdd47-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-hr0tdd47-ts0601-0x00000048.json @@ -178,209 +178,249 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": "CO concentration", - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-co", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "ppm" + "info_object": { + "fallback_name": "CO concentration", + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-co", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "ppm" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Self test result", - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-self_test_result", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "self_test_result", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Self test result", + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-self_test_result", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "self_test_result", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Mute siren", - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-mute_siren", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "mute_siren", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "mute_siren", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Mute siren", + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-mute_siren", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "mute_siren", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "mute_siren", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:50:2b:09-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:50:2b:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:50:2b:09-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:50:2b:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-iba1ckek-ts0601.json b/tests/data/devices/tze200-iba1ckek-ts0601.json index 818b2abc2..93f55d8e1 100644 --- a/tests/data/devices/tze200-iba1ckek-ts0601.json +++ b/tests/data/devices/tze200-iba1ckek-ts0601.json @@ -172,131 +172,155 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "vibration", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "vibration", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:7c:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:6f:df:00-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:6f:df:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:7c:6f:df:00", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] } ] }, diff --git a/tests/data/devices/tze200-icka1clh-ts0601.json b/tests/data/devices/tze200-icka1clh-ts0601.json index b2ec224a5..1697715f7 100644 --- a/tests/data/devices/tze200-icka1clh-ts0601.json +++ b/tests/data/devices/tze200-icka1clh-ts0601.json @@ -193,108 +193,129 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": null, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": null, + "current_tilt_position": null, + "state": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:0c:ae:49-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8b:0c:ae:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-ijey4q29-ts0601.json b/tests/data/devices/tze200-ijey4q29-ts0601.json index 8fd69a02d..abc831bc8 100644 --- a/tests/data/devices/tze200-ijey4q29-ts0601.json +++ b/tests/data/devices/tze200-ijey4q29-ts0601.json @@ -197,154 +197,183 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:54:99:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:4e:54:99:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:54:99:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:54:99:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:54:99:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:54:99:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:54:99:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:54:99:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:54:99:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.3 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:4e:54:99:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.3 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:54:99:b8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:99:b8-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:54:99:b8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 1 + } } ] }, diff --git a/tests/data/devices/tze200-iuk8kupi-ts0601.json b/tests/data/devices/tze200-iuk8kupi-ts0601.json index cff226998..6c2e0a47a 100644 --- a/tests/data/devices/tze200-iuk8kupi-ts0601.json +++ b/tests/data/devices/tze200-iuk8kupi-ts0601.json @@ -156,80 +156,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:ce:89:0c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:ce:89:0c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:ce:89:0c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:ce:89:0c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:ce:89:0c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:ce:89:0c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:ce:89:0c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:ce:89:0c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:ce:89:0c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:ce:89:0c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:ce:89:0c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:ce:89:0c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-js3mgbjb-ts0601-0x00000044.json b/tests/data/devices/tze200-js3mgbjb-ts0601-0x00000044.json index 9f8742f67..60bc383a6 100644 --- a/tests/data/devices/tze200-js3mgbjb-ts0601-0x00000044.json +++ b/tests/data/devices/tze200-js3mgbjb-ts0601-0x00000044.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:3e:31:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6d:3e:31:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:3e:31:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6d:3e:31:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:3e:31:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6d:3e:31:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:3e:31:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6d:3e:31:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6d:3e:31:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6d:3e:31:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:3e:31:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6d:3e:31:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-jva8ink8-ts0601.json b/tests/data/devices/tze200-jva8ink8-ts0601.json index 26d604422..c41b9fe10 100644 --- a/tests/data/devices/tze200-jva8ink8-ts0601.json +++ b/tests/data/devices/tze200-jva8ink8-ts0601.json @@ -245,308 +245,368 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 6.0, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 6.0 + } }, { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.6, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0.6 + } }, { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 7, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 7 + } }, { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.0, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 1.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 2 + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Self test result", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-self_test", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "self_test", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "CheckSuccess", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Self test result", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-self_test", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "self_test", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": "CheckSuccess" + } } ], "switch": [ { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9e:63:48:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9e:63:48:2b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9e:63:48:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-jwsjbxjs-ts0601-0x00000046.json b/tests/data/devices/tze200-jwsjbxjs-ts0601-0x00000046.json index 62fd6f8cd..2d79eeaa5 100644 --- a/tests/data/devices/tze200-jwsjbxjs-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-jwsjbxjs-ts0601-0x00000046.json @@ -293,267 +293,347 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 4, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 4, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-5", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 5, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-5", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 5, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b6:3a:a2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b6:3a:a2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-kb5noeto-ts0601.json b/tests/data/devices/tze200-kb5noeto-ts0601.json index 065005aee..5a0afd1b4 100644 --- a/tests/data/devices/tze200-kb5noeto-ts0601.json +++ b/tests/data/devices/tze200-kb5noeto-ts0601.json @@ -209,363 +209,434 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": "Motion detection sensitivity", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-motion_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "motion_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion detection sensitivity", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-motion_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "motion_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 28800, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 28800, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Static detection distance", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-static_detection_distance", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "static_detection_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Static detection distance", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-static_detection_distance", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "static_detection_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Static detection sensitivity", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-static_detection_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "static_detection_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Static detection sensitivity", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-static_detection_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "static_detection_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Motion detection mode", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-motion_detection_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motion_detection_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaMotionDetectionMode", - "options": [ - "Only PIR", - "PIR and radar", - "Only radar" - ] + "info_object": { + "fallback_name": "Motion detection mode", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-motion_detection_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motion_detection_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaMotionDetectionMode", + "options": [ + "Only PIR", + "PIR and radar", + "Only radar" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 5.0, + "battery_size": "AA", + "battery_quantity": 2, + "battery_voltage": 1.7 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": 1.7 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1436, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 1436 + } }, { - "fallback_name": "Human motion state", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-human_motion_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "human_motion_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Human motion state", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-human_motion_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "human_motion_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:79:e4:8f:e2-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:79:e4:8f:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ] }, diff --git a/tests/data/devices/tze200-khozatfx-ts0601.json b/tests/data/devices/tze200-khozatfx-ts0601.json index 33d1e35bc..f9a700723 100644 --- a/tests/data/devices/tze200-khozatfx-ts0601.json +++ b/tests/data/devices/tze200-khozatfx-ts0601.json @@ -133,80 +133,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:a4:6c:2b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b3:a4:6c:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:a4:6c:2b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b3:a4:6c:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:a4:6c:2b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b3:a4:6c:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:a4:6c:2b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b3:a4:6c:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b3:a4:6c:2b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b3:a4:6c:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b3:a4:6c:2b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b3:a4:6c:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-kyfqmmyl-ts0601.json b/tests/data/devices/tze200-kyfqmmyl-ts0601.json index 3d6fde79b..f90b70eca 100644 --- a/tests/data/devices/tze200-kyfqmmyl-ts0601.json +++ b/tests/data/devices/tze200-kyfqmmyl-ts0601.json @@ -207,193 +207,247 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:bb:95:b1-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:bb:95:b1-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:bb:95:b1-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:bb:95:b1-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b4:bb:95:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b4:bb:95:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-la2c2uo9-ts0601.json b/tests/data/devices/tze200-la2c2uo9-ts0601.json index 373f4cea5..e2e17c879 100644 --- a/tests/data/devices/tze200-la2c2uo9-ts0601.json +++ b/tests/data/devices/tze200-la2c2uo9-ts0601.json @@ -153,120 +153,148 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:73:2a:0e-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:84:73:2a:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 19, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:73:2a:0e-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:84:73:2a:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 19, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:73:2a:0e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:84:73:2a:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:73:2a:0e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:73:2a:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:73:2a:0e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:84:73:2a:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:73:2a:0e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:73:2a:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:84:73:2a:0e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:84:73:2a:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:73:2a:0e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:84:73:2a:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-laqjm8qd-ts0601.json b/tests/data/devices/tze200-laqjm8qd-ts0601.json index 7fb7987e4..2b0d686cb 100644 --- a/tests/data/devices/tze200-laqjm8qd-ts0601.json +++ b/tests/data/devices/tze200-laqjm8qd-ts0601.json @@ -156,80 +156,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:7b:70:ef-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:7b:70:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:7b:70:ef-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:7b:70:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:7b:70:ef-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:7b:70:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:7b:70:ef-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:7b:70:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:7b:70:ef-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:7b:70:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:7b:70:ef-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:7b:70:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-libht6ua-ts0601.json b/tests/data/devices/tze200-libht6ua-ts0601.json index f5d4c680c..01410ebd9 100644 --- a/tests/data/devices/tze200-libht6ua-ts0601.json +++ b/tests/data/devices/tze200-libht6ua-ts0601.json @@ -133,80 +133,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:a7:64:05-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:a7:64:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:a7:64:05-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:a7:64:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:a7:64:05-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:a7:64:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:a7:64:05-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:a7:64:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:25:a7:64:05-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:25:a7:64:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:a7:64:05-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:25:a7:64:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-locansqn-ts0601-0x00000048.json b/tests/data/devices/tze200-locansqn-ts0601-0x00000048.json index 141649cee..9f99216e2 100644 --- a/tests/data/devices/tze200-locansqn-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-locansqn-ts0601-0x00000048.json @@ -289,440 +289,525 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Alarm humidity max", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_humidity_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_humidity_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 60, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Alarm humidity max", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_humidity_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_humidity_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 60 + } }, { - "fallback_name": "Alarm humidity min", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_humidity_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_humidity_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Alarm humidity min", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_humidity_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_humidity_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 20 + } }, { - "fallback_name": "Alarm temperature max", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_temperature_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_temperature_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 39.0, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -20, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Alarm temperature max", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_temperature_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_temperature_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -20, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 39.0 + } }, { - "fallback_name": "Alarm temperature min", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_temperature_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_temperature_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -20, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Alarm temperature min", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-alarm_temperature_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_temperature_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -20, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0.0 + } }, { - "fallback_name": "Humidity report interval", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-humidity_report_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_report_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 120, - "mode": "auto", - "native_max_value": 120, - "native_min_value": 5, - "native_step": 5, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Humidity report interval", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-humidity_report_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_report_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 120, + "native_min_value": 5, + "native_step": 5, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 120 + } }, { - "fallback_name": "Humidity sensitivity", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-humidity_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Humidity sensitivity", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-humidity_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 2 + } }, { - "fallback_name": "Temperature report interval", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-temperature_report_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_report_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 120, - "mode": "auto", - "native_max_value": 120, - "native_min_value": 5, - "native_step": 5, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Temperature report interval", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-temperature_report_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_report_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 120, + "native_min_value": 5, + "native_step": 5, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 120 + } }, { - "fallback_name": "Temperature sensitivity", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-temperature_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.2, - "mode": "auto", - "native_max_value": 50, - "native_min_value": 0.1, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature sensitivity", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-temperature_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": 0.1, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0.2 + } } ], "select": [ { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Celsius", - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] + "info_object": { + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Celsius" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 1.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 18.3, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 18.3 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 38.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 38.0 + } }, { - "fallback_name": "Humidity alarm", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-humidity_alarm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "humidity_alarm", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Canceled", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Humidity alarm", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-humidity_alarm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "humidity_alarm", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": "Canceled" + } }, { - "fallback_name": "Temperature alarm", - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-temperature_alarm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "temperature_alarm", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Canceled", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Temperature alarm", + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-temperature_alarm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "temperature_alarm", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": "Canceled" + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5b:b2:b6:59-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5b:b2:b6:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-m9skfctm-ts0601.json b/tests/data/devices/tze200-m9skfctm-ts0601.json index 98ab0c238..2bffef694 100644 --- a/tests/data/devices/tze200-m9skfctm-ts0601.json +++ b/tests/data/devices/tze200-m9skfctm-ts0601.json @@ -152,104 +152,124 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:2f:91:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ef:2f:91:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:2f:91:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:2f:91:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:2f:91:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:2f:91:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ef:2f:91:36", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ef:2f:91:36-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ef:2f:91:36", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-mgxy2d9f-ts0601-0x00000043.json b/tests/data/devices/tze200-mgxy2d9f-ts0601-0x00000043.json index e10bb1c63..6a29ab385 100644 --- a/tests/data/devices/tze200-mgxy2d9f-ts0601-0x00000043.json +++ b/tests/data/devices/tze200-mgxy2d9f-ts0601-0x00000043.json @@ -134,80 +134,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:35:bf:88-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9c:35:bf:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:35:bf:88-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9c:35:bf:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:35:bf:88-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9c:35:bf:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:35:bf:88-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9c:35:bf:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9c:35:bf:88-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9c:35:bf:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9c:35:bf:88-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9c:35:bf:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-mja3fuja-ts0601.json b/tests/data/devices/tze200-mja3fuja-ts0601.json index cf4cb6664..83b4241a8 100644 --- a/tests/data/devices/tze200-mja3fuja-ts0601.json +++ b/tests/data/devices/tze200-mja3fuja-ts0601.json @@ -186,195 +186,235 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "CarbonDioxideConcentration", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1067", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "FormaldehydeConcentration", - "translation_key": "formaldehyde", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1067", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "FormaldehydeConcentration", + "translation_key": "formaldehyde", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "FormaldehydeConcentration", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "VOCLevel", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:63:f5:06-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:63:f5:06", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:63:f5:06-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:63:f5:06", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-moycceze-ts0601-0x00000043.json b/tests/data/devices/tze200-moycceze-ts0601-0x00000043.json index 68b6e657b..141fc8457 100644 --- a/tests/data/devices/tze200-moycceze-ts0601-0x00000043.json +++ b/tests/data/devices/tze200-moycceze-ts0601-0x00000043.json @@ -134,80 +134,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d8:e7:36:48-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d8:e7:36:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d8:e7:36:48-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d8:e7:36:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d8:e7:36:48-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d8:e7:36:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d8:e7:36:48-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d8:e7:36:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d8:e7:36:48-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d8:e7:36:48", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d8:e7:36:48-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d8:e7:36:48", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-mudxchsu-ts0601-0x00000045.json b/tests/data/devices/tze200-mudxchsu-ts0601-0x00000045.json index 333fd23b1..fd6a9c7a5 100644 --- a/tests/data/devices/tze200-mudxchsu-ts0601-0x00000045.json +++ b/tests/data/devices/tze200-mudxchsu-ts0601-0x00000045.json @@ -641,461 +641,556 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Open Window Detected", - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInputWithDescription", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": "Open Window Detected", + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInputWithDescription", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInputWithDescription", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "ZONNSMARTThermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 20.6, - "outdoor_temperature": null, - "target_temperature": 15.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 401, - "fan_modes": null, - "preset_modes": [ - "none", - "holiday", - "Schedule", - "frost protect" - ], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1500, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": 1600 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "ZONNSMARTThermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 401, + "fan_modes": null, + "preset_modes": [ + "none", + "holiday", + "Schedule", + "frost protect" + ], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "ZONNSMARTThermostat", + "available": true, + "current_temperature": 20.6, + "outdoor_temperature": null, + "target_temperature": 15.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1500, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": 1600 + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Temperature Offset", - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "auto", - "native_max_value": 5, - "native_min_value": -5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature Offset", + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 5, + "native_min_value": -5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "ThermostatLocalTempCalibration", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } }, { - "fallback_name": "Opened Window Temperature", - "unique_id": "ab:cd:ef:12:65:80:74:f3-2-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "auto", - "native_max_value": 30.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Opened Window Temperature", + "unique_id": "ab:cd:ef:12:65:80:74:f3-2-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 5.0 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:80:74:f3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:80:74:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:80:74:f3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:80:74:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-myd45weu-ts0601-0x00000048.json b/tests/data/devices/tze200-myd45weu-ts0601-0x00000048.json index 8ad160f7e..ff3a06765 100644 --- a/tests/data/devices/tze200-myd45weu-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-myd45weu-ts0601-0x00000048.json @@ -204,156 +204,186 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 20.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 25.0 + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 72.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "SoilMoisture", + "available": true, + "state": 72.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:eb:f7:3f:43:1c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:eb:f7:3f:43:1c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-mz5y07w2-ts0601.json b/tests/data/devices/tze200-mz5y07w2-ts0601.json index a47e60784..26742f1f5 100644 --- a/tests/data/devices/tze200-mz5y07w2-ts0601.json +++ b/tests/data/devices/tze200-mz5y07w2-ts0601.json @@ -238,330 +238,398 @@ "zha_lib_entities": { "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 28.8, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "off", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[0]/off", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 500, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 28.8, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "off", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[0]/off", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 500, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Temperature Offset", - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature Offset", + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7c:a1:1a:65-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7c:a1:1a:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-mzik0ov2-ts0601.json b/tests/data/devices/tze200-mzik0ov2-ts0601.json index f30134cec..423b70f4a 100644 --- a/tests/data/devices/tze200-mzik0ov2-ts0601.json +++ b/tests/data/devices/tze200-mzik0ov2-ts0601.json @@ -134,80 +134,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:9b:c1:59-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:9b:c1:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:9b:c1:59-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:9b:c1:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:9b:c1:59-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:9b:c1:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:9b:c1:59-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:9b:c1:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:9b:c1:59-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:9b:c1:59", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:9b:c1:59-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:9b:c1:59", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-nklqjk62-ts0601-0x00000046.json b/tests/data/devices/tze200-nklqjk62-ts0601-0x00000046.json index a6c0c8763..86b3fdfd4 100644 --- a/tests/data/devices/tze200-nklqjk62-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-nklqjk62-ts0601-0x00000046.json @@ -200,80 +200,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:58:0b:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 116, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:58:0b:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 116 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:58:0b:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -82, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:58:0b:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -82 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:58:0b:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:58:0b:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-nklqjk62-ts0601.json b/tests/data/devices/tze200-nklqjk62-ts0601.json index 9a7c42762..3ddf12f6c 100644 --- a/tests/data/devices/tze200-nklqjk62-ts0601.json +++ b/tests/data/devices/tze200-nklqjk62-ts0601.json @@ -144,80 +144,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:58:0b:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:58:0b:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:58:0b:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:58:0b:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:58:0b:f7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:58:0b:f7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:58:0b:f7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-nojsjtj2-ts0601.json b/tests/data/devices/tze200-nojsjtj2-ts0601.json index 8dfeb33f7..2c26bbde1 100644 --- a/tests/data/devices/tze200-nojsjtj2-ts0601.json +++ b/tests/data/devices/tze200-nojsjtj2-ts0601.json @@ -154,131 +154,155 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:9a:26:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f4:9a:26:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:9a:26:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:9a:26:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:9a:26:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:9a:26:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:9a:26:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:9a:26:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:9a:26:de-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:9a:26:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:f4:9a:26:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.8 + ] } ] }, diff --git a/tests/data/devices/tze200-npj9bug3-ts0601.json b/tests/data/devices/tze200-npj9bug3-ts0601.json index 71e312b90..8495d8cbb 100644 --- a/tests/data/devices/tze200-npj9bug3-ts0601.json +++ b/tests/data/devices/tze200-npj9bug3-ts0601.json @@ -166,153 +166,182 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 180, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 180 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -55, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -55 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 24.9, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 24.9 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:11:1c:cf-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:11:1c:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 0.0 + } } ] }, diff --git a/tests/data/devices/tze200-nqaqq4cf-ts0601-0x00000044.json b/tests/data/devices/tze200-nqaqq4cf-ts0601-0x00000044.json index 2aaab88c9..be82150d2 100644 --- a/tests/data/devices/tze200-nqaqq4cf-ts0601-0x00000044.json +++ b/tests/data/devices/tze200-nqaqq4cf-ts0601-0x00000044.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:f2:ce:d0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:f2:ce:d0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:f2:ce:d0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:f2:ce:d0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 100 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:f2:ce:d0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:f2:ce:d0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -75, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:f2:ce:d0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:f2:ce:d0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -75 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:f2:ce:d0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:f2:ce:d0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000044", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:f2:ce:d0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:f2:ce:d0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000044", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-ntcy3xu1-ts0601.json b/tests/data/devices/tze200-ntcy3xu1-ts0601.json index cb3805457..51bb48869 100644 --- a/tests/data/devices/tze200-ntcy3xu1-ts0601.json +++ b/tests/data/devices/tze200-ntcy3xu1-ts0601.json @@ -184,156 +184,186 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:49:18:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:3c:49:18:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:49:18:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "tamper" + "info_object": { + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:49:18:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "tamper" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:49:18:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:49:18:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:49:18:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:49:18:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:49:18:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AAA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:3c:49:18:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3c:49:18:ca", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3c:49:18:ca-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3c:49:18:ca", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-ny94onlb-ts0601.json b/tests/data/devices/tze200-ny94onlb-ts0601.json index 95cdc011f..62396994a 100644 --- a/tests/data/devices/tze200-ny94onlb-ts0601.json +++ b/tests/data/devices/tze200-ny94onlb-ts0601.json @@ -862,632 +862,705 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.26, + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.26, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 298.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 298.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-active_power_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhB", - "translation_key": "active_power_ph_b", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-active_power_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhB", + "translation_key": "active_power_ph_b", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePowerPhB", + "available": true, + "state": 266.0 + }, + "extra_state_attributes": [ "active_power_max_ph_b", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 266.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-active_power_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhC", - "translation_key": "active_power_ph_c", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-active_power_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhC", + "translation_key": "active_power_ph_c", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePowerPhC", + "available": true, + "state": 70.0 + }, + "extra_state_attributes": [ "active_power_max_ph_c", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 70.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 1.38 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.38, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_current_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "translation_key": "rms_current_ph_b", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_current_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "translation_key": "rms_current_ph_b", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "available": true, + "state": 1.576 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max_ph_b" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.576, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_current_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "translation_key": "rms_current_ph_c", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_current_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "translation_key": "rms_current_ph_c", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "available": true, + "state": 0.413 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max_ph_c" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.413, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 223.8 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 223.8, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_voltage_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "translation_key": "rms_voltage_ph_b", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_voltage_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "translation_key": "rms_voltage_ph_b", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "available": true, + "state": 215.9 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max_ph_b" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 215.9, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_voltage_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "translation_key": "rms_voltage_ph_c", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-2820-rms_voltage_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "translation_key": "rms_voltage_ph_c", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "available": true, + "state": 227.2 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max_ph_c" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 227.2, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-10-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-10-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 298.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 298.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-10-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-10-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 1.38 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 1.38, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-10-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-10-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 10, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 223.8 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 10, - "available": true, - "group_id": null, - "native_value": 223.8, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-20-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-20-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 20, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 266.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 20, - "available": true, - "group_id": null, - "native_value": 266.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-20-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-20-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 20, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 1.576 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 20, - "available": true, - "group_id": null, - "native_value": 1.576, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-20-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-20-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 20, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 215.9 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 20, - "available": true, - "group_id": null, - "native_value": 215.9, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-30-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-30-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 30, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 70.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 30, - "available": true, - "group_id": null, - "native_value": 70.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-30-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-30-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 30, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.413 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 30, - "available": true, - "group_id": null, - "native_value": 0.413, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-30-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-30-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 30, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 227.2 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 30, - "available": true, - "group_id": null, - "native_value": 227.2, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:58:8c:89:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:58:8c:89:ff-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:58:8c:89:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-nyvavzbj-ts0601.json b/tests/data/devices/tze200-nyvavzbj-ts0601.json index f191528dc..da0ada21d 100644 --- a/tests/data/devices/tze200-nyvavzbj-ts0601.json +++ b/tests/data/devices/tze200-nyvavzbj-ts0601.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:83:cd:d7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:83:cd:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:83:cd:d7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:83:cd:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:83:cd:d7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:83:cd:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:83:cd:d7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:83:cd:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:83:cd:d7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:83:cd:d7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:83:cd:d7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:83:cd:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-pay2byax-ts0601.json b/tests/data/devices/tze200-pay2byax-ts0601.json index 8f21ffd28..84c4620cd 100644 --- a/tests/data/devices/tze200-pay2byax-ts0601.json +++ b/tests/data/devices/tze200-pay2byax-ts0601.json @@ -182,154 +182,185 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "CR2032", + "battery_quantity": 1, + "battery_voltage": 2.7 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR2032", - "battery_quantity": 1, - "battery_voltage": 2.7 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 481, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:bc:ea:ac-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:bc:ea:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 481 + } } ] }, diff --git a/tests/data/devices/tze200-pl31aqf5-ts0601-0x00000046.json b/tests/data/devices/tze200-pl31aqf5-ts0601-0x00000046.json index e9d55bbe9..4a447acd3 100644 --- a/tests/data/devices/tze200-pl31aqf5-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-pl31aqf5-ts0601-0x00000046.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:8d:08:24-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:8d:08:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:8d:08:24-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:8d:08:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:8d:08:24-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:8d:08:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:8d:08:24-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:8d:08:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cb:8d:08:24-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cb:8d:08:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cb:8d:08:24-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cb:8d:08:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-pw7mji0l-ts0601.json b/tests/data/devices/tze200-pw7mji0l-ts0601.json index 23b1b71e5..4a73eba7f 100644 --- a/tests/data/devices/tze200-pw7mji0l-ts0601.json +++ b/tests/data/devices/tze200-pw7mji0l-ts0601.json @@ -146,131 +146,157 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:2f:89:a8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:2f:89:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-qhlxve78-ts0601.json b/tests/data/devices/tze200-qhlxve78-ts0601.json index 77dc2fa75..4fbed0748 100644 --- a/tests/data/devices/tze200-qhlxve78-ts0601.json +++ b/tests/data/devices/tze200-qhlxve78-ts0601.json @@ -195,80 +195,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:5a:28:81-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:5a:28:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:5a:28:81-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:5a:28:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:5a:28:81-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:5a:28:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:5a:28:81-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:5a:28:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:5a:28:81-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:5a:28:81", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:5a:28:81-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:5a:28:81", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-qrztc3ev-ts0601.json b/tests/data/devices/tze200-qrztc3ev-ts0601.json index bfd3d1e42..481b4469f 100644 --- a/tests/data/devices/tze200-qrztc3ev-ts0601.json +++ b/tests/data/devices/tze200-qrztc3ev-ts0601.json @@ -164,440 +164,525 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Alarm humidity max", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_humidity_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_humidity_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Alarm humidity max", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_humidity_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_humidity_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Alarm humidity min", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_humidity_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_humidity_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Alarm humidity min", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_humidity_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_humidity_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Alarm temperature max", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_temperature_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_temperature_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -20, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Alarm temperature max", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_temperature_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_temperature_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -20, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Alarm temperature min", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_temperature_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_temperature_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -20, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Alarm temperature min", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-alarm_temperature_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_temperature_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -20, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Humidity report interval", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-humidity_report_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_report_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 120, - "native_min_value": 5, - "native_step": 5, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Humidity report interval", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-humidity_report_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_report_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 120, + "native_min_value": 5, + "native_step": 5, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Humidity sensitivity", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-humidity_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Humidity sensitivity", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-humidity_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature report interval", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-temperature_report_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_report_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 120, - "native_min_value": 5, - "native_step": 5, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Temperature report interval", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-temperature_report_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_report_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 120, + "native_min_value": 5, + "native_step": 5, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature sensitivity", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-temperature_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 50, - "native_min_value": 0.1, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature sensitivity", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-temperature_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": 0.1, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] + "info_object": { + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": null + } }, { - "fallback_name": "Humidity alarm", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-humidity_alarm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "humidity_alarm", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Humidity alarm", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-humidity_alarm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "humidity_alarm", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature alarm", - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-temperature_alarm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "temperature_alarm", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Temperature alarm", + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-temperature_alarm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "temperature_alarm", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:de:c2:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:de:c2:da-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:de:c2:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-qyflbnbj-ts0601-0x00000046.json b/tests/data/devices/tze200-qyflbnbj-ts0601-0x00000046.json index 108ddea1e..6580742c6 100644 --- a/tests/data/devices/tze200-qyflbnbj-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-qyflbnbj-ts0601-0x00000046.json @@ -223,156 +223,186 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 6550.3, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 6550.3 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 84.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 84.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5d:8a:7c:64-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5d:8a:7c:64", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-r32ctezx-ts0601-0x00000046.json b/tests/data/devices/tze200-r32ctezx-ts0601-0x00000046.json index d997737a3..b8a3c6d86 100644 --- a/tests/data/devices/tze200-r32ctezx-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-r32ctezx-ts0601-0x00000046.json @@ -183,120 +183,148 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:4a:57:6b-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:4a:57:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 0, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:4a:57:6b-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:38:4a:57:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 0, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:4a:57:6b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:4a:57:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:4a:57:6b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:4a:57:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:4a:57:6b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:4a:57:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:4a:57:6b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:4a:57:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:4a:57:6b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:4a:57:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:4a:57:6b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:4a:57:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-r5ksy7qo-ts0601-0x00000043.json b/tests/data/devices/tze200-r5ksy7qo-ts0601-0x00000043.json index 1c6ceede5..ae82db1e7 100644 --- a/tests/data/devices/tze200-r5ksy7qo-ts0601-0x00000043.json +++ b/tests/data/devices/tze200-r5ksy7qo-ts0601-0x00000043.json @@ -121,80 +121,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:e1:be:80-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:e1:be:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 196, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:e1:be:80-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:e1:be:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 196 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:e1:be:80-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:e1:be:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -51, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:e1:be:80-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:e1:be:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -51 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:e1:be:80-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:e1:be:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000043", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:e1:be:80-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:e1:be:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000043", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-rccxox8p-ts0601.json b/tests/data/devices/tze200-rccxox8p-ts0601.json index 69262e969..4bdb5f179 100644 --- a/tests/data/devices/tze200-rccxox8p-ts0601.json +++ b/tests/data/devices/tze200-rccxox8p-ts0601.json @@ -140,104 +140,124 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f8:f4:e6:c9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f8:f4:e6:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-rk1wojce-ts0601.json b/tests/data/devices/tze200-rk1wojce-ts0601.json index 0bc2ce511..7b099d5c7 100644 --- a/tests/data/devices/tze200-rk1wojce-ts0601.json +++ b/tests/data/devices/tze200-rk1wojce-ts0601.json @@ -134,80 +134,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:32:83:5b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e2:32:83:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:32:83:5b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e2:32:83:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:32:83:5b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e2:32:83:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:32:83:5b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e2:32:83:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e2:32:83:5b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e2:32:83:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:32:83:5b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e2:32:83:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-rks0sgb7-ts0601.json b/tests/data/devices/tze200-rks0sgb7-ts0601.json index 5da880418..82c21d5d6 100644 --- a/tests/data/devices/tze200-rks0sgb7-ts0601.json +++ b/tests/data/devices/tze200-rks0sgb7-ts0601.json @@ -133,80 +133,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:ec:b3:fc-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:ec:b3:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:ec:b3:fc-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:ec:b3:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:ec:b3:fc-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:ec:b3:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:ec:b3:fc-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:ec:b3:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a9:ec:b3:fc-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a9:ec:b3:fc", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:ec:b3:fc-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a9:ec:b3:fc", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-rmymn92d-ts0601-0x00000046.json b/tests/data/devices/tze200-rmymn92d-ts0601-0x00000046.json index 9cdc8918b..0058a0f2b 100644 --- a/tests/data/devices/tze200-rmymn92d-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-rmymn92d-ts0601-0x00000046.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:44:3f:67-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:44:3f:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:44:3f:67-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:44:3f:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:44:3f:67-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:44:3f:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:44:3f:67-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:44:3f:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1a:44:3f:67-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1a:44:3f:67", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:44:3f:67-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1a:44:3f:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-rtrmfadk-ts0601.json b/tests/data/devices/tze200-rtrmfadk-ts0601.json index e40fd689d..5c1d13eb3 100644 --- a/tests/data/devices/tze200-rtrmfadk-ts0601.json +++ b/tests/data/devices/tze200-rtrmfadk-ts0601.json @@ -133,80 +133,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:28:8c:ab-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:28:8c:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:28:8c:ab-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:28:8c:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:28:8c:ab-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:28:8c:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:28:8c:ab-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:28:8c:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:28:28:8c:ab-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:28:28:8c:ab", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:28:8c:ab-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:28:28:8c:ab", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-rxq4iti9-ts0601.json b/tests/data/devices/tze200-rxq4iti9-ts0601.json index 4e1eaa29d..a524ef378 100644 --- a/tests/data/devices/tze200-rxq4iti9-ts0601.json +++ b/tests/data/devices/tze200-rxq4iti9-ts0601.json @@ -345,342 +345,410 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "error_or_battery_low" + "info_object": { + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "error_or_battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6e:72:22-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6e:72:22-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Temperature Offset", - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature Offset", + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:6e:72:22-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:6e:72:22", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:6e:72:22-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:6e:72:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-s6hzw8g2-ts0601.json b/tests/data/devices/tze200-s6hzw8g2-ts0601.json index afe6d6bcf..20e34630d 100644 --- a/tests/data/devices/tze200-s6hzw8g2-ts0601.json +++ b/tests/data/devices/tze200-s6hzw8g2-ts0601.json @@ -127,80 +127,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:e7:1e:19-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:e7:1e:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:e7:1e:19-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:e7:1e:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:e7:1e:19-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:e7:1e:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:e7:1e:19-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:e7:1e:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:e7:1e:19-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:e7:1e:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:e7:1e:19-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:e7:1e:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-sur6q7ko-ts0601-0x00000045.json b/tests/data/devices/tze200-sur6q7ko-ts0601-0x00000045.json index fbd5b3598..41ed04051 100644 --- a/tests/data/devices/tze200-sur6q7ko-ts0601-0x00000045.json +++ b/tests/data/devices/tze200-sur6q7ko-ts0601-0x00000045.json @@ -533,502 +533,607 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Open Window Detected", - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInputWithDescription", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": "Open Window Detected", + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInputWithDescription", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInputWithDescription", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 19.8, - "outdoor_temperature": null, - "target_temperature": 15.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1500, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": 1700 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 19.8, + "outdoor_temperature": null, + "target_temperature": 15.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1500, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": 1700 + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Temperature Offset", - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.4, - "mode": "auto", - "native_max_value": 5, - "native_min_value": -5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature Offset", + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 5, + "native_min_value": -5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 1.4 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 14.0, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "ThermostatLocalTempCalibration", + "available": true, + "state": 14.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } }, { - "fallback_name": "Opened Window Temperature", - "unique_id": "ab:cd:ef:12:a2:68:cb:79-2-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 21.0, - "mode": "auto", - "native_max_value": 30.0, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Opened Window Temperature", + "unique_id": "ab:cd:ef:12:a2:68:cb:79-2-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30.0, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 21.0 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 148, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 148 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -63, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -63 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-pi_heating_demand", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PiHeatingDemand", - "translation_key": "pi_heating_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-pi_heating_demand", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PiHeatingDemand", + "translation_key": "pi_heating_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "PiHeatingDemand", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-3-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-3-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:68:cb:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:68:cb:79-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:68:cb:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-t1blo2bj-ts0601.json b/tests/data/devices/tze200-t1blo2bj-ts0601.json index 273a9e2e4..8ce243259 100644 --- a/tests/data/devices/tze200-t1blo2bj-ts0601.json +++ b/tests/data/devices/tze200-t1blo2bj-ts0601.json @@ -175,229 +175,269 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Alarm duration", - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-alarm_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1800, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Alarm duration", + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-alarm_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1800, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Alarm ringtone", - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-alarm_ringtone", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_ringtone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "NeoAlarmMelody18", - "options": [ - "Melody 01", - "Melody 02", - "Melody 03", - "Melody 04", - "Melody 05", - "Melody 06", - "Melody 07", - "Melody 08", - "Melody 09", - "Melody 10", - "Melody 11", - "Melody 12", - "Melody 13", - "Melody 14", - "Melody 15", - "Melody 16", - "Melody 17", - "Melody 18" - ] + "info_object": { + "fallback_name": "Alarm ringtone", + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-alarm_ringtone", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_ringtone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "NeoAlarmMelody18", + "options": [ + "Melody 01", + "Melody 02", + "Melody 03", + "Melody 04", + "Melody 05", + "Melody 06", + "Melody 07", + "Melody 08", + "Melody 09", + "Melody 10", + "Melody 11", + "Melody 12", + "Melody 13", + "Melody 14", + "Melody 15", + "Melody 16", + "Melody 17", + "Melody 18" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Alarm volume", - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-alarm_volume", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_volume", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "NeoAlarmVolume", - "options": [ - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": "Alarm volume", + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-alarm_volume", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_volume", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "NeoAlarmVolume", + "options": [ + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } }, { - "fallback_name": "Siren on", - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-siren_on", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "siren_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "siren_on", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Siren on", + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-siren_on", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "siren_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "siren_on", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:12:28:a9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:12:28:a9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:12:28:a9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-t6gq6nju-ts0601.json b/tests/data/devices/tze200-t6gq6nju-ts0601.json index 468e78409..580aff80d 100644 --- a/tests/data/devices/tze200-t6gq6nju-ts0601.json +++ b/tests/data/devices/tze200-t6gq6nju-ts0601.json @@ -216,80 +216,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:0b:62:5b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:0b:62:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:0b:62:5b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:0b:62:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:0b:62:5b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:0b:62:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:0b:62:5b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:0b:62:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:0b:62:5b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:0b:62:5b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:0b:62:5b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:0b:62:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-udank5zs-ts0601.json b/tests/data/devices/tze200-udank5zs-ts0601.json index 983df021e..20a81c606 100644 --- a/tests/data/devices/tze200-udank5zs-ts0601.json +++ b/tests/data/devices/tze200-udank5zs-ts0601.json @@ -134,80 +134,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7f:df:74-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7f:df:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7f:df:74-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7f:df:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7f:df:74-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7f:df:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7f:df:74-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7f:df:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7f:df:74-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7f:df:74", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7f:df:74-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7f:df:74", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-uf1qujxj-ts0601-0x00000048.json b/tests/data/devices/tze200-uf1qujxj-ts0601-0x00000048.json index 0b7ccdc67..756569992 100644 --- a/tests/data/devices/tze200-uf1qujxj-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-uf1qujxj-ts0601-0x00000048.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:ee:a6:97-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:ee:a6:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:ee:a6:97-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:ee:a6:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:ee:a6:97-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:ee:a6:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:ee:a6:97-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:ee:a6:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:ee:a6:97-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:ee:a6:97", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:ee:a6:97-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:ee:a6:97", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-v1jqz5cy-ts0601.json b/tests/data/devices/tze200-v1jqz5cy-ts0601.json index c22adb92e..4a54fd09f 100644 --- a/tests/data/devices/tze200-v1jqz5cy-ts0601.json +++ b/tests/data/devices/tze200-v1jqz5cy-ts0601.json @@ -133,80 +133,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:97:18:07-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:97:18:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:97:18:07-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:97:18:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:97:18:07-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:97:18:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:97:18:07-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:97:18:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a4:97:18:07-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a4:97:18:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a4:97:18:07-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a4:97:18:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-v9hkz2yn-ts0601.json b/tests/data/devices/tze200-v9hkz2yn-ts0601.json index 9771b4c91..250c60507 100644 --- a/tests/data/devices/tze200-v9hkz2yn-ts0601.json +++ b/tests/data/devices/tze200-v9hkz2yn-ts0601.json @@ -364,431 +364,485 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": null, + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "W", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 2.164, + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2.164, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummationReceived", + "available": true, + "state": 0.0, + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 35.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 35.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-active_power_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhB", - "translation_key": "active_power_ph_b", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-active_power_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhB", + "translation_key": "active_power_ph_b", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePowerPhB", + "available": true, + "state": 42.0 + }, + "extra_state_attributes": [ "active_power_max_ph_b", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 42.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-active_power_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhC", - "translation_key": "active_power_ph_c", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-active_power_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhC", + "translation_key": "active_power_ph_c", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePowerPhC", + "available": true, + "state": 26.0 + }, + "extra_state_attributes": [ "active_power_max_ph_c", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 26.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.368 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.368, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_current_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "translation_key": "rms_current_ph_b", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_current_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "translation_key": "rms_current_ph_b", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "available": true, + "state": 0.758 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max_ph_b" - ], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.758, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_current_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "translation_key": "rms_current_ph_c", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_current_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "translation_key": "rms_current_ph_c", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "available": true, + "state": 0.301 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max_ph_c" - ], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.301, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 243.1 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 243.1, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_voltage_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "translation_key": "rms_voltage_ph_b", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_voltage_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "translation_key": "rms_voltage_ph_b", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "available": true, + "state": 241.6 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max_ph_b" - ], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 241.6, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_voltage_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "translation_key": "rms_voltage_ph_c", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-2820-rms_voltage_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "translation_key": "rms_voltage_ph_c", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "available": true, + "state": 241.7 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max_ph_c" - ], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 241.7, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max_ph_c" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:c5:4c:1d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f7:c5:4c:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-vdiuwbkq-ts0601.json b/tests/data/devices/tze200-vdiuwbkq-ts0601.json index ff42caf9a..369510f4d 100644 --- a/tests/data/devices/tze200-vdiuwbkq-ts0601.json +++ b/tests/data/devices/tze200-vdiuwbkq-ts0601.json @@ -194,108 +194,129 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:37:b4:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": null, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:6c:37:b4:92", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": null, + "current_tilt_position": null, + "state": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:37:b4:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:37:b4:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:37:b4:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:37:b4:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6c:37:b4:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6c:37:b4:92-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6c:37:b4:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-viy9ihs7-ts0601.json b/tests/data/devices/tze200-viy9ihs7-ts0601.json index 1186d04e6..82a66bf5b 100644 --- a/tests/data/devices/tze200-viy9ihs7-ts0601.json +++ b/tests/data/devices/tze200-viy9ihs7-ts0601.json @@ -170,424 +170,509 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Fault alarm", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-fault_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "fault_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "fault_alarm" + "info_object": { + "fallback_name": "Fault alarm", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-fault_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "fault_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "fault_alarm" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Deadzone temperature", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-deadzone_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "deadzone_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Deadzone temperature", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-deadzone_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "deadzone_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9.9, - "native_min_value": -9.9, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.9, + "native_min_value": -9.9, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Backlight mode", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BacklightMode", - "options": [ - "Off", - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": "Backlight mode", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BacklightMode", + "options": [ + "Off", + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "PresetModeV03", - "options": [ - "Auto", - "Manual", - "Temporary Manual" - ] + "info_object": { + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "PresetModeV03", + "options": [ + "Auto", + "Manual", + "Temporary Manual" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-temperature_sensor_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "SensorMode", - "options": [ - "Air", - "Floor", - "Both" - ] + "info_object": { + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-temperature_sensor_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SensorMode", + "options": [ + "Air", + "Floor", + "Both" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Working day", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-working_day", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "working_day", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "WorkingDayV01", - "options": [ - "Disabled", - "Six One", - "Five Two", - "Seven" - ] + "info_object": { + "fallback_name": "Working day", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-working_day", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "working_day", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "WorkingDayV01", + "options": [ + "Disabled", + "Six One", + "Five Two", + "Seven" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Factory reset", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-factory_reset", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "factory_reset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "factory_reset", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Factory reset", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-factory_reset", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "factory_reset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "factory_reset", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:44:77:fc:02-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:44:77:fc:02", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:44:77:fc:02-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:44:77:fc:02", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-vuqzj1ej-ts0601.json b/tests/data/devices/tze200-vuqzj1ej-ts0601.json index d78418f26..a0da7d5f4 100644 --- a/tests/data/devices/tze200-vuqzj1ej-ts0601.json +++ b/tests/data/devices/tze200-vuqzj1ej-ts0601.json @@ -225,200 +225,239 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": true + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 216, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 216 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -46, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -46 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 396, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 396 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 24.1, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 24.1 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:29:18:c5:bf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65.5, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:29:18:c5:bf-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:29:18:c5:bf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 65.5 + } } ] }, diff --git a/tests/data/devices/tze200-vvmbj46n-ts0601-0x00000048.json b/tests/data/devices/tze200-vvmbj46n-ts0601-0x00000048.json index a28acbebe..335790184 100644 --- a/tests/data/devices/tze200-vvmbj46n-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-vvmbj46n-ts0601-0x00000048.json @@ -183,440 +183,525 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Alarm humidity max", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_humidity_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_humidity_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Alarm humidity max", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_humidity_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_humidity_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Alarm humidity min", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_humidity_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_humidity_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Alarm humidity min", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_humidity_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_humidity_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Alarm temperature max", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_temperature_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_temperature_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -20, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Alarm temperature max", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_temperature_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_temperature_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -20, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Alarm temperature min", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_temperature_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_temperature_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": -20, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Alarm temperature min", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-alarm_temperature_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_temperature_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": -20, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Humidity report interval", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-humidity_report_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_report_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 120, - "native_min_value": 5, - "native_step": 5, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Humidity report interval", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-humidity_report_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_report_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 120, + "native_min_value": 5, + "native_step": 5, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Humidity sensitivity", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-humidity_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Humidity sensitivity", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-humidity_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature report interval", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-temperature_report_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_report_interval", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 120, - "native_min_value": 5, - "native_step": 5, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Temperature report interval", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-temperature_report_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_report_interval", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 120, + "native_min_value": 5, + "native_step": 5, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature sensitivity", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-temperature_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 50, - "native_min_value": 0.1, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature sensitivity", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-temperature_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": 0.1, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] + "info_object": { + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": null + } }, { - "fallback_name": "Humidity alarm", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-humidity_alarm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "humidity_alarm", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Humidity alarm", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-humidity_alarm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "humidity_alarm", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature alarm", - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-temperature_alarm", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "temperature_alarm", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Temperature alarm", + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-temperature_alarm", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "temperature_alarm", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:68:2c:96-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:68:2c:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:68:2c:96-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:68:2c:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-wdfurkoa-ts0601-0x00000041.json b/tests/data/devices/tze200-wdfurkoa-ts0601-0x00000041.json index 27bd8d5bf..81d3288a8 100644 --- a/tests/data/devices/tze200-wdfurkoa-ts0601-0x00000041.json +++ b/tests/data/devices/tze200-wdfurkoa-ts0601-0x00000041.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:51:0f:39-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:51:0f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 40, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:51:0f:39-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:51:0f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 40 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:51:0f:39-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:51:0f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:51:0f:39-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:51:0f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:51:0f:39-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:51:0f:39", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000041", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:51:0f:39-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:51:0f:39", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000041", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-wfxuhoea-ts0601-0x00000046.json b/tests/data/devices/tze200-wfxuhoea-ts0601-0x00000046.json index 6729e81ea..50671bf68 100644 --- a/tests/data/devices/tze200-wfxuhoea-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-wfxuhoea-ts0601-0x00000046.json @@ -151,80 +151,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:42:d4:41-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:42:d4:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:42:d4:41-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:42:d4:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:42:d4:41-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:42:d4:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:42:d4:41-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:42:d4:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:51:42:d4:41-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:51:42:d4:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:51:42:d4:41-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:51:42:d4:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-wktrysab-ts0601.json b/tests/data/devices/tze200-wktrysab-ts0601.json index 0d493db02..a397fa3ae 100644 --- a/tests/data/devices/tze200-wktrysab-ts0601.json +++ b/tests/data/devices/tze200-wktrysab-ts0601.json @@ -427,378 +427,497 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 4, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 4, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-5", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 5, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-5", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 5, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-6", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 6, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-6", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 6, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-7", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 7, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-7", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 7, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-8", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 8, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-8", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 8, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:86:20:44-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:86:20:44", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:86:20:44-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:86:20:44", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-wqashyqo-ts0601.json b/tests/data/devices/tze200-wqashyqo-ts0601.json index 83fa0ed8c..39d162bd6 100644 --- a/tests/data/devices/tze200-wqashyqo-ts0601.json +++ b/tests/data/devices/tze200-wqashyqo-ts0601.json @@ -166,153 +166,182 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 96, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 96 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -76, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -76 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 3.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 3.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.1, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.1 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b9:21:9e:2d-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b9:21:9e:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 3.0 + } } ] }, diff --git a/tests/data/devices/tze200-xu4a5rhj-ts0601.json b/tests/data/devices/tze200-xu4a5rhj-ts0601.json index c1c1ccee6..55b18913c 100644 --- a/tests/data/devices/tze200-xu4a5rhj-ts0601.json +++ b/tests/data/devices/tze200-xu4a5rhj-ts0601.json @@ -156,80 +156,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:14:90:9a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:14:90:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:14:90:9a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:14:90:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:14:90:9a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:14:90:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:14:90:9a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:14:90:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:14:90:9a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:14:90:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:14:90:9a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:14:90:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-ya4ft0w4-ts0601.json b/tests/data/devices/tze200-ya4ft0w4-ts0601.json index 0d894b3af..2684bc4cb 100644 --- a/tests/data/devices/tze200-ya4ft0w4-ts0601.json +++ b/tests/data/devices/tze200-ya4ft0w4-ts0601.json @@ -188,281 +188,336 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 9.0, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 9.0 + } }, { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.75, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0.75 + } }, { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 7, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 7 + } }, { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2, - "mode": "auto", - "native_max_value": 15000, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 15000, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 2 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 1 + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 0.0 + } } ], "switch": [ { - "fallback_name": "Distance tracking", - "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-distance_tracking", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "distance_tracking", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:82:14:a9:c3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "distance_tracking", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Distance tracking", + "unique_id": "ab:cd:ef:12:82:14:a9:c3-1-distance_tracking", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "distance_tracking", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:82:14:a9:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "distance_tracking", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } } ] }, diff --git a/tests/data/devices/tze200-yia0p3tr-ts0601-0x00000046.json b/tests/data/devices/tze200-yia0p3tr-ts0601-0x00000046.json index 59880752b..43f7550be 100644 --- a/tests/data/devices/tze200-yia0p3tr-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-yia0p3tr-ts0601-0x00000046.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:b9:8f:58-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:b9:8f:58", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:b9:8f:58-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:b9:8f:58", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:b9:8f:58-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:b9:8f:58", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:b9:8f:58-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:b9:8f:58", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:54:b9:8f:58-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:54:b9:8f:58", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:54:b9:8f:58-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:54:b9:8f:58", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-yjjdcqsq-ts0601.json b/tests/data/devices/tze200-yjjdcqsq-ts0601.json index 50a18ac0b..c4d6eef42 100644 --- a/tests/data/devices/tze200-yjjdcqsq-ts0601.json +++ b/tests/data/devices/tze200-yjjdcqsq-ts0601.json @@ -177,184 +177,219 @@ "zha_lib_entities": { "select": [ { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] + "info_object": { + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AAA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:67:06:f3:52-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:67:06:f3:52", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:67:06:f3:52-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:67:06:f3:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-yojqa8xn-ts0601.json b/tests/data/devices/tze200-yojqa8xn-ts0601.json index ee8331e61..5b3c3098e 100644 --- a/tests/data/devices/tze200-yojqa8xn-ts0601.json +++ b/tests/data/devices/tze200-yojqa8xn-ts0601.json @@ -169,282 +169,337 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": "Preheat active", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-preheat_active", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "preheat_active", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "preheat_active" + "info_object": { + "fallback_name": "Preheat active", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-preheat_active", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "preheat_active", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "preheat_active" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": "Silence alarm", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-silence_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "silence_alarm", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "silence_alarm" + "info_object": { + "fallback_name": "Silence alarm", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-silence_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "silence_alarm", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "silence_alarm" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Alarm duration", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-alarm_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 180, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Alarm duration", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-alarm_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 180, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Alarm ringtone", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-alarm_ringtone", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_ringtone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaSirenRingtone", - "options": [ - "Ringtone 01", - "Ringtone 02", - "Ringtone 03", - "Ringtone 04", - "Ringtone 05" - ] + "info_object": { + "fallback_name": "Alarm ringtone", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-alarm_ringtone", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_ringtone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaSirenRingtone", + "options": [ + "Ringtone 01", + "Ringtone 02", + "Ringtone 03", + "Ringtone 04", + "Ringtone 05" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": "% Lower explosive limit", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-lower_explosive_limit", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "lower_explosive_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%LEL" + "info_object": { + "fallback_name": "% Lower explosive limit", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-lower_explosive_limit", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "lower_explosive_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%LEL" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Self test result", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-self_test", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "self_test", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Self test result", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-self_test", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "self_test", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Self test", - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-self_test_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "self_test_switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "self_test_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Self test", + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-self_test_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "self_test_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "self_test_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:ef:46:1f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:ef:46:1f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:ef:46:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-yvx5lh6k-ts0601.json b/tests/data/devices/tze200-yvx5lh6k-ts0601.json index 38d97c08e..2cacad1ea 100644 --- a/tests/data/devices/tze200-yvx5lh6k-ts0601.json +++ b/tests/data/devices/tze200-yvx5lh6k-ts0601.json @@ -214,126 +214,151 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:91:a5:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:91:a5:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:91:a5:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:91:a5:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:91:a5:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:91:a5:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "PM25", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:91:a5:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:91:a5:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "VOCLevel", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d5:91:a5:45", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:91:a5:45-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d5:91:a5:45", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-yw7cahqs-ts0601-0x00000055.json b/tests/data/devices/tze200-yw7cahqs-ts0601-0x00000055.json index bdd90dde7..904ce6757 100644 --- a/tests/data/devices/tze200-yw7cahqs-ts0601-0x00000055.json +++ b/tests/data/devices/tze200-yw7cahqs-ts0601-0x00000055.json @@ -262,390 +262,470 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Battery low", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "battery_low" + "info_object": { + "fallback_name": "Battery low", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:54:17:e4-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 23.2, - "outdoor_temperature": null, - "target_temperature": 30.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 3000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:54:17:e4-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 23.2, + "outdoor_temperature": null, + "target_temperature": 30.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 3000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": "Valve position", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-valve_position", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "valve_position", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": "Valve position", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-valve_position", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "valve_position", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Away mode", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-away_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "away_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "away_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Away mode", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-away_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "away_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "away_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Schedule enable", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-schedule_enable", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "schedule_enable", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "schedule_enable", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Schedule enable", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-schedule_enable", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "schedule_enable", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "schedule_enable", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:54:17:e4-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:54:17:e4", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000055", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:54:17:e4-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:54:17:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000055", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze200-ztvwu4nk-ts0601.json b/tests/data/devices/tze200-ztvwu4nk-ts0601.json index f36f23160..7dbeeebd5 100644 --- a/tests/data/devices/tze200-ztvwu4nk-ts0601.json +++ b/tests/data/devices/tze200-ztvwu4nk-ts0601.json @@ -133,80 +133,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:5e:45:8e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:5e:45:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:5e:45:8e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:5e:45:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:5e:45:8e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:5e:45:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:5e:45:8e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:5e:45:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:5e:45:8e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:5e:45:8e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:5e:45:8e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:5e:45:8e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-1fuxihti-ts0601.json b/tests/data/devices/tze204-1fuxihti-ts0601.json index c1133ca14..e3ba16913 100644 --- a/tests/data/devices/tze204-1fuxihti-ts0601.json +++ b/tests/data/devices/tze204-1fuxihti-ts0601.json @@ -175,131 +175,157 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": null, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": null, + "current_tilt_position": null, + "state": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:1a:bc:50-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:1a:bc:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-1v1dxkck-ts0601-0x0000004a.json b/tests/data/devices/tze204-1v1dxkck-ts0601-0x0000004a.json index c592871ed..89392ef84 100644 --- a/tests/data/devices/tze204-1v1dxkck-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-1v1dxkck-ts0601-0x0000004a.json @@ -252,196 +252,250 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:71:6b:96-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:71:6b:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:71:6b:96-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:71:6b:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:71:6b:96-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:71:6b:96", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:71:6b:96-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:71:6b:96", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:71:6b:96-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:71:6b:96", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:71:6b:96-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:71:6b:96", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:71:6b:96-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:71:6b:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:71:6b:96-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:71:6b:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:71:6b:96-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:71:6b:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:71:6b:96-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:71:6b:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:71:6b:96-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:71:6b:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:71:6b:96-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:71:6b:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-1youk3hj-ts0601-0x0000004a.json b/tests/data/devices/tze204-1youk3hj-ts0601-0x0000004a.json index 04bcc4f3a..cc323bcc2 100644 --- a/tests/data/devices/tze204-1youk3hj-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-1youk3hj-ts0601-0x0000004a.json @@ -195,389 +195,464 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 150, - "native_step": 75, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 150, + "native_step": 75, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 3, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 3, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motionless detection sensitivity", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-motionless_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "motionless_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 7, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motionless detection sensitivity", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-motionless_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "motionless_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 7, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Output time", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-output_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "output_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1800, - "native_min_value": 10, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Output time", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-output_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "output_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1800, + "native_min_value": 10, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Radar sensitivity", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-radar_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "radar_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 7, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Radar sensitivity", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-radar_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "radar_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 7, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Work mode", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-work_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "work_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaMotionWorkMode", - "options": [ - "Manual", - "Auto" - ] + "info_object": { + "fallback_name": "Work mode", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-work_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "work_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaMotionWorkMode", + "options": [ + "Manual", + "Auto" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": null + } }, { - "fallback_name": "Human motion state", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-human_motion_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "human_motion_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Human motion state", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-human_motion_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "human_motion_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-target_distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "target_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "cm" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-target_distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "target_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "cm" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Output switch", - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-output_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "output_switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "output_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Output switch", + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-output_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "output_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "output_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c6:9a:7d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c6:9a:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-4fblxpma-ts0601-0x00000049.json b/tests/data/devices/tze204-4fblxpma-ts0601-0x00000049.json index a1455832c..d69ff525c 100644 --- a/tests/data/devices/tze204-4fblxpma-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-4fblxpma-ts0601-0x00000049.json @@ -256,110 +256,128 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:04:0c:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:04:0c:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:04:0c:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:04:0c:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:04:0c:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:f4:04:0c:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f4:04:0c:92", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f4:04:0c:92-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f4:04:0c:92", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-58of2pfn-ts0601-0x0000004a.json b/tests/data/devices/tze204-58of2pfn-ts0601-0x0000004a.json index 1ce2df93b..79bbef465 100644 --- a/tests/data/devices/tze204-58of2pfn-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-58of2pfn-ts0601-0x0000004a.json @@ -265,230 +265,297 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-3", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 3, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-3", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 3, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-4", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 4, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-4", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 4, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 164, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 164 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -59, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -59 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1c:a6:1f:fb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1c:a6:1f:fb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-5slehgeo-ts0601-0x0000004a.json b/tests/data/devices/tze204-5slehgeo-ts0601-0x0000004a.json index 38071a07e..5a0a0e3cf 100644 --- a/tests/data/devices/tze204-5slehgeo-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-5slehgeo-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:dc:68:99-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:dc:68:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 136, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:dc:68:99-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:dc:68:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 136 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:dc:68:99-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:dc:68:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -77, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:dc:68:99-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:dc:68:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -77 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c2:dc:68:99-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c2:dc:68:99", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c2:dc:68:99-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c2:dc:68:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-5toc8efa-ts0601.json b/tests/data/devices/tze204-5toc8efa-ts0601.json index f97444056..f44763034 100644 --- a/tests/data/devices/tze204-5toc8efa-ts0601.json +++ b/tests/data/devices/tze204-5toc8efa-ts0601.json @@ -156,80 +156,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:88:70:df:86-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:88:70:df:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:88:70:df:86-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:88:70:df:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:88:70:df:86-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:88:70:df:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:88:70:df:86-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:88:70:df:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:88:70:df:86-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:88:70:df:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:88:70:df:86-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:88:70:df:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-7ytb3h8u-ts0601.json b/tests/data/devices/tze204-7ytb3h8u-ts0601.json index dce8e1378..e9d27d552 100644 --- a/tests/data/devices/tze204-7ytb3h8u-ts0601.json +++ b/tests/data/devices/tze204-7ytb3h8u-ts0601.json @@ -312,368 +312,438 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Irrigation cycles", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_cycles", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_cycles", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Irrigation cycles", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_cycles", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_cycles", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": "Irrigation interval", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_interval", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_interval", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Irrigation interval", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_interval", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_interval", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } }, { - "fallback_name": "Irrigation target", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_target", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "irrigation_target", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 43200, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Irrigation target", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_target", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "irrigation_target", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 43200, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } } ], "select": [ { - "fallback_name": "Irrigation mode", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "irrigation_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Duration", - "enum": "GiexIrrigationMode", - "options": [ - "Duration", - "Capacity" - ] + "info_object": { + "fallback_name": "Irrigation mode", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "irrigation_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "GiexIrrigationMode", + "options": [ + "Duration", + "Capacity" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Duration" + } }, { - "fallback_name": "Weather delay", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-weather_delay", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "weather_delay", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "GiexIrrigationWeatherDelay", - "options": [ - "NoDelay", - "TwentyFourHourDelay", - "FortyEightHourDelay", - "SeventyTwoHourDelay" - ] + "info_object": { + "fallback_name": "Weather delay", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-weather_delay", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "weather_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "GiexIrrigationWeatherDelay", + "options": [ + "NoDelay", + "TwentyFourHourDelay", + "FortyEightHourDelay", + "SeventyTwoHourDelay" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 80.0, + "battery_size": "AA", + "battery_quantity": 4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 80.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "L" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "device_type": "Water Metering", + "zcl_unit_of_measurement": 7 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "L", - "device_type": "Water Metering", - "status": null, - "zcl_unit_of_measurement": 7 + ] }, { - "fallback_name": "Irrigation duration", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_duration", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_duration", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "00:00:06,0", - "suggested_display_precision": null, - "unit": "s" + "info_object": { + "fallback_name": "Irrigation duration", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_duration", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_duration", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "s" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": "00:00:06,0" + } }, { - "fallback_name": "Irrigation end time", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_end_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_end_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "13:53:19", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Irrigation end time", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_end_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_end_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": "13:53:19" + } }, { - "fallback_name": "Irrigation start time", - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_start_time", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_start_time", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "13:53:13", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Irrigation start time", + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-irrigation_start_time", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_start_time", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": "13:53:13" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:66:5d:86:4a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:5d:86:4a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:66:5d:86:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-81yrt3lo-ts0601-0x0000004a.json b/tests/data/devices/tze204-81yrt3lo-ts0601-0x0000004a.json index b72d6d731..06f35cb4d 100644 --- a/tests/data/devices/tze204-81yrt3lo-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-81yrt3lo-ts0601-0x0000004a.json @@ -911,722 +911,834 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummationReceived", + "available": true, + "state": 0.0, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 49.13, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 49.13, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 100, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 240.3, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 240.3, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 55.0, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 55.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.33, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0.33, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummationReceived", + "available": true, + "state": 0.0, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 52.5, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 52.5, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 95.4, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 95.4, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 57, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 57, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-2-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.397, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 0.397, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-3-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-3-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 55.0, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 55.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-3-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-3-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.33, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0.33, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-3-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-3-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummationReceived", + "available": true, + "state": 0.0, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-3-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-3-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 52.5, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 52.5, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-3-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-3-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 95.4, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 95.4, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-3-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-3-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.397, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0.397, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:22:09:db:75-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:22:09:db:75", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:22:09:db:75-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:22:09:db:75", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-9yapgbuv-ts0601.json b/tests/data/devices/tze204-9yapgbuv-ts0601.json index a3328eed3..b9a1d016f 100644 --- a/tests/data/devices/tze204-9yapgbuv-ts0601.json +++ b/tests/data/devices/tze204-9yapgbuv-ts0601.json @@ -170,184 +170,219 @@ "zha_lib_entities": { "select": [ { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] + "info_object": { + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AAA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:d8:c2:76-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3f:d8:c2:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-a2jcoyuk-ts0601-0x0000004a.json b/tests/data/devices/tze204-a2jcoyuk-ts0601-0x0000004a.json index 73b4a1f5a..b9861cc35 100644 --- a/tests/data/devices/tze204-a2jcoyuk-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-a2jcoyuk-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:34:d8:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:34:d8:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:34:d8:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:34:d8:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:34:d8:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:34:d8:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:34:d8:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:34:d8:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5a:34:d8:e0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5a:34:d8:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5a:34:d8:e0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5a:34:d8:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-ai4rqhky-ts0601-0x00000049.json b/tests/data/devices/tze204-ai4rqhky-ts0601-0x00000049.json index be787c82c..aff8efc3b 100644 --- a/tests/data/devices/tze204-ai4rqhky-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-ai4rqhky-ts0601-0x00000049.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:50:cc:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:50:cc:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:50:cc:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:50:cc:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:50:cc:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:50:cc:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:50:cc:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:50:cc:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b1:50:cc:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b1:50:cc:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:50:cc:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b1:50:cc:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-aoclfnxz-ts0601-0x0000004a.json b/tests/data/devices/tze204-aoclfnxz-ts0601-0x0000004a.json index 5834e76da..4eea62b50 100644 --- a/tests/data/devices/tze204-aoclfnxz-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-aoclfnxz-ts0601-0x0000004a.json @@ -199,80 +199,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:91:c5:14-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:91:c5:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:91:c5:14-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:91:c5:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:91:c5:14-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:91:c5:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:91:c5:14-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:91:c5:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2d:91:c5:14-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2d:91:c5:14", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2d:91:c5:14-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2d:91:c5:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-b8vxct9l-ts0601-0x0000004a.json b/tests/data/devices/tze204-b8vxct9l-ts0601-0x0000004a.json index 8597f5692..d77a380a6 100644 --- a/tests/data/devices/tze204-b8vxct9l-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-b8vxct9l-ts0601-0x0000004a.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:fa:60:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:fa:60:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:fa:60:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:fa:60:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:fa:60:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:fa:60:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -52, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:fa:60:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:fa:60:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -52 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:af:fa:60:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:af:fa:60:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:af:fa:60:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:af:fa:60:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-bkkmqmyo-ts0601.json b/tests/data/devices/tze204-bkkmqmyo-ts0601.json index 30cb061e8..048cef063 100644 --- a/tests/data/devices/tze204-bkkmqmyo-ts0601.json +++ b/tests/data/devices/tze204-bkkmqmyo-ts0601.json @@ -439,255 +439,290 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.08, + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.08, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummationReceived", + "available": true, + "state": 0.0, + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 10.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 10.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 49.97 + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 49.97, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 372 + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 372, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:83:e9:5e:8c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:83:e9:5e:8c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-bxoo2swd-ts0601.json b/tests/data/devices/tze204-bxoo2swd-ts0601.json index 0da73c19b..4f48cfee0 100644 --- a/tests/data/devices/tze204-bxoo2swd-ts0601.json +++ b/tests/data/devices/tze204-bxoo2swd-ts0601.json @@ -189,158 +189,199 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:5e:9c:07-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:5e:9c:07-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:5e:9c:07-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:5e:9c:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-c2fmom5z-ts0601-0x0000004a.json b/tests/data/devices/tze204-c2fmom5z-ts0601-0x0000004a.json index 71ff56194..e8b949e05 100644 --- a/tests/data/devices/tze204-c2fmom5z-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-c2fmom5z-ts0601-0x0000004a.json @@ -362,218 +362,263 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 18.5, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 18.5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 71.8, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 71.8 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 486.99999999999994, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "CarbonDioxideConcentration", + "available": true, + "state": 486.99999999999994 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "PM25", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1067", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "FormaldehydeConcentration", - "translation_key": "formaldehyde", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 34.0, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1067", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "FormaldehydeConcentration", + "translation_key": "formaldehyde", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "FormaldehydeConcentration", + "available": true, + "state": 34.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 12.0, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "VOCLevel", + "available": true, + "state": 12.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e1:f5:c9:be-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e1:f5:c9:be", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-chbyv06x-ts0601.json b/tests/data/devices/tze204-chbyv06x-ts0601.json index 378a3c78d..8b95e406e 100644 --- a/tests/data/devices/tze204-chbyv06x-ts0601.json +++ b/tests/data/devices/tze204-chbyv06x-ts0601.json @@ -169,282 +169,337 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": "ias_zone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": "ias_zone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": "Preheat active", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-preheat_active", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "preheat_active", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "preheat_active" + "info_object": { + "fallback_name": "Preheat active", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-preheat_active", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "preheat_active", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "preheat_active" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": "Silence alarm", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-silence_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "silence_alarm", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "silence_alarm" + "info_object": { + "fallback_name": "Silence alarm", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-silence_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "silence_alarm", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "silence_alarm" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Alarm duration", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-alarm_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 180, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Alarm duration", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-alarm_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 180, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Alarm ringtone", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-alarm_ringtone", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_ringtone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaSirenRingtone", - "options": [ - "Ringtone 01", - "Ringtone 02", - "Ringtone 03", - "Ringtone 04", - "Ringtone 05" - ] + "info_object": { + "fallback_name": "Alarm ringtone", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-alarm_ringtone", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_ringtone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaSirenRingtone", + "options": [ + "Ringtone 01", + "Ringtone 02", + "Ringtone 03", + "Ringtone 04", + "Ringtone 05" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": "% Lower explosive limit", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-lower_explosive_limit", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "lower_explosive_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%LEL" + "info_object": { + "fallback_name": "% Lower explosive limit", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-lower_explosive_limit", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "lower_explosive_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%LEL" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Self test result", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-self_test", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "self_test", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Self test result", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-self_test", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "self_test", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Self test", - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-self_test_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "self_test_switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "self_test_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Self test", + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-self_test_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "self_test_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "self_test_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:85:7c:cd:63", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:7c:cd:63-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:85:7c:cd:63", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-cirvgep4-ts0601-0x00000049.json b/tests/data/devices/tze204-cirvgep4-ts0601-0x00000049.json index d9208c049..6e96a1c13 100644 --- a/tests/data/devices/tze204-cirvgep4-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-cirvgep4-ts0601-0x00000049.json @@ -195,184 +195,219 @@ "zha_lib_entities": { "select": [ { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] + "info_object": { + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AAA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:04:97:a0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:46:04:97:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:04:97:a0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:46:04:97:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-cjbofhxw-ts0601.json b/tests/data/devices/tze204-cjbofhxw-ts0601.json index d7f8ac823..f88b8a306 100644 --- a/tests/data/devices/tze204-cjbofhxw-ts0601.json +++ b/tests/data/devices/tze204-cjbofhxw-ts0601.json @@ -376,109 +376,127 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 122.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 122.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:f5:c9:72-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:f5:c9:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-d6i25bwg-ts0601-0x0000004a.json b/tests/data/devices/tze204-d6i25bwg-ts0601-0x0000004a.json index cc206ba64..c5ee8c110 100644 --- a/tests/data/devices/tze204-d6i25bwg-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-d6i25bwg-ts0601-0x0000004a.json @@ -189,126 +189,151 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 188, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 188 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -53, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -53 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 19.9, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 19.9 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 44.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 44.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:3f:e3:79-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:3f:e3:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-dqolcpcp-ts0601.json b/tests/data/devices/tze204-dqolcpcp-ts0601.json index fcb342716..691f98960 100644 --- a/tests/data/devices/tze204-dqolcpcp-ts0601.json +++ b/tests/data/devices/tze204-dqolcpcp-ts0601.json @@ -543,80 +543,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:57:29:bb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:57:29:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:57:29:bb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:57:29:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:57:29:bb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:57:29:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:57:29:bb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:57:29:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:57:29:bb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:57:29:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:57:29:bb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:57:29:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-dtzziy1e-ts0601.json b/tests/data/devices/tze204-dtzziy1e-ts0601.json index 09f9b7393..bb946e398 100644 --- a/tests/data/devices/tze204-dtzziy1e-ts0601.json +++ b/tests/data/devices/tze204-dtzziy1e-ts0601.json @@ -152,520 +152,620 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Block time", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-block_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "block_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Block time", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-block_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "block_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-detection_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-detection_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Entry distance indentation", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-entry_distance_indentation", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "entry_distance_indentation", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Entry distance indentation", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-entry_distance_indentation", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "entry_distance_indentation", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Entry sensitivity", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-entry_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "entry_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Entry sensitivity", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-entry_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "entry_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Illuminance threshold", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-illuminance_threshold", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "illuminance_threshold", - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 420, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "lx" + "info_object": { + "fallback_name": "Illuminance threshold", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-illuminance_threshold", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "illuminance_threshold", + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 420, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "lx" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Breaker mode", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-breaker_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaBreakerMode", - "options": [ - "Standard", - "Local" - ] + "info_object": { + "fallback_name": "Breaker mode", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-breaker_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBreakerMode", + "options": [ + "Standard", + "Local" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Breaker polarity", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-breaker_polarity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_polarity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaBreakerPolarity", - "options": [ - "NC", - "NO" - ] + "info_object": { + "fallback_name": "Breaker polarity", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-breaker_polarity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_polarity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBreakerPolarity", + "options": [ + "NC", + "NO" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Breaker status", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-breaker_status", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaBreakerStatus", - "options": [ - "Off", - "On" - ] + "info_object": { + "fallback_name": "Breaker status", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-breaker_status", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBreakerStatus", + "options": [ + "Off", + "On" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-sensor_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaMotionSensorMode", - "options": [ - "On", - "Off", - "Occupied", - "Unoccupied" - ] + "info_object": { + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-sensor_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaMotionSensorMode", + "options": [ + "On", + "Off", + "Occupied", + "Unoccupied" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Status indication", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-status_indication", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "status_indication", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaStatusIndication", - "options": [ - "Off", - "On" - ] + "info_object": { + "fallback_name": "Status indication", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-status_indication", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "status_indication", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaStatusIndication", + "options": [ + "Off", + "On" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": null + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:a3:20", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:a3:20-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:a3:20", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-dwcarsat-ts0601-0x0000004a.json b/tests/data/devices/tze204-dwcarsat-ts0601-0x0000004a.json index 65b3e079d..e32fb91a7 100644 --- a/tests/data/devices/tze204-dwcarsat-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-dwcarsat-ts0601-0x0000004a.json @@ -241,218 +241,263 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 23.5, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 23.5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 47.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 47.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3.0, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "CarbonDioxideConcentration", + "available": true, + "state": 3.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 26, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "PM25", + "available": true, + "state": 26 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1067", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "FormaldehydeConcentration", - "translation_key": "formaldehyde", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 477.0, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1067", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "FormaldehydeConcentration", + "translation_key": "formaldehyde", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "FormaldehydeConcentration", + "available": true, + "state": 477.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 126.0, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "VOCLevel", + "available": true, + "state": 126.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:09:0a:75:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:09:0a:75:a0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:09:0a:75:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-eekpf0ft-ts0601-0x0000004a.json b/tests/data/devices/tze204-eekpf0ft-ts0601-0x0000004a.json index 37da2160e..538d268b6 100644 --- a/tests/data/devices/tze204-eekpf0ft-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-eekpf0ft-ts0601-0x0000004a.json @@ -164,80 +164,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:0c:bc:56-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:0c:bc:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:0c:bc:56-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:0c:bc:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:0c:bc:56-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:0c:bc:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -31, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:0c:bc:56-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:0c:bc:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -31 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1f:0c:bc:56-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1f:0c:bc:56", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:0c:bc:56-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1f:0c:bc:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-ex3rcdha-ts0601-0x0000004a.json b/tests/data/devices/tze204-ex3rcdha-ts0601-0x0000004a.json index 5ae927f9b..11ee024e0 100644 --- a/tests/data/devices/tze204-ex3rcdha-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-ex3rcdha-ts0601-0x0000004a.json @@ -474,441 +474,526 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Sensitivity", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Sensitivity", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "Breath detection max", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-breath_detection_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "breath_detection_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Breath detection max", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-breath_detection_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "breath_detection_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Breath detection min", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-breath_detection_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "breath_detection_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Breath detection min", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-breath_detection_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "breath_detection_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Breath sensitivity", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-breath_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "breath_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Breath sensitivity", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-breath_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "breath_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 180, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 180, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Min range", - "unique_id": "ab:cd:ef:12:d9:08:34:09-2-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 950, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Min range", + "unique_id": "ab:cd:ef:12:d9:08:34:09-2-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 950, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "Max range", - "unique_id": "ab:cd:ef:12:d9:08:34:09-3-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 950, - "native_min_value": 10, - "native_step": 10, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Max range", + "unique_id": "ab:cd:ef:12:d9:08:34:09-3-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 950, + "native_min_value": 10, + "native_step": 10, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:d9:08:34:09-4-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 20000, - "native_min_value": 0, - "native_step": 100, - "native_unit_of_measurement": "ms" + "info_object": { + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:d9:08:34:09-4-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 4, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 20000, + "native_min_value": 0, + "native_step": 100, + "native_unit_of_measurement": "ms" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 0 + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:d9:08:34:09-5-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 200000, - "native_min_value": 2000, - "native_step": 1000, - "native_unit_of_measurement": "ms" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:d9:08:34:09-5-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 5, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 200000, + "native_min_value": 2000, + "native_step": 1000, + "native_unit_of_measurement": "ms" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-12-analog_input", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AnalogInputSensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-12-analog_input", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AnalogInputSensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "AnalogInputSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d9:08:34:09-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d9:08:34:09", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d9:08:34:09-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d9:08:34:09", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-fhvdgeuh-ts0601-0x0000004a.json b/tests/data/devices/tze204-fhvdgeuh-ts0601-0x0000004a.json index 8867205e4..4567a5b8a 100644 --- a/tests/data/devices/tze204-fhvdgeuh-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-fhvdgeuh-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:4b:fc:2f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:4b:fc:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:4b:fc:2f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:4b:fc:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:4b:fc:2f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:4b:fc:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:4b:fc:2f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:4b:fc:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:93:4b:fc:2f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:93:4b:fc:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:93:4b:fc:2f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:93:4b:fc:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-g2ki0ejr-ts0601.json b/tests/data/devices/tze204-g2ki0ejr-ts0601.json index 3d516de23..6f0013d27 100644 --- a/tests/data/devices/tze204-g2ki0ejr-ts0601.json +++ b/tests/data/devices/tze204-g2ki0ejr-ts0601.json @@ -127,80 +127,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:a5:c0:28-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:a5:c0:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:a5:c0:28-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:a5:c0:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:a5:c0:28-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:a5:c0:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:a5:c0:28-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:a5:c0:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:47:a5:c0:28-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:47:a5:c0:28", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:47:a5:c0:28-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:47:a5:c0:28", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-goecjd1t-ts0601-0x0000004a.json b/tests/data/devices/tze204-goecjd1t-ts0601-0x0000004a.json index 612cd4371..d3e593ffd 100644 --- a/tests/data/devices/tze204-goecjd1t-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-goecjd1t-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:87:3c:45:da-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:87:3c:45:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:87:3c:45:da-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:87:3c:45:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:87:3c:45:da-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:87:3c:45:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:87:3c:45:da-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:87:3c:45:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:87:3c:45:da-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:87:3c:45:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:87:3c:45:da-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:87:3c:45:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-gops3slb-ts0601-0x0000004a.json b/tests/data/devices/tze204-gops3slb-ts0601-0x0000004a.json index 151077bdc..42db989ec 100644 --- a/tests/data/devices/tze204-gops3slb-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-gops3slb-ts0601-0x0000004a.json @@ -230,450 +230,540 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Fault alarm", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-fault_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "fault_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "fault_alarm" + "info_object": { + "fallback_name": "Fault alarm", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-fault_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "fault_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "fault_alarm" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 25.3, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "off", - "hvac_mode": "off", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 40.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[0]/off", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2250, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 40.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 25.3, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "off", + "hvac_mode": "off", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[0]/off", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2250, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 40.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 40.0 + } }, { - "fallback_name": "Deadzone temperature", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-deadzone_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "deadzone_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Deadzone temperature", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-deadzone_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "deadzone_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9.9, - "native_min_value": -9.9, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.9, + "native_min_value": -9.9, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Backlight mode", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BacklightMode", - "options": [ - "Off", - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": "Backlight mode", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BacklightMode", + "options": [ + "Off", + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "PresetModeV02", - "options": [ - "Manual", - "Auto", - "Temporary Manual" - ] + "info_object": { + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "PresetModeV02", + "options": [ + "Manual", + "Auto", + "Temporary Manual" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-temperature_sensor_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "SensorMode", - "options": [ - "Air", - "Floor", - "Both" - ] + "info_object": { + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-temperature_sensor_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SensorMode", + "options": [ + "Air", + "Floor", + "Both" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Working day", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-working_day", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "working_day", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "WorkingDayV02", - "options": [ - "Disabled", - "Five Two", - "Six One", - "Seven" - ] + "info_object": { + "fallback_name": "Working day", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-working_day", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "working_day", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "WorkingDayV02", + "options": [ + "Disabled", + "Five Two", + "Six One", + "Seven" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 224, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 224 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -55, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -55 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "off", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "off" + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Factory reset", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-factory_reset", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "factory_reset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "factory_reset", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Factory reset", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-factory_reset", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "factory_reset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "factory_reset", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:72:cf:0d:25", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:72:cf:0d:25-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:72:cf:0d:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-guvc7pdy-ts0601-0x0000004a.json b/tests/data/devices/tze204-guvc7pdy-ts0601-0x0000004a.json index 163e921d3..743c09829 100644 --- a/tests/data/devices/tze204-guvc7pdy-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-guvc7pdy-ts0601-0x0000004a.json @@ -224,108 +224,129 @@ "zha_lib_entities": { "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": null, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": null, + "current_tilt_position": null, + "state": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:fe:8a:21-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:fe:8a:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-hlx9tnzb-ts0601.json b/tests/data/devices/tze204-hlx9tnzb-ts0601.json index 70c2bca47..99070d358 100644 --- a/tests/data/devices/tze204-hlx9tnzb-ts0601.json +++ b/tests/data/devices/tze204-hlx9tnzb-ts0601.json @@ -195,120 +195,148 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": 2, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": 2, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:a1:f1:a8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:a1:f1:a8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-iaeejhvf-ts0601-0x0000004a.json b/tests/data/devices/tze204-iaeejhvf-ts0601-0x0000004a.json index c121348fd..398626af3 100644 --- a/tests/data/devices/tze204-iaeejhvf-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-iaeejhvf-ts0601-0x0000004a.json @@ -504,673 +504,803 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Sensitivity", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Sensitivity", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 5 + } }, { - "fallback_name": "Block time", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-block_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "block_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Block time", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-block_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "block_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-detection_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-detection_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Entry distance indentation", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-entry_distance_indentation", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "entry_distance_indentation", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Entry distance indentation", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-entry_distance_indentation", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "entry_distance_indentation", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Entry sensitivity", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-entry_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "entry_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Entry sensitivity", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-entry_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "entry_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Illuminance threshold", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-illuminance_threshold", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "illuminance_threshold", - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 420, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "lx" + "info_object": { + "fallback_name": "Illuminance threshold", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-illuminance_threshold", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "illuminance_threshold", + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 420, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "lx" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Min range", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-2-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": 40.0, - "mode": "auto", - "native_max_value": 950, - "native_min_value": 0, - "native_step": 10, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Min range", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-2-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 950, + "native_min_value": 0, + "native_step": 10, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 40.0 + } }, { - "fallback_name": "Max range", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-3-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 140.0, - "mode": "auto", - "native_max_value": 950, - "native_min_value": 10, - "native_step": 10, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Max range", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-3-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 950, + "native_min_value": 10, + "native_step": 10, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 140.0 + } }, { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-4-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": 500.0, - "mode": "auto", - "native_max_value": 20000, - "native_min_value": 0, - "native_step": 100, - "native_unit_of_measurement": "ms" + "info_object": { + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-4-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 4, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 20000, + "native_min_value": 0, + "native_step": 100, + "native_unit_of_measurement": "ms" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 500.0 + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-5-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 5, - "available": true, - "group_id": null, - "native_value": 2000.0, - "mode": "auto", - "native_max_value": 200000, - "native_min_value": 2000, - "native_step": 1000, - "native_unit_of_measurement": "ms" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-5-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 5, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 200000, + "native_min_value": 2000, + "native_step": 1000, + "native_unit_of_measurement": "ms" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": 2000.0 + } } ], "select": [ { - "fallback_name": "Breaker mode", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-breaker_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaBreakerMode", - "options": [ - "Standard", - "Local" - ] + "info_object": { + "fallback_name": "Breaker mode", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-breaker_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBreakerMode", + "options": [ + "Standard", + "Local" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Breaker polarity", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-breaker_polarity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_polarity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaBreakerPolarity", - "options": [ - "NC", - "NO" - ] + "info_object": { + "fallback_name": "Breaker polarity", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-breaker_polarity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_polarity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBreakerPolarity", + "options": [ + "NC", + "NO" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Breaker status", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-breaker_status", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaBreakerStatus", - "options": [ - "Off", - "On" - ] + "info_object": { + "fallback_name": "Breaker status", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-breaker_status", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBreakerStatus", + "options": [ + "Off", + "On" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-sensor_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaMotionSensorMode", - "options": [ - "On", - "Off", - "Occupied", - "Unoccupied" - ] + "info_object": { + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-sensor_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaMotionSensorMode", + "options": [ + "On", + "Off", + "Occupied", + "Unoccupied" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Status indication", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-status_indication", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "status_indication", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaStatusIndication", - "options": [ - "Off", - "On" - ] + "info_object": { + "fallback_name": "Status indication", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-status_indication", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "status_indication", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaStatusIndication", + "options": [ + "Off", + "On" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 768, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 768 + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-12-analog_input", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "AnalogInputSensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-12-analog_input", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "AnalogInputSensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "AnalogInputSensor", + "available": true, + "state": 0.0 + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:52:88:1c:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:88:1c:b0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:52:88:1c:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-ijxvkhd0-ts0601.json b/tests/data/devices/tze204-ijxvkhd0-ts0601.json index abd6a3215..9483c5673 100644 --- a/tests/data/devices/tze204-ijxvkhd0-ts0601.json +++ b/tests/data/devices/tze204-ijxvkhd0-ts0601.json @@ -156,80 +156,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:78:4c:6e:1d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:78:4c:6e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:78:4c:6e:1d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:78:4c:6e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:78:4c:6e:1d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:78:4c:6e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:78:4c:6e:1d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:78:4c:6e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:78:4c:6e:1d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:78:4c:6e:1d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:78:4c:6e:1d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:78:4c:6e:1d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-jrcfsaa3-ts0601-0x0000004a.json b/tests/data/devices/tze204-jrcfsaa3-ts0601-0x0000004a.json index 22eb8e6dc..f8d5adcd5 100644 --- a/tests/data/devices/tze204-jrcfsaa3-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-jrcfsaa3-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:85:7f:ad-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:85:7f:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:85:7f:ad-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:85:7f:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:85:7f:ad-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:85:7f:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:85:7f:ad-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:85:7f:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:85:7f:ad-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:85:7f:ad", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:85:7f:ad-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:85:7f:ad", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-k7mfgaen-ts0601.json b/tests/data/devices/tze204-k7mfgaen-ts0601.json index e6ed36c73..9cf2e565c 100644 --- a/tests/data/devices/tze204-k7mfgaen-ts0601.json +++ b/tests/data/devices/tze204-k7mfgaen-ts0601.json @@ -194,256 +194,301 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Charging", - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-charge_state", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery_charging", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "charge_state" + "info_object": { + "fallback_name": "Charging", + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-charge_state", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery_charging", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "charge_state" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Alarm duration", - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Alarm duration", + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Alarm mode", - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaSirenState", - "options": [ - "Sound", - "Light", - "Sound and light", - "Normal" - ] + "info_object": { + "fallback_name": "Alarm mode", + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaSirenState", + "options": [ + "Sound", + "Light", + "Sound and light", + "Normal" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Alarm ringtone", - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_ringtone", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_ringtone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaSirenRingtoneV02", - "options": [ - "Ringtone 01", - "Ringtone 02", - "Ringtone 03", - "Ringtone 04", - "Ringtone 05", - "Ringtone 06", - "Ringtone 07", - "Ringtone 08", - "Door", - "Water", - "Temperature", - "Entered", - "Left" - ] + "info_object": { + "fallback_name": "Alarm ringtone", + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_ringtone", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_ringtone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaSirenRingtoneV02", + "options": [ + "Ringtone 01", + "Ringtone 02", + "Ringtone 03", + "Ringtone 04", + "Ringtone 05", + "Ringtone 06", + "Ringtone 07", + "Ringtone 08", + "Door", + "Water", + "Temperature", + "Entered", + "Left" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Alarm volume", - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_volume", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_volume", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaAlarmVolume", - "options": [ - "Low", - "Medium", - "High", - "Mute" - ] + "info_object": { + "fallback_name": "Alarm volume", + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-alarm_volume", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_volume", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaAlarmVolume", + "options": [ + "Low", + "Medium", + "High", + "Mute" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Siren on", - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-siren_on", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "siren_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "siren_on", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Siren on", + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-siren_on", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "siren_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "siren_on", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1d:f6:05:38", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1d:f6:05:38-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1d:f6:05:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-kobbcyum-ts0601.json b/tests/data/devices/tze204-kobbcyum-ts0601.json index 05eb07aeb..767d386dd 100644 --- a/tests/data/devices/tze204-kobbcyum-ts0601.json +++ b/tests/data/devices/tze204-kobbcyum-ts0601.json @@ -196,80 +196,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:76:55:79-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:76:55:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:76:55:79-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:76:55:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:76:55:79-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:76:55:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:76:55:79-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:76:55:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:76:55:79-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:76:55:79", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:76:55:79-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:76:55:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-kyhbrfyl-ts0601.json b/tests/data/devices/tze204-kyhbrfyl-ts0601.json index 0baed05ba..2acc6bef1 100644 --- a/tests/data/devices/tze204-kyhbrfyl-ts0601.json +++ b/tests/data/devices/tze204-kyhbrfyl-ts0601.json @@ -166,256 +166,306 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": true + } } ], "number": [ { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 150, - "native_step": 1, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 150, + "native_step": 1, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 3, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 3, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 7, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 7, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Radar sensitivity", - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-radar_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "radar_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 7, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Radar sensitivity", + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-radar_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "radar_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 7, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": "Human motion state", - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-human_motion_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "human_motion_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Human motion state", + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-human_motion_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "human_motion_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-target_distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "target_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "cm" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-target_distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "target_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "cm" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8d:c7:bc:8a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8d:c7:bc:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-l8xiyymq-ts0601.json b/tests/data/devices/tze204-l8xiyymq-ts0601.json index 676a1e88b..405c37037 100644 --- a/tests/data/devices/tze204-l8xiyymq-ts0601.json +++ b/tests/data/devices/tze204-l8xiyymq-ts0601.json @@ -165,80 +165,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:f8:60:0e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1e:f8:60:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:f8:60:0e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1e:f8:60:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:f8:60:0e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1e:f8:60:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:f8:60:0e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1e:f8:60:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1e:f8:60:0e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1e:f8:60:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1e:f8:60:0e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1e:f8:60:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-lb0fsvba-ts0601-0x0000004a.json b/tests/data/devices/tze204-lb0fsvba-ts0601-0x0000004a.json index 0f47f6131..dfe0427ec 100644 --- a/tests/data/devices/tze204-lb0fsvba-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-lb0fsvba-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:30:4a:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:30:4a:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 188, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:30:4a:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:30:4a:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 188 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:30:4a:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:30:4a:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -53, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:30:4a:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:30:4a:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -53 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a6:30:4a:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a6:30:4a:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a6:30:4a:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a6:30:4a:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-lbbg34rj-ts0601-0x0000004a.json b/tests/data/devices/tze204-lbbg34rj-ts0601-0x0000004a.json index b2b4687c1..87215b07f 100644 --- a/tests/data/devices/tze204-lbbg34rj-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-lbbg34rj-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:2f:91:65-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:2f:91:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:2f:91:65-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:2f:91:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:2f:91:65-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:2f:91:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:2f:91:65-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:2f:91:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:2f:91:65-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:2f:91:65", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:2f:91:65-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:2f:91:65", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-lpedvtvr-ts0601-0x0000004a.json b/tests/data/devices/tze204-lpedvtvr-ts0601-0x0000004a.json index 92b02e541..0905755e1 100644 --- a/tests/data/devices/tze204-lpedvtvr-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-lpedvtvr-ts0601-0x0000004a.json @@ -321,205 +321,250 @@ "zha_lib_entities": { "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 21.5, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": 20.0, - "hvac_action": "idle", - "hvac_mode": "heat_cool", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[1]/heat_cool", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 21.5, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": 20.0, + "hvac_action": "idle", + "hvac_mode": "heat_cool", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[1]/heat_cool", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3b:28:22:86-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3b:28:22:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:28:22:86-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3b:28:22:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-lsanae15-ts0601-0x0000004a.json b/tests/data/devices/tze204-lsanae15-ts0601-0x0000004a.json index 9c882a74c..ecbfdfc2d 100644 --- a/tests/data/devices/tze204-lsanae15-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-lsanae15-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:3e:33:41-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:3e:33:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:3e:33:41-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:3e:33:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:3e:33:41-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:3e:33:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:3e:33:41-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:3e:33:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:3e:33:41-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:3e:33:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:3e:33:41-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:3e:33:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004a.json b/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004a.json index cba7be6be..0c36cc247 100644 --- a/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004a.json @@ -269,578 +269,693 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "window", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "window_open" + "info_object": { + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "window", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_open" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 19.7, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1800, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 19.7, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1800, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Comfort temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-comfort_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 17.0, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Comfort temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-comfort_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 17.0 + } }, { - "fallback_name": "Eco temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-eco_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "eco_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20.0, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Eco temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-eco_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "eco_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 20.0 + } }, { - "fallback_name": "Holiday temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-holiday_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "holiday_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Holiday temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-holiday_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "holiday_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0.0 + } }, { - "fallback_name": "Max temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-max_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 15, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Max temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-max_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 15, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Min temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-min_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 15, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Min temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-min_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 15, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_brightness", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaDisplayBrightness", - "options": [ - "High", - "Medium", - "Low" - ] + "info_object": { + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_brightness", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaDisplayBrightness", + "options": [ + "High", + "Medium", + "Low" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Display orientation", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_orientation", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_orientation", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaDisplayOrientation", - "options": [ - "Up", - "Down" - ] + "info_object": { + "fallback_name": "Display orientation", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_orientation", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_orientation", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaDisplayOrientation", + "options": [ + "Up", + "Down" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Hysteresis mode", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-hysteresis_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "hysteresis_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaHysteresis", - "options": [ - "Comfort", - "Eco" - ] + "info_object": { + "fallback_name": "Hysteresis mode", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-hysteresis_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "hysteresis_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaHysteresis", + "options": [ + "Comfort", + "Eco" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motor thrust", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-motor_thrust", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motor_thrust", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaMotorThrust", - "options": [ - "Strong", - "Middle", - "Weak" - ] + "info_object": { + "fallback_name": "Motor thrust", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-motor_thrust", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motor_thrust", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaMotorThrust", + "options": [ + "Strong", + "Middle", + "Weak" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaPresetMode", - "options": [ - "Eco", - "Auto", - "Off", - "Heat" - ] + "info_object": { + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPresetMode", + "options": [ + "Eco", + "Auto", + "Off", + "Heat" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "heating", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "heating" + } }, { - "fallback_name": "Valve position", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-valve_position", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "valve_position", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": "Valve position", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-valve_position", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "valve_position", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 0.0 + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004e.json b/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004e.json index 9d1e72020..b8405dd5f 100644 --- a/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004e.json +++ b/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004e.json @@ -359,578 +359,693 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "window", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "window_open" + "info_object": { + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "window", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_open" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 22.2, - "outdoor_temperature": null, - "target_temperature": 21.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2100, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 22.2, + "outdoor_temperature": null, + "target_temperature": 21.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2100, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Comfort temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-comfort_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 21.0, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Comfort temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-comfort_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 21.0 + } }, { - "fallback_name": "Eco temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-eco_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "eco_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 20.0, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Eco temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-eco_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "eco_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 20.0 + } }, { - "fallback_name": "Holiday temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-holiday_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "holiday_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 15.0, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Holiday temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-holiday_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "holiday_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 15.0 + } }, { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -2.4000000000000004, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": -2.4000000000000004 + } }, { - "fallback_name": "Max temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-max_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 15, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Max temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-max_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 15, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 30.0 + } }, { - "fallback_name": "Min temperature", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-min_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "auto", - "native_max_value": 15, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Min temperature", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-min_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 15, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 5.0 + } } ], "select": [ { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_brightness", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "High", - "enum": "TuyaDisplayBrightness", - "options": [ - "High", - "Medium", - "Low" - ] + "info_object": { + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_brightness", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaDisplayBrightness", + "options": [ + "High", + "Medium", + "Low" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "High" + } }, { - "fallback_name": "Display orientation", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_orientation", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_orientation", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Up", - "enum": "TuyaDisplayOrientation", - "options": [ - "Up", - "Down" - ] + "info_object": { + "fallback_name": "Display orientation", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-display_orientation", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_orientation", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaDisplayOrientation", + "options": [ + "Up", + "Down" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Up" + } }, { - "fallback_name": "Hysteresis mode", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-hysteresis_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "hysteresis_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Comfort", - "enum": "TuyaHysteresis", - "options": [ - "Comfort", - "Eco" - ] + "info_object": { + "fallback_name": "Hysteresis mode", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-hysteresis_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "hysteresis_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaHysteresis", + "options": [ + "Comfort", + "Eco" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Comfort" + } }, { - "fallback_name": "Motor thrust", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-motor_thrust", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motor_thrust", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Weak", - "enum": "TuyaMotorThrust", - "options": [ - "Strong", - "Middle", - "Weak" - ] + "info_object": { + "fallback_name": "Motor thrust", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-motor_thrust", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motor_thrust", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaMotorThrust", + "options": [ + "Strong", + "Middle", + "Weak" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Weak" + } }, { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Heat", - "enum": "TuyaPresetMode", - "options": [ - "Eco", - "Auto", - "Off", - "Heat" - ] + "info_object": { + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPresetMode", + "options": [ + "Eco", + "Auto", + "Off", + "Heat" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Heat" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 152, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 152 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -62, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -62 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": "Valve position", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-valve_position", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "valve_position", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": "Valve position", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-valve_position", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "valve_position", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 0.0 + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1b:1e:95:0a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:1b:1e:95:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-lzriup1j-ts0601.json b/tests/data/devices/tze204-lzriup1j-ts0601.json index bc17bb527..aa664b110 100644 --- a/tests/data/devices/tze204-lzriup1j-ts0601.json +++ b/tests/data/devices/tze204-lzriup1j-ts0601.json @@ -193,424 +193,509 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Fault alarm", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-fault_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "fault_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "fault_alarm" + "info_object": { + "fallback_name": "Fault alarm", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-fault_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "fault_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "fault_alarm" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Deadzone temperature", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-deadzone_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "deadzone_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Deadzone temperature", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-deadzone_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "deadzone_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9.9, - "native_min_value": -9.9, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.9, + "native_min_value": -9.9, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Backlight mode", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BacklightMode", - "options": [ - "Off", - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": "Backlight mode", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BacklightMode", + "options": [ + "Off", + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "PresetModeV02", - "options": [ - "Manual", - "Auto", - "Temporary Manual" - ] + "info_object": { + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "PresetModeV02", + "options": [ + "Manual", + "Auto", + "Temporary Manual" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-temperature_sensor_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "SensorMode", - "options": [ - "Air", - "Floor", - "Both" - ] + "info_object": { + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-temperature_sensor_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SensorMode", + "options": [ + "Air", + "Floor", + "Both" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Working day", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-working_day", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "working_day", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "WorkingDayV02", - "options": [ - "Disabled", - "Five Two", - "Six One", - "Seven" - ] + "info_object": { + "fallback_name": "Working day", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-working_day", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "working_day", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "WorkingDayV02", + "options": [ + "Disabled", + "Five Two", + "Six One", + "Seven" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Factory reset", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-factory_reset", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "factory_reset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "factory_reset", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Factory reset", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-factory_reset", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "factory_reset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "factory_reset", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e0:67:39:b1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e0:67:39:b1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e0:67:39:b1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-m64smti7-ts0601-0x0000004a.json b/tests/data/devices/tze204-m64smti7-ts0601-0x0000004a.json index 8cbeb36d8..31d401b4a 100644 --- a/tests/data/devices/tze204-m64smti7-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-m64smti7-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:4e:33:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:4e:33:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:4e:33:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:4e:33:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:4e:33:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:4e:33:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:4e:33:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:4e:33:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:4e:33:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:4e:33:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:4e:33:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:4e:33:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-m9dzckna-ts0601-0x0000004a.json b/tests/data/devices/tze204-m9dzckna-ts0601-0x0000004a.json index 314aa8203..036d002b1 100644 --- a/tests/data/devices/tze204-m9dzckna-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-m9dzckna-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:e0:45:b0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:e0:45:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 216, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:e0:45:b0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:e0:45:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 216 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:e0:45:b0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:e0:45:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -57, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:e0:45:b0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:e0:45:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -57 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:e0:45:b0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:e0:45:b0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:e0:45:b0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:e0:45:b0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-mpbki2zm-ts0601.json b/tests/data/devices/tze204-mpbki2zm-ts0601.json index 86ee676c5..5e7a23123 100644 --- a/tests/data/devices/tze204-mpbki2zm-ts0601.json +++ b/tests/data/devices/tze204-mpbki2zm-ts0601.json @@ -156,80 +156,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:bc:e2:8f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fd:bc:e2:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:bc:e2:8f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fd:bc:e2:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:bc:e2:8f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fd:bc:e2:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:bc:e2:8f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fd:bc:e2:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:bc:e2:8f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fd:bc:e2:8f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:bc:e2:8f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fd:bc:e2:8f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-mtoaryre-ts0601-0x0000004a.json b/tests/data/devices/tze204-mtoaryre-ts0601-0x0000004a.json index 32d11986c..9a80ca388 100644 --- a/tests/data/devices/tze204-mtoaryre-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-mtoaryre-ts0601-0x0000004a.json @@ -182,520 +182,620 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Block time", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-block_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "block_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Block time", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-block_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "block_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-detection_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-detection_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Entry distance indentation", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-entry_distance_indentation", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "entry_distance_indentation", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Entry distance indentation", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-entry_distance_indentation", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "entry_distance_indentation", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Entry sensitivity", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-entry_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "entry_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Entry sensitivity", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-entry_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "entry_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 600, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 600, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Illuminance threshold", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-illuminance_threshold", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "illuminance_threshold", - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 420, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "lx" + "info_object": { + "fallback_name": "Illuminance threshold", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-illuminance_threshold", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "illuminance_threshold", + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 420, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "lx" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Breaker mode", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-breaker_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaBreakerMode", - "options": [ - "Standard", - "Local" - ] + "info_object": { + "fallback_name": "Breaker mode", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-breaker_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBreakerMode", + "options": [ + "Standard", + "Local" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Breaker polarity", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-breaker_polarity", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_polarity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaBreakerPolarity", - "options": [ - "NC", - "NO" - ] + "info_object": { + "fallback_name": "Breaker polarity", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-breaker_polarity", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_polarity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBreakerPolarity", + "options": [ + "NC", + "NO" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Breaker status", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-breaker_status", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "breaker_status", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaBreakerStatus", - "options": [ - "Off", - "On" - ] + "info_object": { + "fallback_name": "Breaker status", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-breaker_status", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "breaker_status", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaBreakerStatus", + "options": [ + "Off", + "On" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-sensor_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaMotionSensorMode", - "options": [ - "On", - "Off", - "Occupied", - "Unoccupied" - ] + "info_object": { + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-sensor_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaMotionSensorMode", + "options": [ + "On", + "Off", + "Occupied", + "Unoccupied" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Status indication", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-status_indication", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "status_indication", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaStatusIndication", - "options": [ - "Off", - "On" - ] + "info_object": { + "fallback_name": "Status indication", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-status_indication", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "status_indication", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaStatusIndication", + "options": [ + "Off", + "On" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": null + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:de:e2:3f:ea-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:de:e2:3f:ea", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-muvkrjr5-ts0601.json b/tests/data/devices/tze204-muvkrjr5-ts0601.json index 791c62407..9b41ed395 100644 --- a/tests/data/devices/tze204-muvkrjr5-ts0601.json +++ b/tests/data/devices/tze204-muvkrjr5-ts0601.json @@ -162,229 +162,274 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } }, { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-find_switch", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "find_switch" + "info_object": { + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-find_switch", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "find_switch" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6.0, - "native_min_value": 1.5, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6.0, + "native_min_value": 1.5, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1799, - "native_min_value": 3, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1799, + "native_min_value": 3, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-motion_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "motion_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 90, - "native_min_value": 68, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-motion_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "motion_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 90, + "native_min_value": 68, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-target_distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "target_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "cm" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-target_distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "target_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "cm" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:86:58:4b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:86:58:4b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:86:58:4b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-mwomyz5n-ts0601-0x0000004a.json b/tests/data/devices/tze204-mwomyz5n-ts0601-0x0000004a.json index ebf0a7c46..3b8d94e9d 100644 --- a/tests/data/devices/tze204-mwomyz5n-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-mwomyz5n-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:f0:cd:10-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:f0:cd:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:f0:cd:10-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:f0:cd:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:f0:cd:10-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:f0:cd:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:f0:cd:10-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:f0:cd:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:f0:cd:10-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:f0:cd:10", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:f0:cd:10-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:f0:cd:10", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-nbkshs6k-ts0601-0x0000004a.json b/tests/data/devices/tze204-nbkshs6k-ts0601-0x0000004a.json index 201a84767..5ab260307 100644 --- a/tests/data/devices/tze204-nbkshs6k-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-nbkshs6k-ts0601-0x0000004a.json @@ -157,80 +157,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:55:11:88-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:55:11:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:55:11:88-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:55:11:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:55:11:88-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:55:11:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:55:11:88-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:55:11:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:05:55:11:88-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:05:55:11:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:55:11:88-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:05:55:11:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-nklqjk62-ts0601-0x0000004a.json b/tests/data/devices/tze204-nklqjk62-ts0601-0x0000004a.json index 4a25db434..1d7cc49ea 100644 --- a/tests/data/devices/tze204-nklqjk62-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-nklqjk62-ts0601-0x0000004a.json @@ -151,80 +151,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:b7:13:b6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:b7:13:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:b7:13:b6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:b7:13:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:b7:13:b6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:b7:13:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:b7:13:b6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:b7:13:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:b7:13:b6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:b7:13:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:b7:13:b6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:b7:13:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-nlrfgpny-ts0601-0x00000049.json b/tests/data/devices/tze204-nlrfgpny-ts0601-0x00000049.json index f334a787e..9f9a952c5 100644 --- a/tests/data/devices/tze204-nlrfgpny-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-nlrfgpny-ts0601-0x00000049.json @@ -235,341 +235,406 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Charging", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-charge_state", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery_charging", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "charge_state" + "info_object": { + "fallback_name": "Charging", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-charge_state", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery_charging", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "charge_state" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": "Tamper", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-tamper", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "tamper", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "tamper" + "info_object": { + "fallback_name": "Tamper", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-tamper", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "tamper", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "tamper" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Alarm duration", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_duration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "alarm_duration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 60, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Alarm duration", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_duration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "alarm_duration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 60, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Alarm mode", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaSirenState", - "options": [ - "Sound", - "Light", - "Sound and light", - "Normal" - ] + "info_object": { + "fallback_name": "Alarm mode", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaSirenState", + "options": [ + "Sound", + "Light", + "Sound and light", + "Normal" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Alarm ringtone", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_ringtone", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "alarm_ringtone", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaSirenRingtone", - "options": [ - "Ringtone 01", - "Ringtone 02", - "Ringtone 03" - ] + "info_object": { + "fallback_name": "Alarm ringtone", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_ringtone", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "alarm_ringtone", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaSirenRingtone", + "options": [ + "Ringtone 01", + "Ringtone 02", + "Ringtone 03" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Other", + "battery_quantity": 1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": null + ] }, { - "fallback_name": "Alarm state", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_state", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "alarm_state", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Alarm state", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-alarm_state", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "alarm_state", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } }, { - "fallback_name": "Enable tamper alarm", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-enable_tamper_alarm", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "enable_tamper_alarm", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "enable_tamper_alarm", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Enable tamper alarm", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-enable_tamper_alarm", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "enable_tamper_alarm", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "enable_tamper_alarm", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Siren on", - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-siren_on", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "siren_on", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "siren_on", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Siren on", + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-siren_on", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "siren_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "siren_on", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fa:46:b7:f3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fa:46:b7:f3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-nqqylykc-ts0601-0x0000004a.json b/tests/data/devices/tze204-nqqylykc-ts0601-0x0000004a.json index f2b6d8826..ccd6cb856 100644 --- a/tests/data/devices/tze204-nqqylykc-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-nqqylykc-ts0601-0x0000004a.json @@ -186,120 +186,148 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:27:8d:66-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:27:8d:66", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:27:8d:66-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:11:27:8d:66", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:27:8d:66-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:27:8d:66", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:27:8d:66-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:27:8d:66", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:27:8d:66-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:27:8d:66", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:27:8d:66-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:27:8d:66", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:27:8d:66-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:27:8d:66", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:27:8d:66-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:27:8d:66", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-nvxorhcj-ts0601-0x0000004a.json b/tests/data/devices/tze204-nvxorhcj-ts0601-0x0000004a.json index 68ca90dc2..cca4481cd 100644 --- a/tests/data/devices/tze204-nvxorhcj-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-nvxorhcj-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:22:d1:17-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:22:d1:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 58, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:22:d1:17-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:22:d1:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 58 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:22:d1:17-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:22:d1:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:22:d1:17-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:22:d1:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:86:22:d1:17-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:86:22:d1:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:86:22:d1:17-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:86:22:d1:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-ogx8u5z6-ts0601-0x0000004a.json b/tests/data/devices/tze204-ogx8u5z6-ts0601-0x0000004a.json index 5595bbfc4..8ebb825e3 100644 --- a/tests/data/devices/tze204-ogx8u5z6-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-ogx8u5z6-ts0601-0x0000004a.json @@ -201,286 +201,346 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "error_or_battery_low" + "info_object": { + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "error_or_battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:e8:8b:9f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0a:e8:8b:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-p3lqqy2r-ts0601.json b/tests/data/devices/tze204-p3lqqy2r-ts0601.json index b82fed0aa..9e4fb6fb4 100644 --- a/tests/data/devices/tze204-p3lqqy2r-ts0601.json +++ b/tests/data/devices/tze204-p3lqqy2r-ts0601.json @@ -182,484 +182,584 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-window_detection", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "window_detection" + "info_object": { + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-window_detection", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_detection" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": -9, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": -9, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Regulator set point", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-regulator_set_point", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "regulator_set_point", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Regulator set point", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-regulator_set_point", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "regulator_set_point", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "PresetModeV01", - "options": [ - "Manual", - "Home", - "Away" - ] + "info_object": { + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "PresetModeV01", + "options": [ + "Manual", + "Home", + "Away" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Regulator period", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-regulator_period", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "regulator_period", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "RegulatorPeriod", - "options": [ - " 15 min", - " 30 min", - " 45 min", - " 60 min", - " 90 min" - ] + "info_object": { + "fallback_name": "Regulator period", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-regulator_period", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "regulator_period", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "RegulatorPeriod", + "options": [ + " 15 min", + " 30 min", + " 45 min", + " 60 min", + " 90 min" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-temperature_sensor_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "SensorMode", - "options": [ - "Air", - "Floor", - "Both" - ] + "info_object": { + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-temperature_sensor_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SensorMode", + "options": [ + "Air", + "Floor", + "Both" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Thermostat mode", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-thermostat_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "thermostat_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "ThermostatMode", - "options": [ - "Regulator", - "Thermostat" - ] + "info_object": { + "fallback_name": "Thermostat mode", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-thermostat_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "thermostat_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "ThermostatMode", + "options": [ + "Regulator", + "Thermostat" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": "Current", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "A" + "info_object": { + "fallback_name": "Current", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "A" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Energy", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-energy", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "kWh" + "info_object": { + "fallback_name": "Energy", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-energy", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "kWh" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Floor temperature", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-local_temperature_floor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "local_temperature_floor", - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": "Floor temperature", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-local_temperature_floor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "local_temperature_floor", + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Power", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "W" + "info_object": { + "fallback_name": "Power", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "W" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Voltage", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "V" + "info_object": { + "fallback_name": "Voltage", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "V" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a0:ed:73:76", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a0:ed:73:76-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a0:ed:73:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-pcdmj88b-ts0601-0x00000049.json b/tests/data/devices/tze204-pcdmj88b-ts0601-0x00000049.json index 6866a8ad2..c0f08815d 100644 --- a/tests/data/devices/tze204-pcdmj88b-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-pcdmj88b-ts0601-0x00000049.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:ba:f4:54-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:ba:f4:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:ba:f4:54-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:ba:f4:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:ba:f4:54-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:ba:f4:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:ba:f4:54-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:ba:f4:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9d:ba:f4:54-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9d:ba:f4:54", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9d:ba:f4:54-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9d:ba:f4:54", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-ptaqh9tk-ts0601.json b/tests/data/devices/tze204-ptaqh9tk-ts0601.json index 204ca6222..d4d8251b5 100644 --- a/tests/data/devices/tze204-ptaqh9tk-ts0601.json +++ b/tests/data/devices/tze204-ptaqh9tk-ts0601.json @@ -174,119 +174,147 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 0, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 0, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 0, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:de:8e:6f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:dc:de:8e:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-pxbjch8m-ts0601-0x0000004a.json b/tests/data/devices/tze204-pxbjch8m-ts0601-0x0000004a.json index 7bfc82db6..c6fbbceb9 100644 --- a/tests/data/devices/tze204-pxbjch8m-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-pxbjch8m-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:71:53:6a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:71:53:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:71:53:6a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:71:53:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:71:53:6a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:71:53:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:71:53:6a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:71:53:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:71:53:6a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:71:53:6a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:71:53:6a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:71:53:6a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-qasjif9e-ts0601-0x0000004a.json b/tests/data/devices/tze204-qasjif9e-ts0601-0x0000004a.json index 5a194c13a..213e51bb3 100644 --- a/tests/data/devices/tze204-qasjif9e-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-qasjif9e-ts0601-0x0000004a.json @@ -202,282 +202,337 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Detection delay", - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-detection_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Detection delay", + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-detection_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Maximum range", - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Minimum range", - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1500, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1500, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motion sensitivity", - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 18, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": 18 + } }, { - "fallback_name": "Target distance", - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:f8:a7:c0:f2:88-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:f8:a7:c0:f2:88", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-qtnjuoae-ts0601-0x00000049.json b/tests/data/devices/tze204-qtnjuoae-ts0601-0x00000049.json index 7392fb821..2f1f64504 100644 --- a/tests/data/devices/tze204-qtnjuoae-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-qtnjuoae-ts0601-0x00000049.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:78:bd:46-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:78:bd:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:78:bd:46-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:78:bd:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:78:bd:46-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:78:bd:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:78:bd:46-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:78:bd:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:78:bd:46-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:78:bd:46", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:78:bd:46-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:78:bd:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-qvxrkeif-ts0601-0x0000004a.json b/tests/data/devices/tze204-qvxrkeif-ts0601-0x0000004a.json index f0d232678..ae6f8fc58 100644 --- a/tests/data/devices/tze204-qvxrkeif-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-qvxrkeif-ts0601-0x0000004a.json @@ -175,170 +175,205 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": "Fault alarm", - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-fault_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "fault_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "fault_alarm" + "info_object": { + "fallback_name": "Fault alarm", + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-fault_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "fault_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "fault_alarm" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": "Lifecycle", - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-lifecycle", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "lifecycle", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "lifecycle" + "info_object": { + "fallback_name": "Lifecycle", + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-lifecycle", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "lifecycle", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "lifecycle" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": "Preheat", - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-preheat", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "preheat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "preheat" + "info_object": { + "fallback_name": "Preheat", + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-preheat", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "preheat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "preheat" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -26, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -26 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:64:8d:3f:7f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:64:8d:3f:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-qyr2m29i-ts0601-0x0000004a.json b/tests/data/devices/tze204-qyr2m29i-ts0601-0x0000004a.json index 8665b9bfb..5a04980ed 100644 --- a/tests/data/devices/tze204-qyr2m29i-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-qyr2m29i-ts0601-0x0000004a.json @@ -226,578 +226,693 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-window_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "window", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "window_open" + "info_object": { + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-window_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "window", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_open" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Comfort temperature", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-comfort_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Comfort temperature", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-comfort_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Eco temperature", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-eco_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "eco_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Eco temperature", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-eco_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "eco_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Holiday temperature", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-holiday_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "holiday_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 30, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Holiday temperature", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-holiday_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "holiday_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 30, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Max temperature", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-max_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 15, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Max temperature", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-max_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 15, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Min temperature", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-min_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 15, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Min temperature", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-min_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 15, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Display brightness", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-display_brightness", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_brightness", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaDisplayBrightness", - "options": [ - "High", - "Medium", - "Low" - ] + "info_object": { + "fallback_name": "Display brightness", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-display_brightness", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaDisplayBrightness", + "options": [ + "High", + "Medium", + "Low" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Display orientation", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-display_orientation", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_orientation", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaDisplayOrientation", - "options": [ - "Up", - "Down" - ] + "info_object": { + "fallback_name": "Display orientation", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-display_orientation", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_orientation", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaDisplayOrientation", + "options": [ + "Up", + "Down" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Hysteresis mode", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-hysteresis_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "hysteresis_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaHysteresis", - "options": [ - "Comfort", - "Eco" - ] + "info_object": { + "fallback_name": "Hysteresis mode", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-hysteresis_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "hysteresis_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaHysteresis", + "options": [ + "Comfort", + "Eco" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motor thrust", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-motor_thrust", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motor_thrust", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaMotorThrust", - "options": [ - "Strong", - "Middle", - "Weak" - ] + "info_object": { + "fallback_name": "Motor thrust", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-motor_thrust", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motor_thrust", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaMotorThrust", + "options": [ + "Strong", + "Middle", + "Weak" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaPresetMode", - "options": [ - "Eco", - "Auto", - "Off", - "Heat" - ] + "info_object": { + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaPresetMode", + "options": [ + "Eco", + "Auto", + "Off", + "Heat" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": "Valve position", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-valve_position", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "valve_position", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": "Valve position", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-valve_position", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "valve_position", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8c:9e:5f:db-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8c:9e:5f:db", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-r32ctezx-ts0601-0x0000004a.json b/tests/data/devices/tze204-r32ctezx-ts0601-0x0000004a.json index f99586e4e..80027a3aa 100644 --- a/tests/data/devices/tze204-r32ctezx-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-r32ctezx-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:aa:3a:96:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:aa:3a:96:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:aa:3a:96:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:aa:3a:96:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:aa:3a:96:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:aa:3a:96:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:aa:3a:96:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:aa:3a:96:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:aa:3a:96:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:aa:3a:96:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:aa:3a:96:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:aa:3a:96:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-rhblgy0z-ts0601.json b/tests/data/devices/tze204-rhblgy0z-ts0601.json index 77f435d10..9b3dd7085 100644 --- a/tests/data/devices/tze204-rhblgy0z-ts0601.json +++ b/tests/data/devices/tze204-rhblgy0z-ts0601.json @@ -156,80 +156,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:99:90-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:01:e4:99:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:99:90-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:01:e4:99:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:99:90-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:01:e4:99:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:99:90-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:01:e4:99:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:01:e4:99:90-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:01:e4:99:90", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:01:e4:99:90-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:01:e4:99:90", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-rtrmfadk-ts0601-0x00000049.json b/tests/data/devices/tze204-rtrmfadk-ts0601-0x00000049.json index 8a6df0d61..e092f81ac 100644 --- a/tests/data/devices/tze204-rtrmfadk-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-rtrmfadk-ts0601-0x00000049.json @@ -262,391 +262,471 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "error_or_battery_low" + "info_object": { + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "error_or_battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "window", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "window_open" + "info_object": { + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "window", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_open" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Max temperature", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-max_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 15, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Max temperature", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-max_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 15, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Min temperature", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-min_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 15, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Min temperature", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-min_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 15, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Eco mode", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-eco_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "eco_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaThermostatEcoMode", - "options": [ - "Comfort", - "Eco" - ] + "info_object": { + "fallback_name": "Eco mode", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-eco_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "eco_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaThermostatEcoMode", + "options": [ + "Comfort", + "Eco" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000049", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000049", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-rtrmfadk-ts0601.json b/tests/data/devices/tze204-rtrmfadk-ts0601.json index 97c3f03bc..59464f625 100644 --- a/tests/data/devices/tze204-rtrmfadk-ts0601.json +++ b/tests/data/devices/tze204-rtrmfadk-ts0601.json @@ -304,391 +304,471 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "error_or_battery_low" + "info_object": { + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "error_or_battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } }, { - "fallback_name": "Window open", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_open", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "window", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "window_open" + "info_object": { + "fallback_name": "Window open", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_open", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "window", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_open" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 16.8, - "outdoor_temperature": null, - "target_temperature": 12.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1200, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 16.8, + "outdoor_temperature": null, + "target_temperature": 12.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1200, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -10, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": -10 + } }, { - "fallback_name": "Max temperature", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-max_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "auto", - "native_max_value": 35, - "native_min_value": 15, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Max temperature", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-max_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 35, + "native_min_value": 15, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 30.0 + } }, { - "fallback_name": "Min temperature", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-min_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "min_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "auto", - "native_max_value": 15, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Min temperature", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-min_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "min_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 15, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 5.0 + } } ], "select": [ { - "fallback_name": "Eco mode", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-eco_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "eco_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Eco", - "enum": "TuyaThermostatEcoMode", - "options": [ - "Comfort", - "Eco" - ] + "info_object": { + "fallback_name": "Eco mode", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-eco_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "eco_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaThermostatEcoMode", + "options": [ + "Comfort", + "Eco" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Eco" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 97.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 97.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:9f:cb:25:01", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9f:cb:25:01-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:9f:cb:25:01", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-sooucan5-ts0601.json b/tests/data/devices/tze204-sooucan5-ts0601.json index 42347cbdf..92353126b 100644 --- a/tests/data/devices/tze204-sooucan5-ts0601.json +++ b/tests/data/devices/tze204-sooucan5-ts0601.json @@ -175,308 +175,368 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": null + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Self test result", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-self_test", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "self_test", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Self test result", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-self_test", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "self_test", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:32:23:3b:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:32:23:3b:c2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:32:23:3b:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-srmahpwl-ts0601.json b/tests/data/devices/tze204-srmahpwl-ts0601.json index c0fc0e280..394d50b0c 100644 --- a/tests/data/devices/tze204-srmahpwl-ts0601.json +++ b/tests/data/devices/tze204-srmahpwl-ts0601.json @@ -156,80 +156,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:61:85:0a:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:61:85:0a:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:61:85:0a:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:61:85:0a:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:61:85:0a:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:61:85:0a:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:61:85:0a:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:61:85:0a:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:61:85:0a:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:61:85:0a:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:61:85:0a:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:61:85:0a:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-sxm7l9xa-ts0601.json b/tests/data/devices/tze204-sxm7l9xa-ts0601.json index c67d255f5..3787a43a6 100644 --- a/tests/data/devices/tze204-sxm7l9xa-ts0601.json +++ b/tests/data/devices/tze204-sxm7l9xa-ts0601.json @@ -169,282 +169,337 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-detection_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-detection_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 950, - "native_min_value": 0, - "native_step": 15, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 950, + "native_min_value": 0, + "native_step": 15, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 950, - "native_min_value": 0, - "native_step": 15, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 950, + "native_min_value": 0, + "native_step": 15, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1500, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1500, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Radar sensitivity", - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-radar_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "radar_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Radar sensitivity", + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-radar_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "radar_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": null + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-target_distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "target_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "cm" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-target_distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "target_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "cm" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:cd:6c:6c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:cd:6c:6c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-tagezcph-ts0601-0x0000004a.json b/tests/data/devices/tze204-tagezcph-ts0601-0x0000004a.json index 6962196a4..983cd7530 100644 --- a/tests/data/devices/tze204-tagezcph-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-tagezcph-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:f4:f9:87-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:f4:f9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:f4:f9:87-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:f4:f9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 100 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:f4:f9:87-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:f4:f9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -75, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:f4:f9:87-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:f4:f9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -75 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:49:f4:f9:87-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:49:f4:f9:87", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:49:f4:f9:87-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:49:f4:f9:87", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-tdhnhhiy-ts0601-0x0000004a.json b/tests/data/devices/tze204-tdhnhhiy-ts0601-0x0000004a.json index 29f87f812..55e30ae2b 100644 --- a/tests/data/devices/tze204-tdhnhhiy-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-tdhnhhiy-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:bc:e1:ff-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8b:bc:e1:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:bc:e1:ff-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8b:bc:e1:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 25 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:bc:e1:ff-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8b:bc:e1:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:bc:e1:ff-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8b:bc:e1:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:8b:bc:e1:ff-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:8b:bc:e1:ff", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8b:bc:e1:ff-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:8b:bc:e1:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-ue3rzddr-ts0601.json b/tests/data/devices/tze204-ue3rzddr-ts0601.json index af3e149af..c2b6c2220 100644 --- a/tests/data/devices/tze204-ue3rzddr-ts0601.json +++ b/tests/data/devices/tze204-ue3rzddr-ts0601.json @@ -156,80 +156,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:a0:21:17-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:a0:21:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:a0:21:17-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:a0:21:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:a0:21:17-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:a0:21:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:a0:21:17-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:a0:21:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cc:a0:21:17-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cc:a0:21:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cc:a0:21:17-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cc:a0:21:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-upagmta9-ts0601.json b/tests/data/devices/tze204-upagmta9-ts0601.json index af0eeeb37..dc6a4b4e4 100644 --- a/tests/data/devices/tze204-upagmta9-ts0601.json +++ b/tests/data/devices/tze204-upagmta9-ts0601.json @@ -201,184 +201,219 @@ "zha_lib_entities": { "select": [ { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Celsius", - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] + "info_object": { + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Celsius" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AAA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:99:74:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:99:74:4c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:99:74:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-uxllnywp-ts0601-0x0000004a.json b/tests/data/devices/tze204-uxllnywp-ts0601-0x0000004a.json index dbc717faf..25f3d53b7 100644 --- a/tests/data/devices/tze204-uxllnywp-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-uxllnywp-ts0601-0x0000004a.json @@ -182,285 +182,340 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 840, - "native_min_value": 0.75, - "native_step": 1, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 840, + "native_min_value": 0.75, + "native_step": 1, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 840, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 840, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 59, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 59, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": null + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-target_distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "target_distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "cm" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-target_distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "target_distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "cm" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "LED indicator", - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-find_switch", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "led_indicator", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "find_switch", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "LED indicator", + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-find_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "led_indicator", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "find_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6f:d4:0b:68-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6f:d4:0b:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-vjpaih9f-ts0601-0x0000004a.json b/tests/data/devices/tze204-vjpaih9f-ts0601-0x0000004a.json index bc477142f..e5df0a36d 100644 --- a/tests/data/devices/tze204-vjpaih9f-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-vjpaih9f-ts0601-0x0000004a.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:57:ce:53-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:57:ce:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 168, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:57:ce:53-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:57:ce:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 168 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:57:ce:53-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:57:ce:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -69, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:57:ce:53-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:57:ce:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -69 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:57:ce:53-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:57:ce:53", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:57:ce:53-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:57:ce:53", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-vmcgja59-ts0601.json b/tests/data/devices/tze204-vmcgja59-ts0601.json index e2deab344..48df3027d 100644 --- a/tests/data/devices/tze204-vmcgja59-ts0601.json +++ b/tests/data/devices/tze204-vmcgja59-ts0601.json @@ -594,80 +594,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:d2:60:17-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:31:d2:60:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:d2:60:17-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:31:d2:60:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:d2:60:17-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:31:d2:60:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:d2:60:17-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:31:d2:60:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:31:d2:60:17-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:31:d2:60:17", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:31:d2:60:17-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:31:d2:60:17", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-w1wwxoja-ts0601-0x0000004a.json b/tests/data/devices/tze204-w1wwxoja-ts0601-0x0000004a.json index 1a6bc71ef..eaeacce5a 100644 --- a/tests/data/devices/tze204-w1wwxoja-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-w1wwxoja-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:ef:fc:86-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b2:ef:fc:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:ef:fc:86-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b2:ef:fc:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:ef:fc:86-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b2:ef:fc:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:ef:fc:86-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b2:ef:fc:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:ef:fc:86-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b2:ef:fc:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:ef:fc:86-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b2:ef:fc:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-wbhaespm-ts0601-0x0000004a.json b/tests/data/devices/tze204-wbhaespm-ts0601-0x0000004a.json index 417fdac95..7405d098f 100644 --- a/tests/data/devices/tze204-wbhaespm-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-wbhaespm-ts0601-0x0000004a.json @@ -271,80 +271,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:d5:67:94-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:d5:67:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:d5:67:94-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:d5:67:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:d5:67:94-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:d5:67:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:d5:67:94-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:d5:67:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4f:d5:67:94-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4f:d5:67:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:d5:67:94-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4f:d5:67:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-x8fp01wi-ts0601-0x0000004a.json b/tests/data/devices/tze204-x8fp01wi-ts0601-0x0000004a.json index b64c3555d..0431bf619 100644 --- a/tests/data/devices/tze204-x8fp01wi-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-x8fp01wi-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:1f:25:23-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:1f:25:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:1f:25:23-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:1f:25:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:1f:25:23-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:1f:25:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:1f:25:23-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:1f:25:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ec:1f:25:23-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ec:1f:25:23", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:1f:25:23-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ec:1f:25:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-x9usygq1-ts0601-0x0000004a.json b/tests/data/devices/tze204-x9usygq1-ts0601-0x0000004a.json index 4112866dd..35aebf266 100644 --- a/tests/data/devices/tze204-x9usygq1-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-x9usygq1-ts0601-0x0000004a.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:c5:79:50-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:c5:79:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:c5:79:50-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:c5:79:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:c5:79:50-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:c5:79:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:c5:79:50-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:c5:79:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:92:c5:79:50-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:92:c5:79:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:92:c5:79:50-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:92:c5:79:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-xalsoe3m-ts0601-0x0000004a.json b/tests/data/devices/tze204-xalsoe3m-ts0601-0x0000004a.json index e05852d8f..a8097cbab 100644 --- a/tests/data/devices/tze204-xalsoe3m-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-xalsoe3m-ts0601-0x0000004a.json @@ -532,334 +532,404 @@ "zha_lib_entities": { "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": 235.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 23500, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": 235.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 23500, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": 5.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": 5.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 30.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.0, - "mode": "box", - "native_max_value": 30.0, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 30.0, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 5.0 + } }, { - "fallback_name": "Temperature Calibration", - "unique_id": "ab:cd:ef:12:19:d9:fb:05-3-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": -10, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature Calibration", + "unique_id": "ab:cd:ef:12:19:d9:fb:05-3-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 3, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": -10, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } }, { - "fallback_name": "Deadzone Temperature", - "unique_id": "ab:cd:ef:12:19:d9:fb:05-4-13", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "AnalogOutputNumber", - "translation_key": null, - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 4, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 5, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Deadzone Temperature", + "unique_id": "ab:cd:ef:12:19:d9:fb:05-4-13", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "AnalogOutputNumber", + "translation_key": null, + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 4, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 5, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "AnalogOutputNumber", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-2-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-2-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:d9:fb:05", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:d9:fb:05-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:d9:fb:05", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-xlppj4f5-ts0601-0x0000004a.json b/tests/data/devices/tze204-xlppj4f5-ts0601-0x0000004a.json index 57794b55d..2695d9d09 100644 --- a/tests/data/devices/tze204-xlppj4f5-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-xlppj4f5-ts0601-0x0000004a.json @@ -172,193 +172,224 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "l/h" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": null, + "zcl_unit_of_measurement": 7 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "l/h", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 7 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "volume", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "volume", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "L" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": null, + "zcl_unit_of_measurement": 7 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 3, - "unit": "L", - "device_type": null, - "status": null, - "zcl_unit_of_measurement": 7 + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": false, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:fd:0b:2a:61-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:fd:0b:2a:61", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-xnbkhhdr-ts0601-0x0000004a.json b/tests/data/devices/tze204-xnbkhhdr-ts0601-0x0000004a.json index de68160a7..3603ec9f3 100644 --- a/tests/data/devices/tze204-xnbkhhdr-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-xnbkhhdr-ts0601-0x0000004a.json @@ -177,424 +177,509 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Fault alarm", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-fault_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "fault_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "fault_alarm" + "info_object": { + "fallback_name": "Fault alarm", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-fault_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "fault_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "fault_alarm" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Deadzone temperature", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-deadzone_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "deadzone_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Deadzone temperature", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-deadzone_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "deadzone_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9.9, - "native_min_value": -9.9, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.9, + "native_min_value": -9.9, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Backlight mode", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "BacklightMode", - "options": [ - "Off", - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": "Backlight mode", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BacklightMode", + "options": [ + "Off", + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "PresetModeV03", - "options": [ - "Auto", - "Manual", - "Temporary Manual" - ] + "info_object": { + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "PresetModeV03", + "options": [ + "Auto", + "Manual", + "Temporary Manual" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-temperature_sensor_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "SensorMode", - "options": [ - "Air", - "Floor", - "Both" - ] + "info_object": { + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-temperature_sensor_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SensorMode", + "options": [ + "Air", + "Floor", + "Both" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Working day", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-working_day", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "working_day", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "WorkingDayV02", - "options": [ - "Disabled", - "Five Two", - "Six One", - "Seven" - ] + "info_object": { + "fallback_name": "Working day", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-working_day", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "working_day", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "WorkingDayV02", + "options": [ + "Disabled", + "Five Two", + "Six One", + "Seven" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Factory reset", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-factory_reset", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "factory_reset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "factory_reset", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Factory reset", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-factory_reset", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "factory_reset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "factory_reset", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:86:96:cf-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:86:96:cf", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:86:96:cf-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:86:96:cf", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-xu4a5rhj-ts0601-0x0000004a.json b/tests/data/devices/tze204-xu4a5rhj-ts0601-0x0000004a.json index c7c644964..c133fc916 100644 --- a/tests/data/devices/tze204-xu4a5rhj-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-xu4a5rhj-ts0601-0x0000004a.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:4f:58:7f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:95:4f:58:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 120, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:4f:58:7f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:95:4f:58:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 120 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:4f:58:7f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:95:4f:58:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -70, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:4f:58:7f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:95:4f:58:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -70 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:95:4f:58:7f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:95:4f:58:7f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:4f:58:7f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:95:4f:58:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-ya4ft0w4-ts0601-0x0000004a.json b/tests/data/devices/tze204-ya4ft0w4-ts0601-0x0000004a.json index 929670cfc..1dce6e33f 100644 --- a/tests/data/devices/tze204-ya4ft0w4-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-ya4ft0w4-ts0601-0x0000004a.json @@ -182,311 +182,371 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Presence sensitivity", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-presence_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "presence_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Presence sensitivity", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-presence_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "presence_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-presence_timeout", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 15000, - "native_min_value": 1, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-presence_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 15000, + "native_min_value": 1, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": null + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Distance tracking", - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-distance_tracking", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "distance_tracking", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "distance_tracking", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Distance tracking", + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-distance_tracking", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "distance_tracking", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "distance_tracking", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:7f:3e:96-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:eb:7f:3e:96", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-yjjdcqsq-ts0601.json b/tests/data/devices/tze204-yjjdcqsq-ts0601.json index 126fcd17d..dd856f25f 100644 --- a/tests/data/devices/tze204-yjjdcqsq-ts0601.json +++ b/tests/data/devices/tze204-yjjdcqsq-ts0601.json @@ -197,184 +197,219 @@ "zha_lib_entities": { "select": [ { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] + "info_object": { + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 50.0, + "battery_size": "AAA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 50.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 26.5, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 26.5 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 49.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 49.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:40:2d:94:5c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:2d:94:5c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:40:2d:94:5c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-yvx5lh6k-ts0601-0x0000004a.json b/tests/data/devices/tze204-yvx5lh6k-ts0601-0x0000004a.json index 4dedf85c7..e113c42f4 100644 --- a/tests/data/devices/tze204-yvx5lh6k-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-yvx5lh6k-ts0601-0x0000004a.json @@ -199,218 +199,263 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1037", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "CarbonDioxideConcentration", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_dioxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1037", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "CarbonDioxideConcentration", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_dioxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "CarbonDioxideConcentration", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1066", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "PM25", - "translation_key": null, - "translation_placeholders": null, - "device_class": "pm25", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1066", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "PM25", + "translation_key": null, + "translation_placeholders": null, + "device_class": "pm25", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "PM25", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1067", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "FormaldehydeConcentration", - "translation_key": "formaldehyde", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "ppm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1067", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "FormaldehydeConcentration", + "translation_key": "formaldehyde", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "ppm" + }, + "state": { + "class_name": "FormaldehydeConcentration", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1070", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "VOCLevel", - "translation_key": null, - "translation_placeholders": null, - "device_class": "volatile_organic_compounds", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "\u03bcg/m\u00b3" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-1070", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "VOCLevel", + "translation_key": null, + "translation_placeholders": null, + "device_class": "volatile_organic_compounds", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "\u03bcg/m\u00b3" + }, + "state": { + "class_name": "VOCLevel", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:bb:bf:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:bb:bf:32-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:bb:bf:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-zenj4lxv-ts0601.json b/tests/data/devices/tze204-zenj4lxv-ts0601.json index fb9b6313b..86c3587a1 100644 --- a/tests/data/devices/tze204-zenj4lxv-ts0601.json +++ b/tests/data/devices/tze204-zenj4lxv-ts0601.json @@ -212,158 +212,199 @@ "zha_lib_entities": { "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:c8:fd:c8-2", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", - "endpoint_id": 2, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 32, - "color_mode": "brightness", - "supported_color_modes": [ - "brightness", - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:c8:fd:c8-2", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 32, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 32, + "color_mode": "brightness", + "supported_color_modes": [ + "brightness", + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:17:c8:fd:c8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:17:c8:fd:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-ztqnh5cg-ts0601-0x0000004a.json b/tests/data/devices/tze204-ztqnh5cg-ts0601-0x0000004a.json index 51f303017..05bf22f5c 100644 --- a/tests/data/devices/tze204-ztqnh5cg-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-ztqnh5cg-ts0601-0x0000004a.json @@ -255,282 +255,337 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": false + } } ], "number": [ { - "fallback_name": "Detection delay", - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-detection_delay", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_delay", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Detection delay", + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-detection_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_delay", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Maximum range", - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-detection_distance_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 9.0, - "native_min_value": 0.75, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Maximum range", + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-detection_distance_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.0, + "native_min_value": 0.75, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Minimum range", - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-detection_distance_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "detection_distance_min", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 8.25, - "native_min_value": 0, - "native_step": 0.75, - "native_unit_of_measurement": "m" + "info_object": { + "fallback_name": "Minimum range", + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-detection_distance_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "detection_distance_min", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 8.25, + "native_min_value": 0, + "native_step": 0.75, + "native_unit_of_measurement": "m" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Fading time", - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-fading_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "fading_time", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1500, - "native_min_value": 1, - "native_step": 0.1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Fading time", + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-fading_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "fading_time", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1500, + "native_min_value": 1, + "native_step": 0.1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Motion sensitivity", - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-move_sensitivity", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "move_sensitivity", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": "Motion sensitivity", + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-move_sensitivity", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "move_sensitivity", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-1024", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Illuminance", - "translation_key": null, - "translation_placeholders": null, - "device_class": "illuminance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "lx" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-1024", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Illuminance", + "translation_key": null, + "translation_placeholders": null, + "device_class": "illuminance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "lx" + }, + "state": { + "class_name": "Illuminance", + "available": true, + "state": null + } }, { - "fallback_name": "Target distance", - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-distance", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "distance", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "m" + "info_object": { + "fallback_name": "Target distance", + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-distance", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "distance", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "m" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:7d:1a:a0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:7d:1a:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze204-zxkwaztm-ts0601.json b/tests/data/devices/tze204-zxkwaztm-ts0601.json index 27b6f9589..aa0485fc2 100644 --- a/tests/data/devices/tze204-zxkwaztm-ts0601.json +++ b/tests/data/devices/tze204-zxkwaztm-ts0601.json @@ -194,151 +194,186 @@ "zha_lib_entities": { "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:34:fa:13-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:34:fa:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 20.2, - "outdoor_temperature": null, - "target_temperature": 20.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 2000, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:34:fa:13-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:90:34:fa:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 20.2, + "outdoor_temperature": null, + "target_temperature": 20.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 2000, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:34:fa:13-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:34:fa:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 180, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:34:fa:13-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:34:fa:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 180 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:34:fa:13-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:34:fa:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -55, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:34:fa:13-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:34:fa:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -55 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:34:fa:13-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:34:fa:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:34:fa:13-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:34:fa:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:90:34:fa:13-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:90:34:fa:13", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:34:fa:13-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:90:34:fa:13", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze20c-xbexmf8h-ts130f-0x00000040.json b/tests/data/devices/tze20c-xbexmf8h-ts130f-0x00000040.json index 093bfa059..a76f31be2 100644 --- a/tests/data/devices/tze20c-xbexmf8h-ts130f-0x00000040.json +++ b/tests/data/devices/tze20c-xbexmf8h-ts130f-0x00000040.json @@ -163,80 +163,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:5a:99:e9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:5a:99:e9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 200, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:5a:99:e9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:5a:99:e9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 200 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:5a:99:e9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:5a:99:e9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -61, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:5a:99:e9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:5a:99:e9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -61 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:5a:99:e9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:5a:99:e9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:5a:99:e9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:5a:99:e9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze20c-zka46xbw-ts0601-0x00000051.json b/tests/data/devices/tze20c-zka46xbw-ts0601-0x00000051.json index 38c02d700..120cc01d2 100644 --- a/tests/data/devices/tze20c-zka46xbw-ts0601-0x00000051.json +++ b/tests/data/devices/tze20c-zka46xbw-ts0601-0x00000051.json @@ -344,154 +344,184 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "motion", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "motion", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000051", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:46:1c:4f:d5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:46:1c:4f:d5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000051", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-0zaf1cr8-ts0601.json b/tests/data/devices/tze284-0zaf1cr8-ts0601.json index 5e1be0c8a..b64be678c 100644 --- a/tests/data/devices/tze284-0zaf1cr8-ts0601.json +++ b/tests/data/devices/tze284-0zaf1cr8-ts0601.json @@ -171,156 +171,186 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "smoke", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:e3:82:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "smoke", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:98:e3:82:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } }, { - "fallback_name": "Battery low", - "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:e3:82:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "battery_low" + "info_object": { + "fallback_name": "Battery low", + "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:e3:82:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:e3:82:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:e3:82:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:e3:82:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:e3:82:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:e3:82:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "CR123A", + "battery_quantity": 1 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:98:e3:82:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "CR123A", - "battery_quantity": 1, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:98:e3:82:b6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:98:e3:82:b6-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:98:e3:82:b6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-2gi1hy8s-ts0601-0x00000050.json b/tests/data/devices/tze284-2gi1hy8s-ts0601-0x00000050.json index f943d44be..7a1bb8e7f 100644 --- a/tests/data/devices/tze284-2gi1hy8s-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-2gi1hy8s-ts0601-0x00000050.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:ac:4b:2f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:ac:4b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:ac:4b:2f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:ac:4b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:ac:4b:2f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:ac:4b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:ac:4b:2f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:ac:4b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:19:ac:4b:2f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:19:ac:4b:2f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:19:ac:4b:2f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:19:ac:4b:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-3mzb0sdz-ts0601-0x00000050.json b/tests/data/devices/tze284-3mzb0sdz-ts0601-0x00000050.json index 4069363eb..31a199c53 100644 --- a/tests/data/devices/tze284-3mzb0sdz-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-3mzb0sdz-ts0601-0x00000050.json @@ -175,301 +175,362 @@ "zha_lib_entities": { "button": [ { - "fallback_name": "Set lower limit", - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_down", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "set_lower_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "border", - "attribute_value": 1 + "info_object": { + "fallback_name": "Set lower limit", + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_down", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "set_lower_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "border", + "attribute_value": 1 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } }, { - "fallback_name": "Delete lower limit", - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_down_delete", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "delete_lower_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "border", - "attribute_value": 3 + "info_object": { + "fallback_name": "Delete lower limit", + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_down_delete", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "delete_lower_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "border", + "attribute_value": 3 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } }, { - "fallback_name": "Delete all limits", - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_remove_all", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "delete_all_limits", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "border", - "attribute_value": 4 + "info_object": { + "fallback_name": "Delete all limits", + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_remove_all", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "delete_all_limits", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "border", + "attribute_value": 4 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } }, { - "fallback_name": "Set upper limit", - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_up", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "set_upper_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "border", - "attribute_value": 0 + "info_object": { + "fallback_name": "Set upper limit", + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_up", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "set_upper_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "border", + "attribute_value": 0 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } }, { - "fallback_name": "Delete upper limit", - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_up_delete", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "WriteAttributeButton", - "translation_key": "delete_upper_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "attribute_name": "border", - "attribute_value": 2 + "info_object": { + "fallback_name": "Delete upper limit", + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-border_up_delete", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "WriteAttributeButton", + "translation_key": "delete_upper_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "border", + "attribute_value": 2 + }, + "state": { + "class_name": "WriteAttributeButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": null, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": null, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": null, + "current_tilt_position": null, + "state": null, + "is_opening": null, + "is_closing": null, + "is_closed": null, + "supported_features": 15 + } } ], "select": [ { - "fallback_name": "Motor direction", - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-motor_direction", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "motor_direction", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "MotorDirection", - "options": [ - "Forward", - "Back" - ] + "info_object": { + "fallback_name": "Motor direction", + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-motor_direction", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "motor_direction", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "MotorDirection", + "options": [ + "Forward", + "Back" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -47, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -47 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:70:52:10:a0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:70:52:10:a0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:70:52:10:a0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:70:52:10:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-432zhuwe-ts0601.json b/tests/data/devices/tze284-432zhuwe-ts0601.json index b93551846..3911c7364 100644 --- a/tests/data/devices/tze284-432zhuwe-ts0601.json +++ b/tests/data/devices/tze284-432zhuwe-ts0601.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:e7:24:a7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b2:e7:24:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 136, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:e7:24:a7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b2:e7:24:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 136 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:e7:24:a7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b2:e7:24:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -77, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:e7:24:a7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b2:e7:24:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -77 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:b2:e7:24:a7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:b2:e7:24:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:e7:24:a7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:b2:e7:24:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-6fopvb6v-ts0601.json b/tests/data/devices/tze284-6fopvb6v-ts0601.json index 8c0ce645a..007bdad83 100644 --- a/tests/data/devices/tze284-6fopvb6v-ts0601.json +++ b/tests/data/devices/tze284-6fopvb6v-ts0601.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:9e:79:27-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:9e:79:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 159, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:9e:79:27-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:9e:79:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 159 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:9e:79:27-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:9e:79:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -74, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:9e:79:27-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:9e:79:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -74 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:9e:79:27-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:9e:79:27", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:9e:79:27-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:9e:79:27", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-6hrnp30w-ts0601-0x00000050.json b/tests/data/devices/tze284-6hrnp30w-ts0601-0x00000050.json index 7f62032e1..71f0f334a 100644 --- a/tests/data/devices/tze284-6hrnp30w-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-6hrnp30w-ts0601-0x00000050.json @@ -407,80 +407,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:61:38:1f:0e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:61:38:1f:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:61:38:1f:0e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:61:38:1f:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:61:38:1f:0e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:61:38:1f:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:61:38:1f:0e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:61:38:1f:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:61:38:1f:0e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:61:38:1f:0e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:61:38:1f:0e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:61:38:1f:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-6ocnqlhn-ts0601.json b/tests/data/devices/tze284-6ocnqlhn-ts0601.json index 7d294cdc0..9af788bd3 100644 --- a/tests/data/devices/tze284-6ocnqlhn-ts0601.json +++ b/tests/data/devices/tze284-6ocnqlhn-ts0601.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:a7:f7:3b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:a7:f7:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 208, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:a7:f7:3b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:a7:f7:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 208 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:a7:f7:3b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:a7:f7:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -48, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:a7:f7:3b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:a7:f7:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -48 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:a7:f7:3b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:a7:f7:3b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:a7:f7:3b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:a7:f7:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-6uyu20xu-ts0601.json b/tests/data/devices/tze284-6uyu20xu-ts0601.json index 16ca5493d..7d2b3366f 100644 --- a/tests/data/devices/tze284-6uyu20xu-ts0601.json +++ b/tests/data/devices/tze284-6uyu20xu-ts0601.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:91:16:91-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3d:91:16:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 196, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:91:16:91-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3d:91:16:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 196 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:91:16:91-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3d:91:16:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -51, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:91:16:91-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3d:91:16:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -51 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:3d:91:16:91-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:3d:91:16:91", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3d:91:16:91-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:3d:91:16:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-6ycgarab-ts0601-0x00000050.json b/tests/data/devices/tze284-6ycgarab-ts0601-0x00000050.json index 6b649473d..5b3c15271 100644 --- a/tests/data/devices/tze284-6ycgarab-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-6ycgarab-ts0601-0x00000050.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f3:29:76:29-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f3:29:76:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 87, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f3:29:76:29-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f3:29:76:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 87 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f3:29:76:29-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f3:29:76:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f3:29:76:29-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f3:29:76:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f3:29:76:29-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f3:29:76:29", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f3:29:76:29-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f3:29:76:29", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-78ioiaml-ts0601-0x0000004a.json b/tests/data/devices/tze284-78ioiaml-ts0601-0x0000004a.json index 77549a474..a0222652a 100644 --- a/tests/data/devices/tze284-78ioiaml-ts0601-0x0000004a.json +++ b/tests/data/devices/tze284-78ioiaml-ts0601-0x0000004a.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:51:3e:41-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:50:51:3e:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 117, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:51:3e:41-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:50:51:3e:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 117 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:51:3e:41-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:50:51:3e:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:51:3e:41-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:50:51:3e:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:50:51:3e:41-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:50:51:3e:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:51:3e:41-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:50:51:3e:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-7gy9mqca-ts0601-0x0000004e.json b/tests/data/devices/tze284-7gy9mqca-ts0601-0x0000004e.json index 9e2504edf..41c92dfd5 100644 --- a/tests/data/devices/tze284-7gy9mqca-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-7gy9mqca-ts0601-0x0000004e.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:c5:23:07-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:c5:23:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 69, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:c5:23:07-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:c5:23:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 69 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:c5:23:07-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:c5:23:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:c5:23:07-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:c5:23:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:69:c5:23:07-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:69:c5:23:07", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:69:c5:23:07-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:69:c5:23:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-7zazvlyn-ts0601-0x00000045.json b/tests/data/devices/tze284-7zazvlyn-ts0601-0x00000045.json index 5eda0936c..013328403 100644 --- a/tests/data/devices/tze284-7zazvlyn-ts0601-0x00000045.json +++ b/tests/data/devices/tze284-7zazvlyn-ts0601-0x00000045.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:87:b0:e0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:42:87:b0:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:87:b0:e0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:87:b0:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:87:b0:e0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:42:87:b0:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:87:b0:e0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:87:b0:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:42:87:b0:e0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:42:87:b0:e0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000045", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:87:b0:e0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:42:87:b0:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000045", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-81yrt3lo-ts0601-0x0000004e.json b/tests/data/devices/tze284-81yrt3lo-ts0601-0x0000004e.json index 51b389fa0..332ff50bc 100644 --- a/tests/data/devices/tze284-81yrt3lo-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-81yrt3lo-ts0601-0x0000004e.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:30:aa:82-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:30:aa:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:30:aa:82-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:30:aa:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:30:aa:82-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:30:aa:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:30:aa:82-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:30:aa:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:71:30:aa:82-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:71:30:aa:82", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:71:30:aa:82-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:71:30:aa:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-8b9zpaav-ts0601-0x0000004e.json b/tests/data/devices/tze284-8b9zpaav-ts0601-0x0000004e.json index 92d8225df..bc01a17e0 100644 --- a/tests/data/devices/tze284-8b9zpaav-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-8b9zpaav-ts0601-0x0000004e.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6b:1d:f1-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:6b:1d:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6b:1d:f1-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:6b:1d:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6b:1d:f1-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:6b:1d:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6b:1d:f1-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:6b:1d:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5e:6b:1d:f1-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5e:6b:1d:f1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:6b:1d:f1-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5e:6b:1d:f1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-8se38w3c-ts0601-0x0000004d.json b/tests/data/devices/tze284-8se38w3c-ts0601-0x0000004d.json index 2cdedd9ee..06e2af75b 100644 --- a/tests/data/devices/tze284-8se38w3c-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-8se38w3c-ts0601-0x0000004d.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:0d:b8:1a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:0d:b8:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:0d:b8:1a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:0d:b8:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:0d:b8:1a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:0d:b8:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:0d:b8:1a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:0d:b8:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c3:0d:b8:1a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c3:0d:b8:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c3:0d:b8:1a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c3:0d:b8:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-a2xewxoo-ts0601-0x0000004e.json b/tests/data/devices/tze284-a2xewxoo-ts0601-0x0000004e.json index 22505a1e8..1a4baee11 100644 --- a/tests/data/devices/tze284-a2xewxoo-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-a2xewxoo-ts0601-0x0000004e.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ee:07:7f:41-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ee:07:7f:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ee:07:7f:41-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ee:07:7f:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ee:07:7f:41-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ee:07:7f:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -70, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ee:07:7f:41-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ee:07:7f:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -70 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ee:07:7f:41-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ee:07:7f:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ee:07:7f:41-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ee:07:7f:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-aao3yzhs-ts0601-0x0000004d.json b/tests/data/devices/tze284-aao3yzhs-ts0601-0x0000004d.json index e3ee6d7db..aff0fe946 100644 --- a/tests/data/devices/tze284-aao3yzhs-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-aao3yzhs-ts0601-0x0000004d.json @@ -210,156 +210,186 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 220, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 220 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -45, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -45 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 0.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 8.2, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 8.2 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "SoilMoisture", + "available": true, + "state": 100.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-aao3yzhs-ts0601.json b/tests/data/devices/tze284-aao3yzhs-ts0601.json index 94760f033..ec5ffc692 100644 --- a/tests/data/devices/tze284-aao3yzhs-ts0601.json +++ b/tests/data/devices/tze284-aao3yzhs-ts0601.json @@ -170,156 +170,186 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "SoilMoisture", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:53:b5:37:5e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:53:b5:37:5e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:53:b5:37:5e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-c6wv4xyo-ts0601-0x0000004d.json b/tests/data/devices/tze284-c6wv4xyo-ts0601-0x0000004d.json index 8d7d6e4e4..5eb07b233 100644 --- a/tests/data/devices/tze284-c6wv4xyo-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-c6wv4xyo-ts0601-0x0000004d.json @@ -207,286 +207,346 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "error_or_battery_low" + "info_object": { + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "error_or_battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:73:e2:71", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:73:e2:71-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:73:e2:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-cf4b5ktf-ts0601-0x0000004e.json b/tests/data/devices/tze284-cf4b5ktf-ts0601-0x0000004e.json index 2a877eb68..396ff04ce 100644 --- a/tests/data/devices/tze284-cf4b5ktf-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-cf4b5ktf-ts0601-0x0000004e.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:63:a1:c0-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:63:a1:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 132, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:63:a1:c0-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:63:a1:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 132 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:63:a1:c0-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:63:a1:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -67, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:63:a1:c0-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:63:a1:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -67 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2e:63:a1:c0-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2e:63:a1:c0", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2e:63:a1:c0-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2e:63:a1:c0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-cjbofhxw-ts0601.json b/tests/data/devices/tze284-cjbofhxw-ts0601.json index 75d9adcb8..9caae618e 100644 --- a/tests/data/devices/tze284-cjbofhxw-ts0601.json +++ b/tests/data/devices/tze284-cjbofhxw-ts0601.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:6f:d7:98-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c7:6f:d7:98", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:6f:d7:98-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c7:6f:d7:98", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:6f:d7:98-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c7:6f:d7:98", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:6f:d7:98-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c7:6f:d7:98", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c7:6f:d7:98-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c7:6f:d7:98", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:6f:d7:98-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c7:6f:d7:98", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-dikb3dp6-ts0601.json b/tests/data/devices/tze284-dikb3dp6-ts0601.json index dcc0abfd8..c174dd50e 100644 --- a/tests/data/devices/tze284-dikb3dp6-ts0601.json +++ b/tests/data/devices/tze284-dikb3dp6-ts0601.json @@ -411,718 +411,825 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Update frequency", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-update_frequency", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "update_frequency", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 30, - "mode": "auto", - "native_max_value": 3600, - "native_min_value": 5, - "native_step": 1, - "native_unit_of_measurement": "s" + "info_object": { + "fallback_name": "Update frequency", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-update_frequency", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "update_frequency", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 3600, + "native_min_value": 5, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 30 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 192, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 192 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -52, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -52 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 144.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 144.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 50.0 + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 50.0, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-active_power_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhB", - "translation_key": "active_power_ph_b", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-active_power_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhB", + "translation_key": "active_power_ph_b", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePowerPhB", + "available": true, + "state": -138.0 + }, + "extra_state_attributes": [ "active_power_max_ph_b", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -138.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-active_power_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhC", - "translation_key": "active_power_ph_c", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-active_power_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhC", + "translation_key": "active_power_ph_c", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePowerPhC", + "available": true, + "state": 140.0 + }, + "extra_state_attributes": [ "active_power_max_ph_c", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 140.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 87 + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 87, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-power_factor_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactorPhB", - "translation_key": "power_factor_ph_b", - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-power_factor_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactorPhB", + "translation_key": "power_factor_ph_b", + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactorPhB", + "available": true, + "state": -82 + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -82, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-power_factor_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactorPhC", - "translation_key": "power_factor_ph_c", - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-power_factor_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactorPhC", + "translation_key": "power_factor_ph_c", + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactorPhC", + "available": true, + "state": 85 + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 85, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.683 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.683, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_current_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "translation_key": "rms_current_ph_b", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_current_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "translation_key": "rms_current_ph_b", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "available": true, + "state": 0.677 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max_ph_b" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.677, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_current_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "translation_key": "rms_current_ph_c", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_current_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "translation_key": "rms_current_ph_c", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "available": true, + "state": 0.682 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max_ph_c" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.682, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 236.0 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 236.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_voltage_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "translation_key": "rms_voltage_ph_b", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_voltage_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "translation_key": "rms_voltage_ph_b", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "available": true, + "state": 235.9 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max_ph_b" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 235.9, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_voltage_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "translation_key": "rms_voltage_ph_c", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-rms_voltage_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "translation_key": "rms_voltage_ph_c", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "available": true, + "state": 236.1 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max_ph_c" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 236.1, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 145.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 145.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": "Total energy", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 6.02, - "suggested_display_precision": null, - "unit": "kWh" + "info_object": { + "fallback_name": "Total energy", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "kWh" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 6.02 + } }, { - "fallback_name": "Energy phase A", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_consumed_ph_a", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_ph_a", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3.01, - "suggested_display_precision": null, - "unit": "kWh" + "info_object": { + "fallback_name": "Energy phase A", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_consumed_ph_a", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_ph_a", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "kWh" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 3.01 + } }, { - "fallback_name": "Energy phase B", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_consumed_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_ph_b", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.02, - "suggested_display_precision": null, - "unit": "kWh" + "info_object": { + "fallback_name": "Energy phase B", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_consumed_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_ph_b", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "kWh" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 0.02 + } }, { - "fallback_name": "Energy phase C", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_consumed_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_ph_c", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2.99, - "suggested_display_precision": null, - "unit": "kWh" + "info_object": { + "fallback_name": "Energy phase C", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_consumed_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_ph_c", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "kWh" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 2.99 + } }, { - "fallback_name": "Energy produced", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_produced", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2.94, - "suggested_display_precision": null, - "unit": "kWh" + "info_object": { + "fallback_name": "Energy produced", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_produced", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "kWh" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 2.94 + } }, { - "fallback_name": "Energy produced phase A", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced_ph_a", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_produced_ph_a", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.02, - "suggested_display_precision": null, - "unit": "kWh" + "info_object": { + "fallback_name": "Energy produced phase A", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced_ph_a", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_produced_ph_a", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "kWh" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 0.02 + } }, { - "fallback_name": "Energy produced phase B", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_produced_ph_b", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 2.92, - "suggested_display_precision": null, - "unit": "kWh" + "info_object": { + "fallback_name": "Energy produced phase B", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_produced_ph_b", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "kWh" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 2.92 + } }, { - "fallback_name": "Energy produced phase C", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "energy_produced_ph_c", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "kWh" + "info_object": { + "fallback_name": "Energy produced phase C", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-energy_produced_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "energy_produced_ph_c", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "kWh" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 0.0 + } }, { - "fallback_name": "Total power factor", - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "total_power_factor", - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 28, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": "Total power factor", + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "total_power_factor", + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": 28 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:5a:a6:dd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:5a:a6:dd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-dmckrsxg-ts0601-0x0000004e.json b/tests/data/devices/tze284-dmckrsxg-ts0601-0x0000004e.json index f711fe7da..5cdfeb89d 100644 --- a/tests/data/devices/tze284-dmckrsxg-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-dmckrsxg-ts0601-0x0000004e.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:17:8f:32-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2f:17:8f:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 132, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:17:8f:32-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2f:17:8f:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 132 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:17:8f:32-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2f:17:8f:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -78, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:17:8f:32-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2f:17:8f:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -78 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:2f:17:8f:32-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:2f:17:8f:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:2f:17:8f:32-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:2f:17:8f:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-f5efvtbv-ts0601-0x0000004e.json b/tests/data/devices/tze284-f5efvtbv-ts0601-0x0000004e.json index e0339b364..40c44cee4 100644 --- a/tests/data/devices/tze284-f5efvtbv-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-f5efvtbv-ts0601-0x0000004e.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:b2:68:6b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:b2:68:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 200, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:b2:68:6b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:b2:68:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 200 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:b2:68:6b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:b2:68:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -50, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:b2:68:6b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:b2:68:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -50 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d6:b2:68:6b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d6:b2:68:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d6:b2:68:6b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d6:b2:68:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-fhvpaltk-ts0601.json b/tests/data/devices/tze284-fhvpaltk-ts0601.json index ae3b6a6da..b7fd1dd54 100644 --- a/tests/data/devices/tze284-fhvpaltk-ts0601.json +++ b/tests/data/devices/tze284-fhvpaltk-ts0601.json @@ -165,312 +165,372 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Irrigation time 1", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_countdown_1", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_countdown_1", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1440, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Irrigation time 1", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_countdown_1", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_countdown_1", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1440, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Irrigation time 2", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_countdown_2", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "valve_countdown_2", - "translation_placeholders": null, - "device_class": "duration", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 1440, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "min" + "info_object": { + "fallback_name": "Irrigation time 2", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_countdown_2", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "valve_countdown_2", + "translation_placeholders": null, + "device_class": "duration", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 1440, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "min" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 196, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 196 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -62, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -62 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": null + ] }, { - "fallback_name": "Irrigation duration 1", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_duration_1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irrigation_duration_1", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "s" + "info_object": { + "fallback_name": "Irrigation duration 1", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_duration_1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irrigation_duration_1", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "s" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Irrigation duration 2", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_duration_2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "irriation_duration_2", - "translation_placeholders": null, - "device_class": "duration", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "s" + "info_object": { + "fallback_name": "Irrigation duration 2", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_duration_2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "irriation_duration_2", + "translation_placeholders": null, + "device_class": "duration", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "s" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Status 1", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_status_1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "valve_status_1", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Status 1", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_status_1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "valve_status_1", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } }, { - "fallback_name": "Status 2", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_status_2", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "valve_status_2", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Status 2", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_status_2", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "valve_status_2", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Valve 1", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_on_off_1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "valve_on_off_1", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "valve_on_off_1", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Valve 1", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_on_off_1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "valve_on_off_1", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "valve_on_off_1", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Valve 2", - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_on_off_2", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "valve_on_off_2", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "valve_on_off_2", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Valve 2", + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-valve_on_off_2", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "valve_on_off_2", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "valve_on_off_2", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:56:b9:75:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:56:b9:75:cd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:56:b9:75:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-fzo2pocs-ts0601.json b/tests/data/devices/tze284-fzo2pocs-ts0601.json index f5c41991d..4fa868740 100644 --- a/tests/data/devices/tze284-fzo2pocs-ts0601.json +++ b/tests/data/devices/tze284-fzo2pocs-ts0601.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:9c:af:cd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:9c:af:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:9c:af:cd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:9c:af:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:9c:af:cd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:9c:af:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:9c:af:cd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:9c:af:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d4:9c:af:cd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d4:9c:af:cd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d4:9c:af:cd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d4:9c:af:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-g2e6cpnw-ts0601-0x0000004d.json b/tests/data/devices/tze284-g2e6cpnw-ts0601-0x0000004d.json index be5ffbeae..196df9178 100644 --- a/tests/data/devices/tze284-g2e6cpnw-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-g2e6cpnw-ts0601-0x0000004d.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:ed:8a:ef-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:ed:8a:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:ed:8a:ef-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:ed:8a:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:ed:8a:ef-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:ed:8a:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:ed:8a:ef-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:ed:8a:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:5c:ed:8a:ef-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:5c:ed:8a:ef", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5c:ed:8a:ef-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:5c:ed:8a:ef", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-hodyryli-ts0601-0x00000050.json b/tests/data/devices/tze284-hodyryli-ts0601-0x00000050.json index fad170d1e..bfb2de1f7 100644 --- a/tests/data/devices/tze284-hodyryli-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-hodyryli-ts0601-0x00000050.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e6:20:71:50-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e6:20:71:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e6:20:71:50-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e6:20:71:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e6:20:71:50-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e6:20:71:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -33, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e6:20:71:50-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e6:20:71:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -33 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e6:20:71:50-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e6:20:71:50", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e6:20:71:50-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e6:20:71:50", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-iadro9bf-ts0601-0x0000004e.json b/tests/data/devices/tze284-iadro9bf-ts0601-0x0000004e.json index 0157aaee6..188c5eb3a 100644 --- a/tests/data/devices/tze284-iadro9bf-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-iadro9bf-ts0601-0x0000004e.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:c5:77:0a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:c5:77:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:c5:77:0a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:c5:77:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:c5:77:0a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:c5:77:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:c5:77:0a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:c5:77:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:c5:77:0a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:c5:77:0a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:c5:77:0a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:c5:77:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-idvyees9-ts0601-0x0000004e.json b/tests/data/devices/tze284-idvyees9-ts0601-0x0000004e.json index 5eceb7d27..1d9bae9a9 100644 --- a/tests/data/devices/tze284-idvyees9-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-idvyees9-ts0601-0x0000004e.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:4b:d7:95-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:4b:d7:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:4b:d7:95-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:4b:d7:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:4b:d7:95-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:4b:d7:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -49, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:4b:d7:95-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:4b:d7:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -49 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a2:4b:d7:95-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a2:4b:d7:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a2:4b:d7:95-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a2:4b:d7:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-kyyu8rbj-ts0601-0x0000004d.json b/tests/data/devices/tze284-kyyu8rbj-ts0601-0x0000004d.json index 4081464cd..fe5982c50 100644 --- a/tests/data/devices/tze284-kyyu8rbj-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-kyyu8rbj-ts0601-0x0000004d.json @@ -311,261 +311,311 @@ "zha_lib_entities": { "number": [ { - "fallback_name": "Height from sensor to tank bottom", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-installation_height", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "installation_height", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 400, - "native_min_value": 10, - "native_step": 1, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Height from sensor to tank bottom", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-installation_height", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "installation_height", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 400, + "native_min_value": 10, + "native_step": 1, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Height from sensor to liquid level", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_depth_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "liquid_depth_max", - "translation_placeholders": null, - "device_class": "distance", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 400, - "native_min_value": 10, - "native_step": 1, - "native_unit_of_measurement": "cm" + "info_object": { + "fallback_name": "Height from sensor to liquid level", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_depth_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "liquid_depth_max", + "translation_placeholders": null, + "device_class": "distance", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 400, + "native_min_value": 10, + "native_step": 1, + "native_unit_of_measurement": "cm" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Liquid max percentage", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-max_set", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "max_set", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Liquid max percentage", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-max_set", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "max_set", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Liquid minimal percentage", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-mini_set", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "mini_set", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 100, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Liquid minimal percentage", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-mini_set", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "mini_set", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "select": [ { - "fallback_name": "Liquid state", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "liquid_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaLiquidState", - "options": [ - "Normal", - "Low", - "High" - ] + "info_object": { + "fallback_name": "Liquid state", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_state", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "liquid_state", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaLiquidState", + "options": [ + "Normal", + "Low", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": "Liquid depth", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_depth", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "liquid_depth", - "translation_placeholders": null, - "device_class": "distance", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "cm" + "info_object": { + "fallback_name": "Liquid depth", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_depth", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "liquid_depth", + "translation_placeholders": null, + "device_class": "distance", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "cm" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Liquid level ratio", - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_level_percent", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": "liquid_level_percent", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": "Liquid level ratio", + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-liquid_level_percent", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": "liquid_level_percent", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bf:44:a9:0b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bf:44:a9:0b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-l8xiyymq-ts0601-0x0000004a.json b/tests/data/devices/tze284-l8xiyymq-ts0601-0x0000004a.json index f74d73bba..a7e6479c8 100644 --- a/tests/data/devices/tze284-l8xiyymq-ts0601-0x0000004a.json +++ b/tests/data/devices/tze284-l8xiyymq-ts0601-0x0000004a.json @@ -158,80 +158,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:0c:11:d3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ff:0c:11:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 58, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:0c:11:d3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ff:0c:11:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 58 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:0c:11:d3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ff:0c:11:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:0c:11:d3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ff:0c:11:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ff:0c:11:d3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ff:0c:11:d3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ff:0c:11:d3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ff:0c:11:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-lq0ffndf-ts0601-0x00000046.json b/tests/data/devices/tze284-lq0ffndf-ts0601-0x00000046.json index daafdb464..dac784bbf 100644 --- a/tests/data/devices/tze284-lq0ffndf-ts0601-0x00000046.json +++ b/tests/data/devices/tze284-lq0ffndf-ts0601-0x00000046.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:cf:ff:9f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:cf:ff:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 160, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:cf:ff:9f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:cf:ff:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 160 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:cf:ff:9f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:cf:ff:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -60, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:cf:ff:9f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:cf:ff:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -60 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:cf:ff:9f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:cf:ff:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000046", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:cf:ff:9f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:cf:ff:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000046", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-ltwbm23f-ts0601-0x0000004d.json b/tests/data/devices/tze284-ltwbm23f-ts0601-0x0000004d.json index a296e4b11..73729a6a5 100644 --- a/tests/data/devices/tze284-ltwbm23f-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-ltwbm23f-ts0601-0x0000004d.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:2d:69:de-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:2d:69:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:2d:69:de-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:2d:69:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:2d:69:de-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:2d:69:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:2d:69:de-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:2d:69:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f0:2d:69:de-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f0:2d:69:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f0:2d:69:de-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f0:2d:69:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-myd45weu-ts0601-0x0000004d.json b/tests/data/devices/tze284-myd45weu-ts0601-0x0000004d.json index a965f7631..e8a15e6de 100644 --- a/tests/data/devices/tze284-myd45weu-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-myd45weu-ts0601-0x0000004d.json @@ -207,156 +207,186 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "SoilMoisture", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:b1:e9:9a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:59:b1:e9:9a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-ne4pikwm-ts0601.json b/tests/data/devices/tze284-ne4pikwm-ts0601.json index 1655de212..4b62a26aa 100644 --- a/tests/data/devices/tze284-ne4pikwm-ts0601.json +++ b/tests/data/devices/tze284-ne4pikwm-ts0601.json @@ -279,367 +279,442 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Battery low", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "battery_low" + "info_object": { + "fallback_name": "Battery low", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 19.7, - "outdoor_temperature": null, - "target_temperature": 18.5, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "heating", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1850, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 19.7, + "outdoor_temperature": null, + "target_temperature": 18.5, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "heating", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1850, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "heating", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "heating" + } } ], "switch": [ { - "fallback_name": "Away mode", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-away_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "away_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "away_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Away mode", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-away_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "away_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "away_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": "Schedule mode", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-schedule_mode", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "schedule_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "schedule_mode", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Schedule mode", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-schedule_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "schedule_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "schedule_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } }, { - "fallback_name": "Open window detection", - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-window_detection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "window_detection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "window_detection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Open window detection", + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-window_detection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "window_detection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "window_detection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:06:a7:a1:e8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:06:a7:a1:e8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-nklqjk62-ts0601-0x0000004e.json b/tests/data/devices/tze284-nklqjk62-ts0601-0x0000004e.json index 6f70be55e..f24071cf8 100644 --- a/tests/data/devices/tze284-nklqjk62-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-nklqjk62-ts0601-0x0000004e.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:83:38:bb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:83:38:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 148, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:83:38:bb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:83:38:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 148 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:83:38:bb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:83:38:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -74, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:83:38:bb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:83:38:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -74 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:76:83:38:bb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:76:83:38:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:76:83:38:bb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:76:83:38:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-nnhwcvbk-ts0601-0x0000004d.json b/tests/data/devices/tze284-nnhwcvbk-ts0601-0x0000004d.json index c06157731..0ea593d5f 100644 --- a/tests/data/devices/tze284-nnhwcvbk-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-nnhwcvbk-ts0601-0x0000004d.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:ef:b2:34-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:ef:b2:34", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 88, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:ef:b2:34-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:ef:b2:34", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 88 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:ef:b2:34-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:ef:b2:34", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -78, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:ef:b2:34-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:ef:b2:34", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -78 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:15:ef:b2:34-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:15:ef:b2:34", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:15:ef:b2:34-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:15:ef:b2:34", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-o3x45p96-ts0601-0x0000004d.json b/tests/data/devices/tze284-o3x45p96-ts0601-0x0000004d.json index 9f66664e5..838e0a476 100644 --- a/tests/data/devices/tze284-o3x45p96-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-o3x45p96-ts0601-0x0000004d.json @@ -207,286 +207,346 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "error_or_battery_low" + "info_object": { + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "error_or_battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:4e:95:64:6b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:95:64:6b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:4e:95:64:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-o9ofysmo-ts0601-0x00000050.json b/tests/data/devices/tze284-o9ofysmo-ts0601-0x00000050.json index 6a6a26f08..d8e57f14e 100644 --- a/tests/data/devices/tze284-o9ofysmo-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-o9ofysmo-ts0601-0x00000050.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:ff:c5:80-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:ff:c5:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 109, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:ff:c5:80-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:ff:c5:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 109 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:ff:c5:80-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:ff:c5:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:ff:c5:80-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:ff:c5:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6b:ff:c5:80-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6b:ff:c5:80", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:ff:c5:80-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6b:ff:c5:80", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-ogx8u5z6-ts0601-0x0000004d.json b/tests/data/devices/tze284-ogx8u5z6-ts0601-0x0000004d.json index 602079eb7..8318ec87a 100644 --- a/tests/data/devices/tze284-ogx8u5z6-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-ogx8u5z6-ts0601-0x0000004d.json @@ -207,286 +207,346 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Error or battery low", - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-error_or_battery_low", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "error_or_battery_low", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "error_or_battery_low" + "info_object": { + "fallback_name": "Error or battery low", + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-error_or_battery_low", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "error_or_battery_low", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "error_or_battery_low" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": null, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": null, - "hvac_mode": null, - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 30.0, - "min_temp": 5.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": null, - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": null, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 30.0, + "min_temp": 5.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": null, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": null, + "hvac_mode": null, + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": null, + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": null, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "auto", - "native_max_value": 6, - "native_min_value": -6, - "native_step": 1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 6, + "native_min_value": -6, + "native_step": 1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Scale protection", - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-scale_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "scale_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "scale_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Scale protection", + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-scale_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "scale_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "scale_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c0:04:1b:41", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c0:04:1b:41-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c0:04:1b:41", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-oitavov2-ts0601-0x00000050.json b/tests/data/devices/tze284-oitavov2-ts0601-0x00000050.json index 45437cc1f..f011e9f3d 100644 --- a/tests/data/devices/tze284-oitavov2-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-oitavov2-ts0601-0x00000050.json @@ -240,156 +240,186 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:26:55:a3-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:62:26:55:a3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 184, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:26:55:a3-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:62:26:55:a3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 184 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:26:55:a3-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:62:26:55:a3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -54, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:26:55:a3-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:62:26:55:a3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -54 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:26:55:a3-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:26:55:a3-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:62:26:55:a3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:62:26:55:a3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:26:55:a3-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:62:26:55:a3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 27.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:26:55:a3-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:62:26:55:a3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 27.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:26:55:a3-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:62:26:55:a3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:26:55:a3-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:62:26:55:a3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "SoilMoisture", + "available": true, + "state": 0.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:62:26:55:a3-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:62:26:55:a3", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:62:26:55:a3-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:62:26:55:a3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-pcdmj88b-ts0601-0x0000004d.json b/tests/data/devices/tze284-pcdmj88b-ts0601-0x0000004d.json index 3249bf37d..c4e48ed91 100644 --- a/tests/data/devices/tze284-pcdmj88b-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-pcdmj88b-ts0601-0x0000004d.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:62:e5:e2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:62:e5:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 156, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:62:e5:e2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:62:e5:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 156 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:62:e5:e2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:62:e5:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -72, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:62:e5:e2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:62:e5:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -72 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7b:62:e5:e2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7b:62:e5:e2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7b:62:e5:e2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7b:62:e5:e2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-qyflbnbj-ts0601-0x0000004d.json b/tests/data/devices/tze284-qyflbnbj-ts0601-0x0000004d.json index 140db2c95..18c9c925c 100644 --- a/tests/data/devices/tze284-qyflbnbj-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-qyflbnbj-ts0601-0x0000004d.json @@ -239,156 +239,186 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:be:8d:9e:2b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:be:8d:9e:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-rjxqso4a-ts0601-0x0000004d.json b/tests/data/devices/tze284-rjxqso4a-ts0601-0x0000004d.json index c22161390..914570009 100644 --- a/tests/data/devices/tze284-rjxqso4a-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-rjxqso4a-ts0601-0x0000004d.json @@ -184,209 +184,249 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": "CO concentration", - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-co", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Sensor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "carbon_monoxide", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "ppm" + "info_object": { + "fallback_name": "CO concentration", + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-co", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Sensor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "carbon_monoxide", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "ppm" + }, + "state": { + "class_name": "Sensor", + "available": true, + "state": null + } }, { - "fallback_name": "Self test result", - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-self_test_result", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "EnumSensor", - "translation_key": "self_test_result", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": "Self test result", + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-self_test_result", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "EnumSensor", + "translation_key": "self_test_result", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "EnumSensor", + "available": true, + "state": null + } } ], "switch": [ { - "fallback_name": "Mute siren", - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-mute_siren", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "mute_siren", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "mute_siren", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Mute siren", + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-mute_siren", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "mute_siren", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "mute_siren", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:91:4e:bb-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:6a:91:4e:bb", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-rlytpmij-ts0601-0x00000051.json b/tests/data/devices/tze284-rlytpmij-ts0601-0x00000051.json index d3c2a4074..efe5487cf 100644 --- a/tests/data/devices/tze284-rlytpmij-ts0601-0x00000051.json +++ b/tests/data/devices/tze284-rlytpmij-ts0601-0x00000051.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:d8:40:d8-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:d8:40:d8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 164, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:d8:40:d8-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:d8:40:d8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 164 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:d8:40:d8-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:d8:40:d8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -59, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:d8:40:d8-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:d8:40:d8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -59 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:11:d8:40:d8-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:11:d8:40:d8", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000051", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:11:d8:40:d8-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:11:d8:40:d8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000051", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-rqcuwlsa-ts0601.json b/tests/data/devices/tze284-rqcuwlsa-ts0601.json index 75c3e2b9b..f7b040794 100644 --- a/tests/data/devices/tze284-rqcuwlsa-ts0601.json +++ b/tests/data/devices/tze284-rqcuwlsa-ts0601.json @@ -190,179 +190,214 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 14.8, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 14.8 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.0, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "SoilMoisture", + "available": true, + "state": 22.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1034", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalConductivity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "conductivity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u03bcS/cm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-1034", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalConductivity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "conductivity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u03bcS/cm" + }, + "state": { + "class_name": "ElectricalConductivity", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:7a:53:32", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:7a:53:32-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:7a:53:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-rvnbnvw8-ts0601-0x0000004e.json b/tests/data/devices/tze284-rvnbnvw8-ts0601-0x0000004e.json index 63db8915c..2fcd85e57 100644 --- a/tests/data/devices/tze284-rvnbnvw8-ts0601-0x0000004e.json +++ b/tests/data/devices/tze284-rvnbnvw8-ts0601-0x0000004e.json @@ -169,80 +169,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:00:45:a7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:00:45:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 136, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:00:45:a7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:00:45:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 136 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:00:45:a7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:00:45:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -66, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:00:45:a7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:00:45:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -66 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:d2:00:45:a7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:d2:00:45:a7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d2:00:45:a7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:d2:00:45:a7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-sgabhwa6-ts0601-0x0000004d.json b/tests/data/devices/tze284-sgabhwa6-ts0601-0x0000004d.json index e1a1c24ad..13db986fc 100644 --- a/tests/data/devices/tze284-sgabhwa6-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-sgabhwa6-ts0601-0x0000004d.json @@ -324,156 +324,186 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:63:0a:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:63:0a:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:63:0a:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:63:0a:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:63:0a:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:e7:63:0a:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:63:0a:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:63:0a:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-1032", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SoilMoisture", - "translation_key": "soil_moisture", - "translation_placeholders": null, - "device_class": "moisture", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:63:0a:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-1032", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SoilMoisture", + "translation_key": "soil_moisture", + "translation_placeholders": null, + "device_class": "moisture", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:63:0a:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "SoilMoisture", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e7:63:0a:df", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:63:0a:df-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e7:63:0a:df", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-upagmta9-ts0601-0x0000004d.json b/tests/data/devices/tze284-upagmta9-ts0601-0x0000004d.json index 0dd0ca0ff..8d570526e 100644 --- a/tests/data/devices/tze284-upagmta9-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-upagmta9-ts0601-0x0000004d.json @@ -183,184 +183,219 @@ "zha_lib_entities": { "select": [ { - "fallback_name": "Display unit", - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-display_unit", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "display_unit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "TuyaTempUnitConvert", - "options": [ - "Celsius", - "Fahrenheit" - ] + "info_object": { + "fallback_name": "Display unit", + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-display_unit", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "display_unit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "TuyaTempUnitConvert", + "options": [ + "Celsius", + "Fahrenheit" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -34, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -34 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AAA", + "battery_quantity": 2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AAA", - "battery_quantity": 2, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:10:4c:9a:94", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:10:4c:9a:94-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:10:4c:9a:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-vawy74yh-ts0601-0x0000004d.json b/tests/data/devices/tze284-vawy74yh-ts0601-0x0000004d.json index b68f14082..fcd8ed4b3 100644 --- a/tests/data/devices/tze284-vawy74yh-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-vawy74yh-ts0601-0x0000004d.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:28:8a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:28:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:28:8a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:28:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:28:8a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:28:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -40, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:28:8a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:28:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -40 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:39:6f:28:8a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:39:6f:28:8a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:6f:28:8a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:39:6f:28:8a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-vuwtqx0t-ts0601-0x00000050.json b/tests/data/devices/tze284-vuwtqx0t-ts0601-0x00000050.json index bcdcd4ee8..9b37bdb61 100644 --- a/tests/data/devices/tze284-vuwtqx0t-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-vuwtqx0t-ts0601-0x00000050.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c9:76:a5-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c9:76:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c9:76:a5-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c9:76:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c9:76:a5-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c9:76:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -30, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c9:76:a5-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c9:76:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -30 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:f5:c9:76:a5-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:f5:c9:76:a5", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:c9:76:a5-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:f5:c9:76:a5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-wtikaxzs-ts0601-0x0000004d.json b/tests/data/devices/tze284-wtikaxzs-ts0601-0x0000004d.json index 13087380d..f72f5bcc5 100644 --- a/tests/data/devices/tze284-wtikaxzs-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-wtikaxzs-ts0601-0x0000004d.json @@ -140,80 +140,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:75:cc:9f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:75:cc:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:75:cc:9f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:75:cc:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:75:cc:9f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:75:cc:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:75:cc:9f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:75:cc:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:13:75:cc:9f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:13:75:cc:9f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:13:75:cc:9f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:13:75:cc:9f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-xnbkhhdr-ts0601-0x0000004d.json b/tests/data/devices/tze284-xnbkhhdr-ts0601-0x0000004d.json index 2fe6adc05..cd521c34e 100644 --- a/tests/data/devices/tze284-xnbkhhdr-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-xnbkhhdr-ts0601-0x0000004d.json @@ -261,450 +261,540 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": "Fault alarm", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-fault_alarm", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinarySensor", - "translation_key": "fault_alarm", - "translation_placeholders": null, - "device_class": "problem", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "fault_alarm" + "info_object": { + "fallback_name": "Fault alarm", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-fault_alarm", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinarySensor", + "translation_key": "fault_alarm", + "translation_placeholders": null, + "device_class": "problem", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "fault_alarm" + }, + "state": { + "class_name": "BinarySensor", + "available": true, + "state": false + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:04:48:19-1-513", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "Thermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 20.4, - "outdoor_temperature": null, - "target_temperature": 18.5, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 25.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": null, - "occupied_heating_setpoint": 1850, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:04:48:19-1-513", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "Thermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 25.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "Thermostat", + "available": true, + "current_temperature": 20.4, + "outdoor_temperature": null, + "target_temperature": 18.5, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": null, + "occupied_heating_setpoint": 1850, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:04:48:19-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 25.0, - "mode": "box", - "native_max_value": 327.67, - "native_min_value": -273.15000000000003, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:04:48:19-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 327.67, + "native_min_value": -273.15000000000003, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 25.0 + } }, { - "fallback_name": "Deadzone temperature", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-deadzone_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "deadzone_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.5, - "mode": "auto", - "native_max_value": 10, - "native_min_value": 0.5, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Deadzone temperature", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-deadzone_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "deadzone_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0.5, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0.5 + } }, { - "fallback_name": "Local temperature calibration", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "auto", - "native_max_value": 9.9, - "native_min_value": -9.9, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Local temperature calibration", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 9.9, + "native_min_value": -9.9, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": 0.0 + } } ], "select": [ { - "fallback_name": "Backlight mode", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "High", - "enum": "BacklightMode", - "options": [ - "Off", - "Low", - "Medium", - "High" - ] + "info_object": { + "fallback_name": "Backlight mode", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-backlight_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "backlight_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "BacklightMode", + "options": [ + "Off", + "Low", + "Medium", + "High" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "High" + } }, { - "fallback_name": "Preset mode", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-preset_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "preset_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Manual", - "enum": "PresetModeV03", - "options": [ - "Auto", - "Manual", - "Temporary Manual" - ] + "info_object": { + "fallback_name": "Preset mode", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-preset_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "preset_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "PresetModeV03", + "options": [ + "Auto", + "Manual", + "Temporary Manual" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Manual" + } }, { - "fallback_name": "Sensor mode", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-temperature_sensor_select", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "sensor_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": null, - "enum": "SensorMode", - "options": [ - "Air", - "Floor", - "Both" - ] + "info_object": { + "fallback_name": "Sensor mode", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-temperature_sensor_select", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "sensor_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "SensorMode", + "options": [ + "Air", + "Floor", + "Both" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Working day", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-working_day", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "working_day", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Disabled", - "enum": "WorkingDayV02", - "options": [ - "Disabled", - "Five Two", - "Six One", - "Seven" - ] + "info_object": { + "fallback_name": "Working day", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-working_day", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "working_day", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "WorkingDayV02", + "options": [ + "Disabled", + "Five Two", + "Six One", + "Seven" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Disabled" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:04:48:19-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 78, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:04:48:19-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 78 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:04:48:19-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:04:48:19-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:04:48:19-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:04:48:19-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } } ], "switch": [ { - "fallback_name": "Child lock", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-child_lock", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "child_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "child_lock", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Child lock", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-child_lock", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "child_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "child_lock", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Factory reset", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-factory_reset", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "factory_reset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "factory_reset", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Factory reset", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-factory_reset", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "factory_reset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "factory_reset", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Frost protection", - "unique_id": "ab:cd:ef:12:60:04:48:19-1-frost_protection", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "frost_protection", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": true, - "inverted": false, - "attribute_name": "frost_protection", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Frost protection", + "unique_id": "ab:cd:ef:12:60:04:48:19-1-frost_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "frost_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "frost_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": true, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:60:04:48:19-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:60:04:48:19", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:60:04:48:19-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:60:04:48:19", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-zjhoqbrd-ts0601-0x0000004d.json b/tests/data/devices/tze284-zjhoqbrd-ts0601-0x0000004d.json index 3a8999ea9..1abe85770 100644 --- a/tests/data/devices/tze284-zjhoqbrd-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-zjhoqbrd-ts0601-0x0000004d.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:61:e4:86-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:61:e4:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:61:e4:86-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:61:e4:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:61:e4:86-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:61:e4:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -32, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:61:e4:86-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:61:e4:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -32 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cf:61:e4:86-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cf:61:e4:86", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cf:61:e4:86-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cf:61:e4:86", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-zm8zpwas-ts0601-0x00000050.json b/tests/data/devices/tze284-zm8zpwas-ts0601-0x00000050.json index 87d93dc28..4a295b9ef 100644 --- a/tests/data/devices/tze284-zm8zpwas-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-zm8zpwas-ts0601-0x00000050.json @@ -152,80 +152,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:4b:0f:b2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:4b:0f:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:4b:0f:b2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:4b:0f:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:4b:0f:b2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:4b:0f:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:4b:0f:b2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:4b:0f:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:34:4b:0f:b2-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:34:4b:0f:b2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000050", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:34:4b:0f:b2-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:34:4b:0f:b2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000050", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-znvwzxkq-ts0601-0x0000004a.json b/tests/data/devices/tze284-znvwzxkq-ts0601-0x0000004a.json index 8f95e7554..e96366f3c 100644 --- a/tests/data/devices/tze284-znvwzxkq-ts0601-0x0000004a.json +++ b/tests/data/devices/tze284-znvwzxkq-ts0601-0x0000004a.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:bb:1b:9d-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:12:bb:1b:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:bb:1b:9d-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:12:bb:1b:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:bb:1b:9d-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:12:bb:1b:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:bb:1b:9d-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:12:bb:1b:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:12:bb:1b:9d-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:12:bb:1b:9d", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:bb:1b:9d-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:12:bb:1b:9d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze284-zp8xakad-ts0601-0x0000004d.json b/tests/data/devices/tze284-zp8xakad-ts0601-0x0000004d.json index d720cdd8b..c0ae5bc52 100644 --- a/tests/data/devices/tze284-zp8xakad-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-zp8xakad-ts0601-0x0000004d.json @@ -146,80 +146,95 @@ "zha_lib_entities": { "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:a4:d9:89-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:a4:d9:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:a4:d9:89-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:a4:d9:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:a4:d9:89-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:a4:d9:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -43, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:a4:d9:89-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:a4:d9:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -43 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:cd:a4:d9:89-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:cd:a4:d9:89", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000004d", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:a4:d9:89-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:cd:a4:d9:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000004d", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze28c1000000-alh14edn-ts0601-0x00000048.json b/tests/data/devices/tze28c1000000-alh14edn-ts0601-0x00000048.json index 6091cffd5..49d2b914a 100644 --- a/tests/data/devices/tze28c1000000-alh14edn-ts0601-0x00000048.json +++ b/tests/data/devices/tze28c1000000-alh14edn-ts0601-0x00000048.json @@ -183,137 +183,161 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 184, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 184 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -54, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -54 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_voltage": 0.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 0.0 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000048", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a8:7c:51:4e-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:a8:7c:51:4e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000048", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze600-iypcp4py-ts0105.json b/tests/data/devices/tze600-iypcp4py-ts0105.json index dfa338204..2b51f4aee 100644 --- a/tests/data/devices/tze600-iypcp4py-ts0105.json +++ b/tests/data/devices/tze600-iypcp4py-ts0105.json @@ -144,107 +144,127 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e3:fb:03:e7-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e3:fb:03:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/tze608-c75zqghm-ts0603-0x00000040.json b/tests/data/devices/tze608-c75zqghm-ts0603-0x00000040.json index 9ea625349..cc6b02f51 100644 --- a/tests/data/devices/tze608-c75zqghm-ts0603-0x00000040.json +++ b/tests/data/devices/tze608-c75zqghm-ts0603-0x00000040.json @@ -163,107 +163,127 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:20:4f:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:20:4f:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:20:4f:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:20:4f:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:20:4f:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:20:4f:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:38:20:4f:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x00000040", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:38:20:4f:1a-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:38:20:4f:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x00000040", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/ubisys-s1-5501-0x02600460.json b/tests/data/devices/ubisys-s1-5501-0x02600460.json index eec9d9f06..a0ceaf0a9 100644 --- a/tests/data/devices/ubisys-s1-5501-0x02600460.json +++ b/tests/data/devices/ubisys-s1-5501-0x02600460.json @@ -703,505 +703,588 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } }, { - "fallback_name": "Input mode", - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-input_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "ZCLEnumSelectEntity", - "translation_key": "input_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Toggle", - "enum": "InputMode", - "options": [ - "Toggle", - "Toggle switch", - "On off switch" - ] + "info_object": { + "fallback_name": "Input mode", + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-input_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "input_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "InputMode", + "options": [ + "Toggle", + "Toggle switch", + "On off switch" + ] + }, + "state": { + "class_name": "ZCLEnumSelectEntity", + "available": true, + "state": "Toggle" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 188, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 188 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -53, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -53 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": 0.0, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 0.0, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummationReceived", + "available": true, + "state": 0.0, + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": null, - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 49.766, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 49.766, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 1.0, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 1.0, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 0, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.004, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0.004, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 232.0, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 232.0, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-3-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 0.0, + "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT" + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": 0.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": "ACTIVE_MEASUREMENT, REACTIVE_MEASUREMENT, APPARENT_MEASUREMENT, PHASE_A_MEASUREMENT", - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 1 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 1, + "available": true + } }, { - "fallback_name": "Detached mode", - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-detached", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "detached", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "detached", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": "Detached mode", + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-1-detached", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "detached", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "detached", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-232-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", - "endpoint_id": 232, - "available": true, - "group_id": null, - "installed_version": "0x02600460", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-232-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 232, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x02600460", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/uiot-uiot-windowcovring2-0402.json b/tests/data/devices/uiot-uiot-windowcovring2-0402.json index 9f5e6e63c..90c73bf5e 100644 --- a/tests/data/devices/uiot-uiot-windowcovring2-0402.json +++ b/tests/data/devices/uiot-uiot-windowcovring2-0402.json @@ -469,256 +469,309 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-2-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 2, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-2-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 2, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-3-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 3, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-3-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 3, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-2-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 2, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-2-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 2, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-3-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 3, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-3-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 3, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c1:6d:31:24", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c1:6d:31:24-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c1:6d:31:24", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/universal-electronics-inc-urc4460bc0-x-r-0x20160921.json b/tests/data/devices/universal-electronics-inc-urc4460bc0-x-r-0x20160921.json index 4cc37d09a..39b8a3cb1 100644 --- a/tests/data/devices/universal-electronics-inc-urc4460bc0-x-r-0x20160921.json +++ b/tests/data/devices/universal-electronics-inc-urc4460bc0-x-r-0x20160921.json @@ -219,184 +219,220 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 232, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 232 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -42, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -42 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 44.5, + "battery_size": "Unknown", + "battery_quantity": 1, + "battery_voltage": 2.5 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 44.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Unknown", - "battery_quantity": 1, - "battery_voltage": 2.5 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 13.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 13.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:65:4f:d8:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x20160921", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:65:4f:d8:da-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:65:4f:d8:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x20160921", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/unk-manufacturer-unk-model.json b/tests/data/devices/unk-manufacturer-unk-model.json index 07e73938d..581722c86 100644 --- a/tests/data/devices/unk-manufacturer-unk-model.json +++ b/tests/data/devices/unk-manufacturer-unk-model.json @@ -275,133 +275,155 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:85:b4:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:85:b4:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:85:b4:de-1", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Shade", - "translation_key": "shade", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:85:b4:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 0, - "current_tilt_position": null, - "is_opening": null, - "is_closing": null, - "is_closed": true, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:85:b4:de-1", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Shade", + "translation_key": "shade", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:bb:85:b4:de", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Shade", + "available": true, + "current_position": 0, + "is_closed": true, + "state": "closed" + } } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:85:b4:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 254, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:85:b4:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 254 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:85:b4:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:85:b4:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:bb:85:b4:de", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:85:b4:de-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:bb:85:b4:de", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/visonic-mct-340-sma.json b/tests/data/devices/visonic-mct-340-sma.json index 6533942f0..afc838453 100644 --- a/tests/data/devices/visonic-mct-340-sma.json +++ b/tests/data/devices/visonic-mct-340-sma.json @@ -206,184 +206,220 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-1280", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "IASZone", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "zone_status" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-1280", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "IASZone", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "zone_status" + }, + "state": { + "class_name": "IASZone", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "Other", + "battery_quantity": 1, + "battery_voltage": 2.8 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "Other", - "battery_quantity": 1, - "battery_voltage": 2.8 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 22.0, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 22.0 + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:80:a4:c3:ba-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:80:a4:c3:ba", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/xiaomi-lywsd03mmc.json b/tests/data/devices/xiaomi-lywsd03mmc.json index 62ebef717..54e68b602 100644 --- a/tests/data/devices/xiaomi-lywsd03mmc.json +++ b/tests/data/devices/xiaomi-lywsd03mmc.json @@ -185,397 +185,471 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "number": [ { - "fallback_name": "Comfort humidity max", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_humidity_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_humidity_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 99, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Comfort humidity max", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_humidity_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_humidity_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 99, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Comfort humidity min", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_humidity_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_humidity_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 99, - "native_min_value": 0, - "native_step": 1, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Comfort humidity min", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_humidity_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_humidity_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 99, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Comfort temperature max", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_temperature_max", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature_max", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 99, - "native_min_value": -99, - "native_step": 0.01, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Comfort temperature max", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_temperature_max", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature_max", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 99, + "native_min_value": -99, + "native_step": 0.01, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Comfort temperature min", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_temperature_min", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "comfort_temperature_min", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 99, - "native_min_value": -99, - "native_step": 0.01, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Comfort temperature min", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-comfort_temperature_min", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "comfort_temperature_min", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 99, + "native_min_value": -99, + "native_step": 0.01, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Humidity offset", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-humidity_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "humidity_offset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 99, - "native_min_value": -99, - "native_step": 0.01, - "native_unit_of_measurement": "%" + "info_object": { + "fallback_name": "Humidity offset", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-humidity_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "humidity_offset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 99, + "native_min_value": -99, + "native_step": 0.01, + "native_unit_of_measurement": "%" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } }, { - "fallback_name": "Temperature offset", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "NumberConfigurationEntity", - "translation_key": "temperature_offset", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "mode": "box", - "native_max_value": 99, - "native_min_value": -99, - "native_step": 0.01, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": "Temperature offset", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "temperature_offset", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 99, + "native_min_value": -99, + "native_step": 0.01, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "NumberConfigurationEntity", + "available": true, + "state": null + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 1.5, + "battery_voltage": 2.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.5, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": 2.2 + ] }, { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-1026", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Temperature", - "translation_key": null, - "translation_placeholders": null, - "device_class": "temperature", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 19.97, - "suggested_display_precision": null, - "unit": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-1026", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Temperature", + "translation_key": null, + "translation_placeholders": null, + "device_class": "temperature", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "\u00b0C" + }, + "state": { + "class_name": "Temperature", + "available": true, + "state": 19.97 + } }, { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-1029", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Humidity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "humidity", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 52.96, - "suggested_display_precision": null, - "unit": "%" + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-1029", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Humidity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "humidity", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "%" + }, + "state": { + "class_name": "Humidity", + "available": true, + "state": 52.96 + } } ], "switch": [ { - "fallback_name": "Display enabled", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-display", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "display_enabled", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "display", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": false, - "on_value": true + "info_object": { + "fallback_name": "Display enabled", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-display", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "display_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "display", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": false, + "on_value": true + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } }, { - "fallback_name": "Show smiley", - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-smiley", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "ConfigurableAttributeSwitch", - "translation_key": "show_smiley", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "smiley", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": false, - "on_value": true + "info_object": { + "fallback_name": "Show smiley", + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-smiley", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "show_smiley", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "smiley", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": false, + "on_value": true + }, + "state": { + "class_name": "ConfigurableAttributeSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "a4:c1:38:dd:ed:49:77:95-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "a4:c1:38:dd:ed:49:77:95", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "a4:c1:38:dd:ed:49:77:95-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "a4:c1:38:dd:ed:49:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/xiaoyan-terncy-sd01-0x0000001a.json b/tests/data/devices/xiaoyan-terncy-sd01-0x0000001a.json index cb4ffb2e7..3404943a9 100644 --- a/tests/data/devices/xiaoyan-terncy-sd01-0x0000001a.json +++ b/tests/data/devices/xiaoyan-terncy-sd01-0x0000001a.json @@ -159,137 +159,160 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:16:73:c1:c9-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:16:73:c1:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:16:73:c1:c9-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:16:73:c1:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:16:73:c1:c9-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:16:73:c1:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:16:73:c1:c9-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:16:73:c1:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:16:73:c1:c9-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:16:73:c1:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:16:73:c1:c9-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:16:73:c1:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:16:73:c1:c9-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:16:73:c1:c9-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:16:73:c1:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 79.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:0d:6f:00:16:73:c1:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 79.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:16:73:c1:c9-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:16:73:c1:c9", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000001a", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:16:73:c1:c9-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:16:73:c1:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000001a", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/xyzroe-diy-zintercom.json b/tests/data/devices/xyzroe-diy-zintercom.json index f9ef63b44..5d7bf4154 100644 --- a/tests/data/devices/xyzroe-diy-zintercom.json +++ b/tests/data/devices/xyzroe-diy-zintercom.json @@ -122,74 +122,89 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/yale-yrd256-tsdb-0x0105002b.json b/tests/data/devices/yale-yrd256-tsdb-0x0105002b.json index 8d8638867..d3b819b0a 100644 --- a/tests/data/devices/yale-yrd256-tsdb-0x0105002b.json +++ b/tests/data/devices/yale-yrd256-tsdb-0x0105002b.json @@ -239,160 +239,191 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:19:1f:7b-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:11:19:1f:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:19:1f:7b-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:11:19:1f:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "lock": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:19:1f:7b-1-257", - "migrate_unique_ids": [], - "platform": "lock", - "class_name": "DoorLock", - "translation_key": "door_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:11:19:1f:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_locked": true + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:19:1f:7b-1-257", + "migrate_unique_ids": [], + "platform": "lock", + "class_name": "DoorLock", + "translation_key": "door_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "00:0d:6f:00:11:19:1f:7b", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "DoorLock", + "available": true, + "is_locked": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:19:1f:7b-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:11:19:1f:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:19:1f:7b-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:11:19:1f:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:19:1f:7b-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:11:19:1f:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:19:1f:7b-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:11:19:1f:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:19:1f:7b-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:19:1f:7b-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:11:19:1f:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 65.0, + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 5.2 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "00:0d:6f:00:11:19:1f:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 5.2 + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "00:0d:6f:00:11:19:1f:7b-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "00:0d:6f:00:11:19:1f:7b", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0105002b", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "00:0d:6f:00:11:19:1f:7b-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "00:0d:6f:00:11:19:1f:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0105002b", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/yooksmart-d10110-0x12046780.json b/tests/data/devices/yooksmart-d10110-0x12046780.json index b048d2228..b5c021583 100644 --- a/tests/data/devices/yooksmart-d10110-0x12046780.json +++ b/tests/data/devices/yooksmart-d10110-0x12046780.json @@ -239,217 +239,256 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "cover": [ { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-258", - "migrate_unique_ids": [], - "platform": "cover", - "class_name": "Cover", - "translation_key": "cover", - "translation_placeholders": null, - "device_class": "shade", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_position": 100, - "current_tilt_position": null, - "is_opening": false, - "is_closing": false, - "is_closed": false, - "supported_features": 15 + "info_object": { + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-258", + "migrate_unique_ids": [], + "platform": "cover", + "class_name": "Cover", + "translation_key": "cover", + "translation_placeholders": null, + "device_class": "shade", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Cover", + "available": true, + "current_position": 100, + "current_tilt_position": null, + "state": "open", + "is_opening": false, + "is_closing": false, + "is_closed": false, + "supported_features": 15 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 65.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 65.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": null, - "battery_quantity": null, - "battery_voltage": null + ] }, { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-258-window_covering_type", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "WindowCoveringTypeSensor", - "translation_key": "window_covering_type", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "Rollershade", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-258-window_covering_type", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "WindowCoveringTypeSensor", + "translation_key": "window_covering_type", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "WindowCoveringTypeSensor", + "available": true, + "state": "Rollershade" + } } ], "switch": [ { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-258-inverted", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "WindowCoveringInversionSwitch", - "translation_key": "inverted", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "inverted": false, - "attribute_name": "config_status", - "invert_attribute_name": null, - "force_inverted": false, - "off_value": 0, - "on_value": 1 + "info_object": { + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-258-inverted", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "WindowCoveringInversionSwitch", + "translation_key": "inverted", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "config_status", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + "state": { + "class_name": "WindowCoveringInversionSwitch", + "available": true, + "state": false, + "inverted": false + } } ], "update": [ { - "fallback_name": null, - "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x12046780", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "6c:5c:b1:ff:fe:60:80:6f-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "6c:5c:b1:ff:fe:60:80:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x12046780", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/yunding-ford.json b/tests/data/devices/yunding-ford.json index d9f16f9bf..d11bd04e9 100644 --- a/tests/data/devices/yunding-ford.json +++ b/tests/data/devices/yunding-ford.json @@ -183,160 +183,190 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:6a:22:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:6a:22:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "lock": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-257", - "migrate_unique_ids": [], - "platform": "lock", - "class_name": "DoorLock", - "translation_key": "door_lock", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:6a:22:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_locked": false + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-257", + "migrate_unique_ids": [], + "platform": "lock", + "class_name": "DoorLock", + "translation_key": "door_lock", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "68:0a:e2:ff:fe:6a:22:af", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "DoorLock", + "available": true, + "is_locked": false + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:6a:22:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:6a:22:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:6a:22:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:6a:22:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:6a:22:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": 100.0, + "battery_size": "AA", + "battery_quantity": 4 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "68:0a:e2:ff:fe:6a:22:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 100.0, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": null + ] } ], "update": [ { - "fallback_name": null, - "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "68:0a:e2:ff:fe:6a:22:af", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": null, - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "68:0a:e2:ff:fe:6a:22:af-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "68:0a:e2:ff:fe:6a:22:af", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": null, + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/zbeacon-ts0001.json b/tests/data/devices/zbeacon-ts0001.json index 30830b217..d71c4c778 100644 --- a/tests/data/devices/zbeacon-ts0001.json +++ b/tests/data/devices/zbeacon-ts0001.json @@ -180,146 +180,179 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": false, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 8, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": false, + "brightness": null, + "xy_color": null, + "color_temp": null, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 8, + "color_mode": "onoff", + "supported_color_modes": [ + "onoff" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "PreviousValue", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "PreviousValue" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 140, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 140 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -65, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c6:20:7e:d6-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:c6:20:7e:d6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -65 + } } ] }, diff --git a/tests/data/devices/zbeacon-ts0505.json b/tests/data/devices/zbeacon-ts0505.json index f3b8f8fb2..77a5f7c99 100644 --- a/tests/data/devices/zbeacon-ts0505.json +++ b/tests/data/devices/zbeacon-ts0505.json @@ -296,516 +296,600 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "light": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": 126, - "xy_color": [ - 0.15320057984283209, - 0.04754711223010605 - ], - "color_temp": 153, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 40, - "color_mode": "color_temp", - "supported_color_modes": [ - "brightness", - "color_temp", - "onoff", - "xy" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1", + "migrate_unique_ids": [], + "platform": "light", + "class_name": "Light", + "translation_key": "light", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "effect_list": [ + "off" + ], + "supported_features": 40, + "min_mireds": 153, + "max_mireds": 500 + }, + "state": { + "class_name": "Light", + "available": true, + "on": true, + "brightness": 126, + "xy_color": [ + 0.15320057984283209, + 0.04754711223010605 + ], + "color_temp": 153, + "effect_list": [ + "off" + ], + "effect": "off", + "supported_features": 40, + "color_mode": "color_temp", + "supported_color_modes": [ + "brightness", + "color_temp", + "onoff", + "xy" + ], + "off_with_transition": false, + "off_brightness": null + }, + "extra_state_attributes": [ + "off_brightness", + "off_with_transition" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-768-start_up_color_temperature", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpColorTemperatureConfigurationEntity", - "translation_key": "start_up_color_temperature", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 200, - "mode": "auto", - "native_max_value": 500, - "native_min_value": 153, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-768-start_up_color_temperature", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpColorTemperatureConfigurationEntity", + "translation_key": "start_up_color_temperature", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 500, + "native_min_value": 153, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpColorTemperatureConfigurationEntity", + "available": true, + "state": 200 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-off_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OffTransitionTimeConfigurationEntity", - "translation_key": "off_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-off_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OffTransitionTimeConfigurationEntity", + "translation_key": "off_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OffTransitionTimeConfigurationEntity", + "available": true, + "state": 1 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-on_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnLevelConfigurationEntity", - "translation_key": "on_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-on_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnLevelConfigurationEntity", + "translation_key": "on_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnLevelConfigurationEntity", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-on_transition_time", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "OnTransitionTimeConfigurationEntity", - "translation_key": "on_transition_time", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1, - "mode": "auto", - "native_max_value": 65534, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-on_transition_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "OnTransitionTimeConfigurationEntity", + "translation_key": "on_transition_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 65534, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "OnTransitionTimeConfigurationEntity", + "available": true, + "state": 1 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-start_up_current_level", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "StartUpCurrentLevelConfigurationEntity", - "translation_key": "start_up_current_level", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 67, - "mode": "auto", - "native_max_value": 255, - "native_min_value": 0, - "native_step": 1.0, - "native_unit_of_measurement": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-8-start_up_current_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "StartUpCurrentLevelConfigurationEntity", + "translation_key": "start_up_current_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + "state": { + "class_name": "StartUpCurrentLevelConfigurationEntity", + "available": true, + "state": 67 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-6-StartUpOnOff", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "StartupOnOffSelectEntity", - "translation_key": "start_up_on_off", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Toggle", - "enum": "StartUpOnOff", - "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-6-StartUpOnOff", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "StartupOnOffSelectEntity", + "translation_key": "start_up_on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "StartUpOnOff", + "options": [ + "Off", + "On", + "Toggle", + "PreviousValue" + ] + }, + "state": { + "class_name": "StartupOnOffSelectEntity", + "available": true, + "state": "Toggle" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-1794", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergyMetering", - "translation_key": "instantaneous_demand", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-1794", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergyMetering", + "translation_key": "instantaneous_demand", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": null + }, + "state": { + "class_name": "SmartEnergyMetering", + "available": true, + "state": null, + "zcl_unit_of_measurement": null + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": null, - "device_type": null, - "status": null, - "zcl_unit_of_measurement": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": null + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": null, + "zcl_unit_of_measurement": null + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 3, - "unit": null, - "device_type": null, - "status": null, - "zcl_unit_of_measurement": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": null + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": null + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ba:80:83:70-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:ba:80:83:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": null + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:ba:80:83:70", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] } ] }, diff --git a/tests/data/devices/zehnder-group-vaux-andigny-alcantara2-d1-00p1-02z1-00.json b/tests/data/devices/zehnder-group-vaux-andigny-alcantara2-d1-00p1-02z1-00.json index fb689c17c..b8c2ca224 100644 --- a/tests/data/devices/zehnder-group-vaux-andigny-alcantara2-d1-00p1-02z1-00.json +++ b/tests/data/devices/zehnder-group-vaux-andigny-alcantara2-d1-00p1-02z1-00.json @@ -371,268 +371,328 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-2-1030", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Occupancy", - "translation_key": null, - "translation_placeholders": null, - "device_class": "occupancy", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 2, - "available": true, - "group_id": null, - "is_on": true, - "attribute_name": "occupancy" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-2-1030", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Occupancy", + "translation_key": null, + "translation_placeholders": null, + "device_class": "occupancy", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 2, + "available": true, + "group_id": null, + "attribute_name": "occupancy" + }, + "state": { + "class_name": "Occupancy", + "available": true, + "state": true + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-3-15", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "BinaryInput", - "translation_key": "binary_input", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 3, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "present_value" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-3-15", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "BinaryInput", + "translation_key": "binary_input", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 3, + "available": true, + "group_id": null, + "attribute_name": "present_value" + }, + "state": { + "class_name": "BinaryInput", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "ZehnderThermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": null, - "outdoor_temperature": null, - "target_temperature": 7.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 28.0, - "min_temp": 7.0, - "supported_features": 385, - "fan_modes": null, - "preset_modes": [], - "hvac_modes": [ - "off", - "heat" - ], - "sys_mode": "[1]/heat", - "occupancy": 1, - "occupied_cooling_setpoint": 2600, - "occupied_heating_setpoint": 700, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": 800 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "ZehnderThermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 28.0, + "min_temp": 7.0, + "supported_features": 385, + "fan_modes": null, + "preset_modes": [], + "hvac_modes": [ + "off", + "heat" + ] + }, + "state": { + "class_name": "ZehnderThermostat", + "available": true, + "current_temperature": null, + "outdoor_temperature": null, + "target_temperature": 7.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[1]/heat", + "occupancy": 1, + "occupied_cooling_setpoint": 2600, + "occupied_heating_setpoint": 700, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": 800 + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "ThermostatLocalTempCalibration", + "available": true, + "state": 0.0 + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-setpoint_change_source", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSource", - "translation_key": "setpoint_change_source", - "translation_placeholders": null, - "device_class": "enum", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-setpoint_change_source", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSource", + "translation_key": "setpoint_change_source", + "translation_placeholders": null, + "device_class": "enum", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSource", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:7f:49:22:da", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7f:49:22:da-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:7f:49:22:da", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ] }, diff --git a/tests/data/devices/zemismart-spm02-3z3-0x0000000e.json b/tests/data/devices/zemismart-spm02-3z3-0x0000000e.json index 7e61ec96a..b8f5160be 100644 --- a/tests/data/devices/zemismart-spm02-3z3-0x0000000e.json +++ b/tests/data/devices/zemismart-spm02-3z3-0x0000000e.json @@ -587,645 +587,732 @@ "zha_lib_entities": { "binary_sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-6", - "migrate_unique_ids": [], - "platform": "binary_sensor", - "class_name": "Opening", - "translation_key": null, - "translation_placeholders": null, - "device_class": "opening", - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": false, - "attribute_name": "on_off" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-6", + "migrate_unique_ids": [], + "platform": "binary_sensor", + "class_name": "Opening", + "translation_key": null, + "translation_placeholders": null, + "device_class": "opening", + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "attribute_name": "on_off" + }, + "state": { + "class_name": "Opening", + "available": true, + "state": false + } } ], "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 132, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 132 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": -67, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": -67 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-1794-summation_delivered", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummation", - "translation_key": "summation_delivered", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-1794-summation_delivered", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummation", + "translation_key": "summation_delivered", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummation", + "available": true, + "state": 5.27, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 5.27, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-1794-summation_received", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SmartEnergySummationReceived", - "translation_key": "summation_received", - "translation_placeholders": null, - "device_class": "energy", - "state_class": "total_increasing", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-1794-summation_received", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SmartEnergySummationReceived", + "translation_key": "summation_received", + "translation_placeholders": null, + "device_class": "energy", + "state_class": "total_increasing", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 3, + "unit": "kWh" + }, + "state": { + "class_name": "SmartEnergySummationReceived", + "available": true, + "state": 0.13, + "device_type": "Electric Metering", + "status": "NO_ALARMS", + "zcl_unit_of_measurement": 0 + }, + "extra_state_attributes": [ "device_type", "status", "zcl_unit_of_measurement" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.13, - "suggested_display_precision": 3, - "unit": "kWh", - "device_type": "Electric Metering", - "status": "NO_ALARMS", - "zcl_unit_of_measurement": 0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePower", + "available": true, + "state": 3.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 3.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-ac_frequency", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementFrequency", - "translation_key": "ac_frequency", - "translation_placeholders": null, - "device_class": "frequency", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-ac_frequency", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementFrequency", + "translation_key": "ac_frequency", + "translation_placeholders": null, + "device_class": "frequency", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "Hz" + }, + "state": { + "class_name": "ElectricalMeasurementFrequency", + "available": true, + "state": 49.99 + }, + "extra_state_attributes": [ "ac_frequency_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 49.99, - "suggested_display_precision": 1, - "unit": "Hz", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "ac_frequency_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-active_power_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhB", - "translation_key": "active_power_ph_b", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-active_power_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhB", + "translation_key": "active_power_ph_b", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePowerPhB", + "available": true, + "state": 18.0 + }, + "extra_state_attributes": [ "active_power_max_ph_b", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 18.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-active_power_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementActivePowerPhC", - "translation_key": "active_power_ph_c", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-active_power_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementActivePowerPhC", + "translation_key": "active_power_ph_c", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementActivePowerPhC", + "available": true, + "state": 196.0 + }, + "extra_state_attributes": [ "active_power_max_ph_c", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 196.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-apparent_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementApparentPower", - "translation_key": null, - "translation_placeholders": null, - "device_class": "apparent_power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-apparent_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementApparentPower", + "translation_key": null, + "translation_placeholders": null, + "device_class": "apparent_power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "VA" + }, + "state": { + "class_name": "ElectricalMeasurementApparentPower", + "available": true, + "state": 4.0 + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4.0, - "suggested_display_precision": 1, - "unit": "VA", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-power_factor", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactor", - "translation_key": null, - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-power_factor", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactor", + "translation_key": null, + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactor", + "available": true, + "state": 81 + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 81, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-power_factor_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactorPhB", - "translation_key": "power_factor_ph_b", - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-power_factor_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactorPhB", + "translation_key": "power_factor_ph_b", + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactorPhB", + "available": true, + "state": 47 + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 47, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-power_factor_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementPowerFactorPhC", - "translation_key": "power_factor_ph_c", - "translation_placeholders": null, - "device_class": "power_factor", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-power_factor_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementPowerFactorPhC", + "translation_key": "power_factor_ph_c", + "translation_placeholders": null, + "device_class": "power_factor", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "%" + }, + "state": { + "class_name": "ElectricalMeasurementPowerFactorPhC", + "available": true, + "state": 74 + }, + "extra_state_attributes": [ "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 74, - "suggested_display_precision": 1, - "unit": "%", - "measurement_type": null, - "max_value": null, - "max_attribute_name": null + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_current", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrent", - "translation_key": null, - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_current", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrent", + "translation_key": null, + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrent", + "available": true, + "state": 0.01 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.01, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_current_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhB", - "translation_key": "rms_current_ph_b", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_current_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "translation_key": "rms_current_ph_b", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrentPhB", + "available": true, + "state": 0.16 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max_ph_b" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.16, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_current_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSCurrentPhC", - "translation_key": "rms_current_ph_c", - "translation_placeholders": null, - "device_class": "current", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_current_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "translation_key": "rms_current_ph_c", + "translation_placeholders": null, + "device_class": "current", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 2, + "unit": "A" + }, + "state": { + "class_name": "ElectricalMeasurementRMSCurrentPhC", + "available": true, + "state": 1.15 + }, + "extra_state_attributes": [ "measurement_type", "rms_current_max_ph_c" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 1.15, - "suggested_display_precision": 2, - "unit": "A", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_current_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_voltage", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltage", - "translation_key": null, - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_voltage", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltage", + "translation_key": null, + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltage", + "available": true, + "state": 239.38 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 239.38, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_voltage_ph_b", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhB", - "translation_key": "rms_voltage_ph_b", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_voltage_ph_b", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "translation_key": "rms_voltage_ph_b", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltagePhB", + "available": true, + "state": 236.56 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max_ph_b" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 236.56, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max_ph_b" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_voltage_ph_c", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementRMSVoltagePhC", - "translation_key": "rms_voltage_ph_c", - "translation_placeholders": null, - "device_class": "voltage", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-rms_voltage_ph_c", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "translation_key": "rms_voltage_ph_c", + "translation_placeholders": null, + "device_class": "voltage", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "V" + }, + "state": { + "class_name": "ElectricalMeasurementRMSVoltagePhC", + "available": true, + "state": 237.29 + }, + "extra_state_attributes": [ "measurement_type", "rms_voltage_max_ph_c" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 237.29, - "suggested_display_precision": 1, - "unit": "V", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "rms_voltage_max_ph_c" + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-total_active_power", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ElectricalMeasurementTotalActivePower", - "translation_key": "total_active_power", - "translation_placeholders": null, - "device_class": "power", - "state_class": "measurement", - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-2820-total_active_power", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ElectricalMeasurementTotalActivePower", + "translation_key": "total_active_power", + "translation_placeholders": null, + "device_class": "power", + "state_class": "measurement", + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 1, + "unit": "W" + }, + "state": { + "class_name": "ElectricalMeasurementTotalActivePower", + "available": true, + "state": 219.0 + }, + "extra_state_attributes": [ "active_power_max", "measurement_type" - ], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 219.0, - "suggested_display_precision": 1, - "unit": "W", - "measurement_type": null, - "max_value": null, - "max_attribute_name": "active_power_max" + ] } ], "switch": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-6", - "migrate_unique_ids": [], - "platform": "switch", - "class_name": "Switch", - "translation_key": "switch", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "is_on": 0 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-6", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "Switch", + "translation_key": "switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null + }, + "state": { + "class_name": "Switch", + "state": 0, + "available": true + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:55:ac:22:4c", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000000e", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000000e", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] }, diff --git a/tests/data/devices/zen-within-zen-01-0x0000021f.json b/tests/data/devices/zen-within-zen-01-0x0000021f.json index 154c88beb..58296d63a 100644 --- a/tests/data/devices/zen-within-zen-01-0x0000021f.json +++ b/tests/data/devices/zen-within-zen-01-0x0000021f.json @@ -361,347 +361,418 @@ "zha_lib_entities": { "button": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-3", - "migrate_unique_ids": [], - "platform": "button", - "class_name": "IdentifyButton", - "translation_key": null, - "translation_placeholders": null, - "device_class": "identify", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "command": "identify", - "args": [ - 5 - ], - "kwargs": {} + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-3", + "migrate_unique_ids": [], + "platform": "button", + "class_name": "IdentifyButton", + "translation_key": null, + "translation_placeholders": null, + "device_class": "identify", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "command": "identify", + "args": [ + 5 + ], + "kwargs": {} + }, + "state": { + "class_name": "IdentifyButton", + "available": true + } } ], "climate": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1", - "migrate_unique_ids": [], - "platform": "climate", - "class_name": "ZenWithinThermostat", - "translation_key": "thermostat", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_temperature": 21.7, - "outdoor_temperature": null, - "target_temperature": 17.0, - "target_temperature_high": null, - "target_temperature_low": null, - "hvac_action": "idle", - "hvac_mode": "heat", - "preset_mode": "none", - "fan_mode": "auto", - "max_temp": 37.3, - "min_temp": 4.0, - "supported_features": 395, - "fan_modes": [ - "auto", - "on" - ], - "preset_modes": [], - "hvac_modes": [ - "off", - "heat_cool", - "cool", - "heat" - ], - "sys_mode": "[4]/heat", - "occupancy": null, - "occupied_cooling_setpoint": 2350, - "occupied_heating_setpoint": 1700, - "pi_heating_demand": null, - "pi_cooling_demand": null, - "unoccupied_cooling_setpoint": null, - "unoccupied_heating_setpoint": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1", + "migrate_unique_ids": [], + "platform": "climate", + "class_name": "ZenWithinThermostat", + "translation_key": "thermostat", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": true, + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "max_temp": 37.3, + "min_temp": 4.0, + "supported_features": 395, + "fan_modes": [ + "auto", + "on" + ], + "preset_modes": [], + "hvac_modes": [ + "off", + "heat_cool", + "cool", + "heat" + ] + }, + "state": { + "class_name": "ZenWithinThermostat", + "available": true, + "current_temperature": 21.7, + "outdoor_temperature": null, + "target_temperature": 17.0, + "target_temperature_high": null, + "target_temperature_low": null, + "hvac_action": "idle", + "hvac_mode": "heat", + "preset_mode": "none", + "fan_mode": "auto", + "system_mode": "[4]/heat", + "occupancy": null, + "occupied_cooling_setpoint": 2350, + "occupied_heating_setpoint": 1700, + "pi_heating_demand": null, + "pi_cooling_demand": null, + "unoccupied_cooling_setpoint": null, + "unoccupied_heating_setpoint": null + }, + "extra_state_attributes": [ + "occupancy", + "occupied_cooling_setpoint", + "occupied_heating_setpoint", + "pi_cooling_demand", + "pi_heating_demand", + "system_mode", + "unoccupied_cooling_setpoint", + "unoccupied_heating_setpoint" + ] } ], "number": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-local_temperature_calibration", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "ThermostatLocalTempCalibration", - "translation_key": "local_temperature_calibration", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 0.0, - "mode": "box", - "native_max_value": 2.5, - "native_min_value": -2.5, - "native_step": 0.1, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-local_temperature_calibration", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "ThermostatLocalTempCalibration", + "translation_key": "local_temperature_calibration", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 2.5, + "native_min_value": -2.5, + "native_step": 0.1, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "ThermostatLocalTempCalibration", + "available": true, + "state": 0.0 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-max_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MaxHeatSetpointLimit", - "translation_key": "max_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 37.300000000000004, - "mode": "box", - "native_max_value": 37.300000000000004, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-max_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MaxHeatSetpointLimit", + "translation_key": "max_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 37.300000000000004, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MaxHeatSetpointLimit", + "available": true, + "state": 37.300000000000004 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-min_heat_setpoint_limit", - "migrate_unique_ids": [], - "platform": "number", - "class_name": "MinHeatSetpointLimit", - "translation_key": "min_heat_setpoint_limit", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 4.0, - "mode": "box", - "native_max_value": 37.300000000000004, - "native_min_value": 4.0, - "native_step": 0.5, - "native_unit_of_measurement": "\u00b0C" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-min_heat_setpoint_limit", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "MinHeatSetpointLimit", + "translation_key": "min_heat_setpoint_limit", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "mode": "box", + "native_max_value": 37.300000000000004, + "native_min_value": 4.0, + "native_step": 0.5, + "native_unit_of_measurement": "\u00b0C" + }, + "state": { + "class_name": "MinHeatSetpointLimit", + "available": true, + "state": 4.0 + } } ], "select": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-516-keypad_lockout", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "KeypadLockout", - "translation_key": "keypad_lockout", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "Unlock", - "enum": "KeypadLockoutEnum", - "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" - ] + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-516-keypad_lockout", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "KeypadLockout", + "translation_key": "keypad_lockout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "enum": "KeypadLockoutEnum", + "options": [ + "Unlock", + "Lock1", + "Lock2", + "Lock3", + "Lock4" + ] + }, + "state": { + "class_name": "KeypadLockout", + "available": true, + "state": "Unlock" + } } ], "sensor": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-0-lqi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "LQISensor", - "translation_key": "lqi", - "translation_placeholders": null, - "device_class": null, - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": 255, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-0-lqi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "LQISensor", + "translation_key": "lqi", + "translation_placeholders": null, + "device_class": null, + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "LQISensor", + "available": true, + "state": 255 + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-0-rssi", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "RSSISensor", - "translation_key": "rssi", - "translation_placeholders": null, - "device_class": "signal_strength", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": false, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": "dBm" + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-0-rssi", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "RSSISensor", + "translation_key": "rssi", + "translation_placeholders": null, + "device_class": "signal_strength", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": false, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": "dBm" + }, + "state": { + "class_name": "RSSISensor", + "available": true, + "state": null + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-1", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "Battery", - "translation_key": null, - "translation_placeholders": null, - "device_class": "battery", - "state_class": "measurement", - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [ + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": 0, + "unit": "%" + }, + "state": { + "class_name": "Battery", + "available": true, + "state": null, + "battery_size": "AA", + "battery_quantity": 4, + "battery_voltage": 6.0 + }, + "extra_state_attributes": [ "battery_quantity", "battery_size", "battery_voltage" - ], - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": 0, - "unit": "%", - "battery_size": "AA", - "battery_quantity": 4, - "battery_voltage": 6.0 + ] }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-hvac_action", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "ThermostatHVACAction", - "translation_key": "hvac_action", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": "idle", - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-hvac_action", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "ThermostatHVACAction", + "translation_key": "hvac_action", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "ThermostatHVACAction", + "available": true, + "state": "idle" + } }, { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-setpoint_change_source_timestamp", - "migrate_unique_ids": [], - "platform": "sensor", - "class_name": "SetpointChangeSourceTimestamp", - "translation_key": "setpoint_change_source_timestamp", - "translation_placeholders": null, - "device_class": "timestamp", - "state_class": null, - "entity_category": "diagnostic", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "native_value": null, - "suggested_display_precision": null, - "unit": null + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-513-setpoint_change_source_timestamp", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "SetpointChangeSourceTimestamp", + "translation_key": "setpoint_change_source_timestamp", + "translation_placeholders": null, + "device_class": "timestamp", + "state_class": null, + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "suggested_display_precision": null, + "unit": null + }, + "state": { + "class_name": "SetpointChangeSourceTimestamp", + "available": true, + "state": null + } } ], "update": [ { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-25-firmware_update", - "migrate_unique_ids": [], - "platform": "update", - "class_name": "FirmwareUpdateEntity", - "translation_key": null, - "translation_placeholders": null, - "device_class": "firmware", - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", - "endpoint_id": 1, - "available": true, - "group_id": null, - "installed_version": "0x0000021f", - "in_progress": false, - "update_percentage": null, - "latest_version": null, - "release_summary": null, - "release_notes": null, - "release_url": null, - "supported_features": 7 + "info_object": { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e9:5a:2c:fd-1-25-firmware_update", + "migrate_unique_ids": [], + "platform": "update", + "class_name": "FirmwareUpdateEntity", + "translation_key": null, + "translation_placeholders": null, + "device_class": "firmware", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "device_ieee": "ab:cd:ef:12:e9:5a:2c:fd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "supported_features": 7 + }, + "state": { + "class_name": "FirmwareUpdateEntity", + "available": true, + "installed_version": "0x0000021f", + "in_progress": false, + "update_percentage": null, + "latest_version": null, + "release_summary": null, + "release_notes": null, + "release_url": null + } } ] },